-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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(presto,trino): use correct literal dttm separator #20123
fix(presto,trino): use correct literal dttm separator #20123
Conversation
Codecov Report
@@ Coverage Diff @@
## master #20123 +/- ##
==========================================
- Coverage 66.46% 66.44% -0.03%
==========================================
Files 1721 1721
Lines 64467 64477 +10
Branches 6795 6795
==========================================
- Hits 42847 42839 -8
- Misses 19892 19910 +18
Partials 1728 1728
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, though wondering if the same also applies to athena?
Good point, let me check and add Athena, too. |
Turns out Athena was already using the space separator, so going to go ahead and merge this. |
* fix(presto,trino): use correct literal dttm separator * remove redundant tests (cherry picked from commit e2f11d3)
* fix(presto,trino): use correct literal dttm separator * remove redundant tests (cherry picked from commit e2f11d3)
* fix(presto,trino): use correct literal dttm separator * remove redundant tests
* fix(presto,trino): use correct literal dttm separator * remove redundant tests (cherry picked from commit e2f11d3)
SUMMARY
#19917 migrated the
convert_dttm
functions in the Presto and Trino db engine specs to use the currently recommended literal timestamp type cast over the now deprecatedfrom_iso8601_*
functions. However, the new literal casts require the separator to be a blank space instead of the "T" separator:This PR updates the format to correspond with the supported format and updates the unit tests accordingly. In addition, the
convert_dttm
tests are removed from the legacy integration test suite, as they're already covered by the new unit tests.BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION