-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-8176] [SPARK-8197] [SQL] function to_date/ trunc #7805
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
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 removing this?
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.
mistake, will rollback.
|
Test build #39106 has finished for PR 7805 at commit
|
b4dce35 to
2eae516
Compare
Conflicts: sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/FunctionRegistry.scala sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/datetimeFunctions.scala sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/DateExpressionsSuite.scala sql/core/src/main/scala/org/apache/spark/sql/functions.scala sql/core/src/test/scala/org/apache/spark/sql/DateFunctionsSuite.scala
|
Test build #1244 has finished for PR 7805 at commit
|
|
Test build #1245 has finished for PR 7805 at commit
|
|
Test build #39108 has finished for PR 7805 at commit
|
|
ping @rxin |
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.
tiny optimization - this can just call child.genCode
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.
genCode is protected.
|
LGTM at the implementation. Just some minor comments. I'm going to merge this. Can you address these comments in your next pr on expressions? |
This PR address the comments in #7805 cc rxin Author: Davies Liu <[email protected]> Closes #7817 from davies/trunc and squashes the following commits: f729d5f [Davies Liu] rollback cb7f783 [Davies Liu] genCode() is protected 31e52ef [Davies Liu] fix style ed1edc7 [Davies Liu] address comments for #7805
This PR is based on #6988 , thanks to @adrian-wang .
This brings two SQL functions: to_date() and trunc().
Closes #6988