-
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-4508] [SQL] build native date type to conform behavior to Hive #4325
Conversation
Test build #26617 has started for PR 4325 at commit
|
Thanks for the quick fix. LGTM pending tests. |
Test build #26617 has finished for PR 4325 at commit
|
Test PASSed. |
/** | ||
* helper function to convert between Int value of days since 1970-01-01 and java.sql.Date | ||
*/ | ||
object DateUtils { |
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.
Should we mark it private[spark]
?
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.
I think this could be useful even outside of spark.
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 it's not necessary, just do not make it public, or we can not change it anymore.
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.
Code gen need that.
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.
That make sense, thanks!
Test build #26639 has started for PR 4325 at commit
|
Test build #26639 has finished for PR 4325 at commit
|
Test FAILed. |
e46735c
to
096e20d
Compare
retest this please. |
Test build #26642 has started for PR 4325 at commit
|
Test build #26642 has finished for PR 4325 at commit
|
Test PASSed. |
The previous #3732 is reverted due to some test failure. Have fixed that. Author: Daoyuan Wang <daoyuan.wang@intel.com> Closes #4325 from adrian-wang/datenative and squashes the following commits: 096e20d [Daoyuan Wang] fix for mixed timezone 0ed0fdc [Daoyuan Wang] fix test data a2fdd4e [Daoyuan Wang] getDate c37832b [Daoyuan Wang] row to catalyst f0005b1 [Daoyuan Wang] add date in sql parser and java type conversion 024c9a6 [Daoyuan Wang] clean some import order d6715fc [Daoyuan Wang] refactoring Date as Primitive Int internally 374abd5 [Daoyuan Wang] spark native date type support (cherry picked from commit db821ed) Signed-off-by: Michael Armbrust <michael@databricks.com>
The previous #3732 is reverted due to some test failure.
Have fixed that.