-
Notifications
You must be signed in to change notification settings - Fork 29.3k
[SPARK-30865][SQL][SS] Refactor DateTimeUtils #27617
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 38 commits
Commits
Show all changes
60 commits
Select commit
Hold shift + click to select a range
ba506a2
Move TimeZoneGMT/UTC to DateTimeTestUtils
MaxGekk 6933070
Remove TimeZoneGMT
MaxGekk e195d25
gmtId -> utcId
MaxGekk cf620cb
Remove defaultTimeZone
MaxGekk b487933
Use Date/TimestampType.InternalType
MaxGekk b26730c
Use TimeZoneUTC
MaxGekk 0b5711e
Use TimeZoneUTC instead of GMT
MaxGekk 9ba2d3d
Remove SQLDate and SQLTimestamp
MaxGekk c475f27
Improve a comment
MaxGekk cbf69fb
Renaming
MaxGekk dde714b
Merge remote-tracking branch 'remotes/origin/master' into move-time-z…
MaxGekk 6840291
Fix import
MaxGekk 6a41a3c
Merge remote-tracking branch 'remotes/origin/master' into move-time-z…
MaxGekk 86ccef1
Fix merge
MaxGekk 1fd3aa2
Merge remote-tracking branch 'remotes/origin/master' into move-time-z…
MaxGekk 51e0bf1
Merge remote-tracking branch 'remotes/origin/master' into move-time-z…
MaxGekk 54c0fe9
Fix merge issues
MaxGekk 43246af
Merge remote-tracking branch 'remotes/origin/master' into move-time-z…
MaxGekk e12ec28
Fix merge issues
MaxGekk 8cf53c5
Merge remote-tracking branch 'remotes/origin/master' into move-time-z…
MaxGekk 9d78a7d
Restore TimeZoneUTC in DateTimeUtils
MaxGekk d45dd85
Merge remote-tracking branch 'remotes/origin/master' into move-time-z…
MaxGekk 8669e29
Fix merge issue
MaxGekk aa8a62f
Merge remote-tracking branch 'remotes/origin/master' into move-time-z…
MaxGekk 0075718
Merge remote-tracking branch 'remotes/origin/master' into move-time-z…
MaxGekk 9ec98eb
Fix merge issue
MaxGekk 2ca2540
Merge remote-tracking branch 'remotes/origin/master' into move-time-z…
MaxGekk d7f343b
Fix merge issues
MaxGekk aa2059a
Merge remote-tracking branch 'remotes/origin/master' into move-time-z…
MaxGekk 3b23c52
Fix merge issues
MaxGekk f79e7b6
Merge remote-tracking branch 'remotes/origin/master' into move-time-z…
MaxGekk 3215948
Fix merge conflicts
MaxGekk 77a780f
Merge remote-tracking branch 'remotes/origin/master' into move-time-z…
MaxGekk 7dea87d
Merge remote-tracking branch 'remotes/origin/master' into move-time-z…
MaxGekk 28c8443
Fix merge conflicts
MaxGekk 113d9a9
Merge remote-tracking branch 'remotes/origin/master' into move-time-z…
MaxGekk 70a057f
Fix merge conflicts
MaxGekk a9e73db
Merge remote-tracking branch 'remotes/origin/master' into move-time-z…
MaxGekk 5dfa257
Merge remote-tracking branch 'remotes/origin/master' into move-time-z…
MaxGekk 1eb480a
Merge remote-tracking branch 'remotes/origin/master' into move-time-z…
MaxGekk 9c53d3d
Merge remote-tracking branch 'remotes/origin/master' into move-time-z…
MaxGekk b43fe03
Avoid one `*` in fromJulianDay
MaxGekk 61b85ac
Use toTotalMonths in subtractDates
MaxGekk 311a47e
Merge remote-tracking branch 'remotes/origin/master' into move-time-z…
MaxGekk 6c084a1
Merge remote-tracking branch 'remotes/origin/master' into move-time-z…
MaxGekk 6e7aa16
Merge remote-tracking branch 'remotes/origin/master' into move-time-z…
MaxGekk b18859a
Resolve merge issue
MaxGekk f477a71
Remove timestampToString()
MaxGekk ec386b7
Remove microsToEpochDays() and epochDaysToMicros()
MaxGekk cf85866
Re-use getLocalDateTime in convertTz
MaxGekk 89d7fad
Re-use getLocalDateTime
MaxGekk d9699c4
Remove julianCommonEraStart
MaxGekk d261ba7
Remove instantToDays
MaxGekk 53a33da
Make splitDate private
MaxGekk ee91211
Remove def daysToMicros(days: Int): Long
MaxGekk 386f6cf
Remove def microsToDays(micros: Long): Int
MaxGekk c47d522
1.1.1970 -> 1970-01-01
MaxGekk 025ea80
1970-01-01 00:00:00 -> 1970-01-01 00:00:00Z
MaxGekk 8a7ac3f
Make Scala style checker happy
MaxGekk 863d747
Update comments
MaxGekk 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
There are no files selected for viewing
276 changes: 131 additions & 145 deletions
276
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/util/DateTimeUtils.scala
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
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
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
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
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
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.
Uh oh!
There was an error while loading. Please reload this page.