-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-8189] [SQL] use Long for TimestampType in SQL #6733
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
Conversation
|
cc @rxin @JoshRosen |
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.
this should be 0?
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.
Use -1 as an uninitialized value, easy for debug.
|
cc @liancheng to take a look at the column store stuff. |
|
We also need to rewrite CastSuite to make it cover more stuff. The coverage currently is pretty low. |
|
Test build #34539 has finished for PR 6733 at commit
|
|
Test build #34573 has finished for PR 6733 at commit
|
|
Test build #34577 has finished for PR 6733 at commit
|
|
In-memory columnar part looks good. The test failure was because of timestamp precision change. We can just ignore those two Hive compatibility test cases. |
|
Test build #34610 timed out for PR 6733 at commit |
|
Test build #895 timed out for PR 6733 at commit |
|
Test build #34632 has finished for PR 6733 at commit
|
|
Jenkins, retest this please. |
|
Test build #34631 has finished for PR 6733 at commit
|
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 is this 10000L?
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.
milliseconds to 100ns
|
I'm going to merge this, but we should fix rest of the things later. @JoshRosen would be great if you review this again too. |
|
Test build #34638 has finished for PR 6733 at commit
|
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.
since we are supporting timestamp here, Maybe we want to rename this object to DateTimeUtils, and also update the javadoc.
This PR change to use Long as internal type for TimestampType for efficiency, which means it will the precision below 100ns. Author: Davies Liu <[email protected]> Closes apache#6733 from davies/timestamp and squashes the following commits: d9565fa [Davies Liu] remove print 65cf2f1 [Davies Liu] fix Timestamp in SparkR 86fecfb [Davies Liu] disable two timestamp tests 8f77ee0 [Davies Liu] fix scala style 246ee74 [Davies Liu] address comments 309d2e1 [Davies Liu] use Long for TimestampType in SQL
This PR change to use Long as internal type for TimestampType for efficiency, which means it will the precision below 100ns.