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-48159][SQL] Extending support for collated strings on datetime expressions #46618

Closed
wants to merge 4 commits into from

Conversation

nebojsa-db
Copy link
Contributor

What changes were proposed in this pull request?

This PR introduces changes that will allow for collated strings to be passed to various datetime expressions or return value as collated string from those expressions.
Impacted datetime expressions:

  • current_timezone
  • to_unix_timestamp
  • from_unixtime
  • next_day
  • from_utc_timestamp
  • to_utc_timestamp
  • to_date
  • to_timestamp
  • trunc
  • date_trunc
  • make_timestamp
  • date_part
  • convert_timezone

Why are the changes needed?

This PR is part of ongoing effort to support collated strings on SparkSQL.

Does this PR introduce any user-facing change?

Yes, users will be able to use collated strings for datetime expressions.

How was this patch tested?

Added corresponding tests.

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

No.

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

Please take a look @nikolamand-db @stefankandic @uros-db @mihailom-db @dbatomic

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, except some nit changes

@nebojsa-db
Copy link
Contributor Author

@cloud-fan Please review :)

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

@cloud-fan
Copy link
Contributor

thanks, merging to master!

@cloud-fan cloud-fan closed this in e9a3ed8 May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
4 participants