forked from apache/spark
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-48215][SQL] Extending support for collated strings on date_for…
…mat expression ### 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. Closes apache#46561 from nebojsa-db/SPARK-48215. Authored-by: Nebojsa Savic <[email protected]> Signed-off-by: Wenchen Fan <[email protected]>
- Loading branch information
1 parent
9fd85d9
commit e04d3d7
Showing
2 changed files
with
35 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters