-
Notifications
You must be signed in to change notification settings - Fork 28.3k
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
[SPARK-26243][SQL] Use java.time API for parsing timestamps and dates from JSON #23196
Closed
Closed
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
fb10b91
Adding DateTimeFormatter
MaxGekk a9b39ec
Support DateTimeFormatter by JacksonParser and JacksonGenerator
MaxGekk ff589f5
Make test independent from current time zone
MaxGekk 4646ded
Fix a test by new fallback
MaxGekk 1c838e0
Set time zone explicitly
MaxGekk 142f301
Updating the migration guide
MaxGekk 606da21
Fix the migration guide by replacing CSV by JSON
MaxGekk f326042
Inlining method's arguments
MaxGekk 4120228
A test for roundtrip timestamp parsing
MaxGekk 6689747
Merge remote-tracking branch 'origin/master' into json-time-parser
MaxGekk e575162
Set time zone to GMT to eliminate of situation when time zone offset …
MaxGekk a35d5bf
UTC -> GMT
MaxGekk 2a2085d
Using floorDiv to take days from seconds
MaxGekk 55f2eac
Removing unnecessary time zone settings
MaxGekk 57600e2
Merge remote-tracking branch 'origin/master' into json-time-parser
MaxGekk 07fcf46
Using legacy parser in HiveCompatibilitySuite
MaxGekk 6b6ea8a
Enable new parser in HiveCompatibilitySuit
MaxGekk 244654b
Remove saving legacy parser settings
MaxGekk 015fdce
Updating migration guide
MaxGekk 96529f5
Making date parser independent from time zones
MaxGekk 07d6031
Test refactoring
MaxGekk d761dee
protected is added
MaxGekk 24b1e3d
toInstant -> toInstantWithZoneId
MaxGekk 9a11515
Set time zone in the test
MaxGekk 4b01d05
GMT -> UTC
MaxGekk 0c7b96b
DateTimeFormatter -> TimestampFormatter
MaxGekk bbaff09
timeParser -> timestampParser
MaxGekk 8af9df9
Round trip tests
MaxGekk 363482e
Renaming test suite
MaxGekk 07e0bf8
Added withClue
MaxGekk c12da1f
Put test under legacy time parser
MaxGekk 60ab5b1
TODO
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
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
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.
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.
Why did we name it
TimestampFormatter
? It hasDateFormatter
as well.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.
we have another trait:
DateFormatter
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.
Eh, sorry I mean the file name @cloud-fan.
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.
will fix it in #23329