-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-26593][SQL] Use Proleptic Gregorian calendar in casting UTF8String to Date/TimestampType #23512
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
[SPARK-26593][SQL] Use Proleptic Gregorian calendar in casting UTF8String to Date/TimestampType #23512
Changes from 11 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
c5592d8
Initial implementation
MaxGekk c22b15c
Fix time only parsing
MaxGekk 89be967
Fix Hive hash for old date
MaxGekk 6d9dc96
Fix coding style
MaxGekk 0bc1470
Using Proleptic Gregorian calendar in stringToDate
MaxGekk 2c811af
Reusing methods from DateTimeUtils
MaxGekk b9a52a8
Using cast instead of casting Timestamp
MaxGekk c2bc4b0
Merge remote-tracking branch 'origin/master' into utf8string-timestam…
MaxGekk 00ed08c
Porting getYear on Proleptic Gregorian cal
MaxGekk f794378
Re-implementing splitDate
MaxGekk 0f7ddd2
Avoid using SimpleDateFormat for old dates
MaxGekk 70aa674
Removing unused stringToTime
MaxGekk 8ed3f45
Fix imports
MaxGekk 2ebc272
Improve getLastDayOfMonth
MaxGekk 61ad31a
Using Year.isLeap
MaxGekk 0a89446
Fix getLastDayOfMonth
MaxGekk 336b9ac
Merge remote-tracking branch 'origin/master' into utf8string-timestam…
MaxGekk f048a3d
Fix merge
MaxGekk f02c85c
Minor refactoring
MaxGekk 831cdd1
Avoid SimpleDateFormat in the suite
MaxGekk 1af865f
Remove SimpleDateFormat from the suite
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 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
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.
If there aren't like 10 classes to import, I'd make them explicit. At least, the following line is currently redundant.
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.
yah, IntelliJ IDEA collapses the imports automatically. I will try to revert them back.
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.
The
DateTimeUtilsuses many classes from java.time. I will keepimport java.time._if you don't mind.