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-50619][SQL] Refactor VariantGet.cast to pack the cast arguments #49239

Closed
wants to merge 1 commit into from

Conversation

chenhao-db
Copy link
Contributor

What changes were proposed in this pull request?

As the title. It refactors the code for simplification.

Why are the changes needed?

The refactor will make it simpler for the shredded user to use VariantGet.cast.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Existing tests.

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

No.

@github-actions github-actions bot added the SQL label Dec 19, 2024
@chenhao-db
Copy link
Contributor Author

@cashmand @cloud-fan could you help review? Thanks!

@HyukjinKwon HyukjinKwon changed the title [SPARK-50619] Refactor VariantGet.cast to pack the cast arguments [SPARK-50619][SQL] Refactor VariantGet.cast to pack the cast arguments Dec 19, 2024
// Several parameters used by `VariantGet.cast`. Packed together to simplify parameter passing.
case class VariantCastArgs(
failOnError: Boolean,
zoneStr: Option[String],
Copy link
Contributor

Choose a reason for hiding this comment

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

why do we need the original timezone string if we already have the ZoneId?

Copy link
Contributor

Choose a reason for hiding this comment

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

oh it's to create the Cast expression

@chenhao-db
Copy link
Contributor Author

@cloud-fan could you help merge it? Thanks!

@cloud-fan
Copy link
Contributor

thanks, merging to master!

@cloud-fan cloud-fan closed this in 3a61eef Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants