-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-18936][SQL] Infrastructure for session local timezone support. #16308
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
Closed
Closed
Changes from 1 commit
Commits
Show all changes
52 commits
Select commit
Hold shift + click to select a range
c48a70d
Prepare for session local timezone support.
ueshin 1d21fec
Make Cast TimeZoneAwareExpression.
ueshin 0763c8f
Fix DateTimeUtilsSuite to follow changes.
ueshin 449d93d
Make some datetime expressions TimeZoneAwareExpression.
ueshin b59d902
Fix compiler error in sql/core.
ueshin 3ddfae4
Add constructors without zoneId to TimeZoneAwareExpressions for Funct…
ueshin f58f00d
Add DateTimeUtils.threadLocalLocalTimeZone to partition-reltated Cast.
ueshin 8f2040b
Fix timezone for Hive timestamp string.
ueshin 63c103c
Use defaultTimeZone instead of threadLocalLocalTimeZone.
ueshin 7066850
Add TimeZone to DateFormats.
ueshin 1aaca29
Make `CurrentBatchTimestamp` `TimeZoneAwareExpression`.
ueshin e5bb246
Add tests for date functions with session local timezone.
ueshin 32cc391
Remove unused import and small cleanup.
ueshin f434378
Fix tests.
ueshin 16fd1e4
Rename `zoneId` to `timeZoneId`.
ueshin 009c17b
Use lazy val to avoid to keep creating a new timezone object (or doin…
ueshin a2936ed
Modify ComputeCurrentTime to hold the same date.
ueshin c5ca73e
Add comments.
ueshin b860379
Fix `Cast.needTimeZone()` to handle complex types.
ueshin 6746265
Fix `Dataset.showString()` to use session local timezone.
ueshin 4b6900c
Merge branch 'master' into issues/SPARK-18350
ueshin 4f9cc40
Modify to analyze `ResolveTimeZone` only once.
ueshin 2ca2413
Use session local timezone for Hive string.
ueshin c232854
Merge branch 'master' into issues/SPARK-18350
ueshin 5b6dd4f
Merge branch 'master' into issues/SPARK-18350
ueshin 1ca5808
Use `addReferenceMinorObj` to avoid adding member variables.
ueshin 702dd81
Use Option[String] for timeZoneId.
ueshin 33a3425
Update a comment.
ueshin 5cc93e3
Fix overloaded constructors.
ueshin 5521165
Fix session local timezone for timezone sensitive tests.
ueshin bd8275e
Remove `timeZoneResolved` and use `timeZoneId.isEmpty` instead in `Re…
ueshin 183945c
Merge branch 'master' into issues/SPARK-18350
ueshin 22a3b6e
Remove unused parameter.
ueshin 30d51fa
Merge branch 'master' into issues/SPARK-18350
ueshin 043ab52
Use Cast directly instead of dsl.
ueshin 3ba5830
Merge branch 'master' into issues/SPARK-18350
ueshin 9ab31f0
Revert unnecessary changes.
ueshin b954947
Use `@` binding to simplify pattern match.
ueshin dbb2604
Inline a `lazy val`.
ueshin 186cd3e
Add some TODO comments for follow-up prs.
ueshin 6631a69
Add a config document.
ueshin 3610465
Use an overload version of `checkAnswer`.
ueshin c12e596
Fix CastSuite and add some comments to describe the tests.
ueshin 8a04e80
Use None instead of null.
ueshin efe3aff
Add some comments to describe the tests.
ueshin cdbb266
Make TimeAdd/TimeSub/MonthsBetween TimeZoneAwareExpression.
ueshin 328399a
Add comments to explain tests.
ueshin 7352612
Modify a test.
ueshin b99cf79
Refine tests.
ueshin a85377f
Remove unnecessary new lines.
ueshin f0c911b
Add newDateFormat to DateTimeUtils and use it.
ueshin 6fa1d6a
Parameterize some tests.
ueshin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add newDateFormat to DateTimeUtils and use it.
- Loading branch information
commit f0c911b27eea4138171ebdab7001bc7406f3f41d
There are no files selected for viewing
This file contains hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
now these methods without timezone parameter are only used in tests right?
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.
Yes, I think so except for JSON/CSV datasources or partition value related codes, which will be fixed by the follow-up prs.