Skip to content

Fix/sr ndit 1663#127

Merged
stevenhsd merged 4 commits into
release_v083from
fix/sr-ndit-1663
Jul 13, 2026
Merged

Fix/sr ndit 1663#127
stevenhsd merged 4 commits into
release_v083from
fix/sr-ndit-1663

Conversation

@stevenhsd

@stevenhsd stevenhsd commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

TLDR of changes

Allow custom date formats to cascade to contract stage for casting. Ensure strict casting only - if a date doesn't meet the format exactly then it will be nulled - duckdb is too permissive and spark can error if not the case.

What kind of changes does this PR introduce?

Tick all that apply

  • fix: A bug fix. Correlates with PATCH in SemVer
  • feat: A new feature. Correlates with MINOR in SemVer
  • docs: Documentation only changes
  • style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
  • refactor: A code change that neither fixes a bug nor adds a feature
  • perf: A code change that improves performance
  • test: Adding missing or correcting existing tests
  • build: Changes that affect the build system or external dependencies (example scopes: pip, docker, npm)
  • ci: Changes to CI configuration files and scripts (example scopes: GitLabCI)

Please check if the PR fulfills these requirements

  • I have read and followed the Contributing guidance
  • Docs have been added / updated
  • Tests and Linting in the CI are passing
  • Changes have been reviewed and approved by a Project Maintainer

georgeRobertson and others added 2 commits July 2, 2026 16:07
…spark parsers to only cast where format exactly as stipulated
Comment thread src/dve/core_engine/backends/implementations/duckdb/duckdb_helpers.py Outdated
Comment thread src/dve/core_engine/backends/implementations/spark/contract.py Outdated
for column in spark_schema
if column.name in record_df.columns
]
*[

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add a #todo for v0.9 as this is breaking in pydantic v2

Comment thread src/dve/core_engine/backends/implementations/spark/spark_helpers.py Outdated
Comment thread pyproject.toml Outdated
pyarrow = "23.0.1"
pydantic = "1.10.19"
pyspark = ">=3.0.0,<=3.5.2"
pyspark = ">=3.5.0,<=3.5.2"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bump to 3.5.5?

@georgeRobertson georgeRobertson changed the base branch from main to release_v083 July 10, 2026 14:33
@sonarqubecloud

Copy link
Copy Markdown

@stevenhsd stevenhsd merged commit c3e07b2 into release_v083 Jul 13, 2026
4 checks passed
georgeRobertson added a commit that referenced this pull request Jul 14, 2026
* Fix/sr ndit 1663  (#127)

* fix: fix issue with non iso date/datetime values in duck db casting after data contract validations  (#127)

* fix: implement non iso timestamp formats in spark. constrain ddb and spark parsers to only cast where format exactly as stipulated  (#127)

* fix: linting and typing fixes

* build: bump pyspark to 3.5.5 and address review comments

---------

Co-authored-by: george.robertson1 <50412379+georgeRobertson@users.noreply.github.com>

* docs: fix 'Bad Value' in cases where it should be 'Bad value' (#128)

* build: upgrade zensical from 0.0.31 to 0.0.46
* docs: fix some of the urls that are pointing at invalid locations
* ci: add ci job to ensure that docs are building correctly

* bump: version 0.8.2 → 0.8.3

* docs: update changelog manually for dve v0.8.3 release

---------

Co-authored-by: stevenhsd <56357022+stevenhsd@users.noreply.github.com>
@georgeRobertson georgeRobertson deleted the fix/sr-ndit-1663 branch July 14, 2026 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants