Skip to content

fix: ensure that format for times can be accessed and supplied in duc… - #135

Merged
georgeRobertson merged 4 commits into
release_v084from
bug/ndit-1874_fix_time_casting
Aug 11, 2026
Merged

fix: ensure that format for times can be accessed and supplied in duc…#135
georgeRobertson merged 4 commits into
release_v084from
bug/ndit-1874_fix_time_casting

Conversation

@stevenhsd

@stevenhsd stevenhsd commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

…kdb casting

TLDR of changes

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

raise exc.TypeNotFoundError(f"Callable or type ({item!r}) not found")


def resilient_get(item: object, *attribute_names: str) -> Any:

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.

Suggested change
def resilient_get(item: object, *attribute_names: str) -> Any:
def resilient_get(item: object, *attribute_names: tuple[str]) -> Any:

?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

changed docs instead - using *args to gather into a tuple

else dt_cast_statement
_date_format: str = getattr( # type: ignore
type_,
"DATE_FORMAT",

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.

Are you not checking for "TIME_FORMAT" here as well?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

version of spark being used doesnt support time datatype at the moment - better to not try to cast to a type that doesn't exist

@sonarqubecloud

Copy link
Copy Markdown

@georgeRobertson
georgeRobertson merged commit fdd0315 into release_v084 Aug 11, 2026
4 checks passed
georgeRobertson added a commit that referenced this pull request Aug 11, 2026
* build(deps-dev): bump pymdown-extensions from 10.21.3 to 11.0.1 (#134)

Bumps [pymdown-extensions](https://github.com/facelessuser/pymdown-extensions) from 10.21.3 to 11.0.1.
- [Release notes](https://github.com/facelessuser/pymdown-extensions/releases)
- [Commits](facelessuser/pymdown-extensions@10.21.3...11.0.1)

---
updated-dependencies:
- dependency-name: pymdown-extensions
  dependency-version: 11.0.1
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps-dev): bump cryptography from 48.0.1 to 50.0.0 (#133)

Bumps [cryptography](https://github.com/pyca/cryptography) from 48.0.1 to 50.0.0.
- [Changelog](https://github.com/pyca/cryptography/blob/main/CHANGELOG.rst)
- [Commits](pyca/cryptography@48.0.1...50.0.0)

---
updated-dependencies:
- dependency-name: cryptography
  dependency-version: 50.0.0
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: georgeRobertson <50412379+georgeRobertson@users.noreply.github.com>

* fix: ensure that format for times can be accessed and supplied in duckdb casting (#135)

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: stevenhsd <56357022+stevenhsd@users.noreply.github.com>
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