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

Fix GpuCast losing the timezoneId during canonicalization #5713

Merged
merged 1 commit into from
Jun 2, 2022

Conversation

tgravescs
Copy link
Collaborator

Fixes #5670

The timezoneid setting was being lost during canonicalization on GpuCast which ultimately caused a parse error to occur because during plan canonicalization we end up trying to access a canoncialized Alias which will end up trying to do a parse if it is not resolved. The GpuCast wasn't resolved because it didn't have the timezone id.

The fix is straight forward and we had a comment there to add in the needsTimeZone check. Basically we were intentionally nulling it out when we shouldn't have been because we weren't checking needsTimeZone

I want to try to add a test case to the integration tests but need to find minimal repro cast, putting up here for early review and run tests and get in asap. I can always followup with test.

Signed-off-by: Thomas Graves tgraves@nvidia.com

Signed-off-by: Thomas Graves <tgraves@nvidia.com>
@tgravescs tgravescs added the bug Something isn't working label Jun 1, 2022
@tgravescs tgravescs self-assigned this Jun 1, 2022
@tgravescs
Copy link
Collaborator Author

build

Copy link
Contributor

@jbrennan333 jbrennan333 left a comment

Choose a reason for hiding this comment

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

+1 this looks good to me.

@tgravescs tgravescs merged commit 5db6ca9 into NVIDIA:branch-22.06 Jun 2, 2022
@sameerz sameerz added this to the May 23 - Jun 3 milestone Jun 2, 2022
@sameerz sameerz changed the title Fix GpuCast losing the timezoneId during canonialization Fix GpuCast losing the timezoneId during canonicalization Jun 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
3 participants