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

Update Alias SQL quoting and float-to-timestamp casting to match Spark 3.2 #1935

Merged
merged 1 commit into from
Mar 15, 2021

Conversation

jlowe
Copy link
Member

@jlowe jlowe commented Mar 15, 2021

Alias SQL quoting behavior changed in SPARK-34626 and float-to-timestamp casting behavior changed in SPARK-34727 to upcast to double first.

This adds shim-specific flags to know when to apply these changed behaviors so the plugin remains compatible with the behavior with older versions of Spark while also matching the new Spark 3.2 behavior.

…k 3.2

Signed-off-by: Jason Lowe <jlowe@nvidia.com>
@jlowe jlowe added the SQL part of the SQL/Dataframe plugin label Mar 15, 2021
@jlowe jlowe added this to the Mar 15 - March 26 milestone Mar 15, 2021
@jlowe jlowe self-assigned this Mar 15, 2021
@jlowe
Copy link
Member Author

jlowe commented Mar 15, 2021

build

@revans2
Copy link
Collaborator

revans2 commented Mar 15, 2021

I can see why we might want the cast to be configured by the shim, but honestly these are bug fixes, and I'm not really sure why we need to break older versions when we could fix it for them, especially the SQL alias code.

Copy link
Collaborator

@revans2 revans2 left a comment

Choose a reason for hiding this comment

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

After talking it over, it turns out we have some tests that check both of these, so this is fine.

@jlowe jlowe merged commit 34d2133 into NVIDIA:branch-0.5 Mar 15, 2021
nartal1 pushed a commit to nartal1/spark-rapids that referenced this pull request Jun 9, 2021
…k 3.2 (NVIDIA#1935)

Signed-off-by: Jason Lowe <jlowe@nvidia.com>
nartal1 pushed a commit to nartal1/spark-rapids that referenced this pull request Jun 9, 2021
…k 3.2 (NVIDIA#1935)

Signed-off-by: Jason Lowe <jlowe@nvidia.com>
@jlowe jlowe deleted the fix-320-tests branch September 10, 2021 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
SQL part of the SQL/Dataframe plugin
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants