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

Coral-Trino: Add with_timezone wrapper while casting timestamp to decimal #169

Merged
merged 1 commit into from
Oct 11, 2021
Merged

Coral-Trino: Add with_timezone wrapper while casting timestamp to decimal #169

merged 1 commit into from
Oct 11, 2021

Conversation

ljfgem
Copy link
Collaborator

@ljfgem ljfgem commented Oct 8, 2021

As discussed in trinodb/trino#9530 (comment)
We need to add a wrapper with_timezone"(..., 'UTC') before calling to_unixtime, so it is timezone agnostic like how #109 did.

Tests:

  1. Unit tests
  2. Integration test, no regression

@findepi
Copy link
Contributor

findepi commented Oct 9, 2021

@losipiuk ptal

@losipiuk
Copy link
Contributor

Thanks @ljfgem. LGTM. I checked with Trino product test it now works as expected.

@ljfgem
Copy link
Collaborator Author

ljfgem commented Oct 11, 2021

Thanks @losipiuk for reviewing!

@ljfgem ljfgem merged commit 579ce52 into linkedin:master Oct 11, 2021
wenruimeng pushed a commit to wenruimeng/coral that referenced this pull request Oct 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants