Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 0.13.2
current_version = 0.13.3
commit = False
tag = False
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)
Expand Down
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,20 @@ and this project adheres to [semantic versioning](https://semver.org/spec/v2.0.0

### Removed

## [0.13.3] - 2025-08-04

### Added

### Changed

### Deprecated

### Fixed
- Modified `load_csv` in `helpers/pyspark.py` to improve logging with conditional
inclusion of read options.

### Removed

## [0.13.2] - 2025-07-24

### Added
Expand Down Expand Up @@ -859,6 +873,8 @@ and this project adheres to [semantic versioning](https://semver.org/spec/v2.0.0
> due to bugs in the GitHub Action `deploy_pypi.yaml`, which deploys to PyPI
> and GitHub Releases.

- rdsa-utils v0.13.3: [GitHub Release](https://github.com/ONSdigital/rdsa-utils/releases/tag/v0.13.3) |
[PyPI](https://pypi.org/project/rdsa-utils/0.13.3/)
- rdsa-utils v0.13.2: [GitHub Release](https://github.com/ONSdigital/rdsa-utils/releases/tag/v0.13.2) |
[PyPI](https://pypi.org/project/rdsa-utils/0.13.2/)
- rdsa-utils v0.13.1: [GitHub Release](https://github.com/ONSdigital/rdsa-utils/releases/tag/v0.13.1) |
Expand Down
2 changes: 1 addition & 1 deletion rdsa_utils/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.13.2"
__version__ = "0.13.3"
9 changes: 8 additions & 1 deletion rdsa_utils/helpers/pyspark.py
Original file line number Diff line number Diff line change
Expand Up @@ -877,7 +877,14 @@ def load_csv(
"""
try:
df = spark.read.csv(filepath, header=True, **kwargs)
logger.info(f"Loaded CSV file {filepath} with parameters {kwargs}")
logger.info(
(
f"Loaded CSV file: {filepath}. "
f"Keep columns: {keep_columns}, Drop columns: {drop_columns}, "
f"Rename columns: {rename_columns}."
+ (f" Additional read options: {kwargs}." if kwargs else "")
),
)
except Exception as e:
error_message = f"Error loading file {filepath}: {e}"
logger.error(error_message)
Expand Down
Loading