-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(5975/5976): timezone handling for timestamps and
date_trunc
, `d…
…ate_part` and `date_bin` (#7614) * test: enforce timestamptz contract * test(5975/5976): demonstrate what logical plan casting must occur with datetime scalar functions. * These test cases also document how our scalar functions are currently not correct. * Extra comments documenting the logical plan will be removed on test cleanup (after code fixes). * fix(5975/5976): enable type coercion to include specific timezones * Prior to this change, the outcome was always coerced to Timestamp(Nanoseconds, None) and the tz was dropped. * fix(5975/5976): have date_trunc use DateTime<Tz>, instead of NaiveDateTime * chore(5975/5976): test cleanup -- consolidate into the single timestamps test file * fix(5975/5976): enable all valid timezones to be supported in type coercion * chore: update cargo.lock in datafusion-cli * test(5975/5976): tests to document the bounds of timezone acceptance * test(5975/5976): document irregular offsets and daylight savings time * refactor(5975/5976): do not parse timezone string during type coersion, should have already failed in parser if invalid * chore: properly abbreviate abbreviations * fix(5975/5976): apply tz string parsing per batch. * move parsing up to date_trunc() to apply per batch, not per value. * do not infer a default UTC timezone for missing tz. Instead use the appropriate type for with, or without, tz.
- Loading branch information
Showing
7 changed files
with
648 additions
and
101 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.