Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SPARK-48215][SQL] Extending support for collated strings on date_format expression #46561

Closed
wants to merge 2 commits into from

Conversation

nebojsa-db
Copy link
Contributor

What changes were proposed in this pull request?

We are extending support for collated strings on date_format function, since currently it throws DATATYPE_MISSMATCH exception when collated strings are passed as "format" parameter. https://docs.databricks.com/en/sql/language-manual/functions/date_format.html

Why are the changes needed?

Exception is thrown on invocation when collated strings are passed as arguments to date_format.

Does this PR introduce any user-facing change?

No user facing changes, extending support.

How was this patch tested?

Tests are added with this PR.

Was this patch authored or co-authored using generative AI tooling?

No.

@github-actions github-actions bot added the SQL label May 13, 2024
@nebojsa-db
Copy link
Contributor Author

@nikolamand-db @uros-db @stefankandic @mihailom-db Please review :)

@HyukjinKwon HyukjinKwon changed the title [SPARK-48215] Extending support for collated strings on date_format expression [SPARK-48215][SQL] Extending support for collated strings on date_format expression May 14, 2024
Copy link
Contributor

@mihailom-db mihailom-db left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@uros-db uros-db left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Contributor

@stefankandic stefankandic left a comment

Choose a reason for hiding this comment

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

LGTM!

@nebojsa-db
Copy link
Contributor Author

@cloud-fan please take a look and merge :)

@cloud-fan cloud-fan closed this in e04d3d7 May 22, 2024
@cloud-fan
Copy link
Contributor

thanks, merging to master!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
6 participants