GitHub user davies opened a pull request:
https://github.com/apache/spark/pull/7805
[SPARK-8176] [SPARK-8197] [SQL] function to_date/ trunc
This PR is based on #6988 , thanks to @adrian-wang .
This brings two SQL functions: to_date() and trunc().
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/davies/spark to_date
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/7805.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #7805
----
commit d44ea5ff08bfdeec73998c6676abc145642c74e3
Author: Daoyuan Wang <[email protected]>
Date: 2015-07-28T05:48:32Z
function to_date, trunc
commit a476c5aa70489f8d5eaf31fe28df86344906dc05
Author: Daoyuan Wang <[email protected]>
Date: 2015-07-29T13:22:49Z
address comments from davies
commit 980b0927558f0e36bf67659a365643844bb28023
Author: Daoyuan Wang <[email protected]>
Date: 2015-07-30T03:12:40Z
resolve rebase conflict
commit 310dd5547447ae24e27538f70671c9bf5882fa2d
Author: Daoyuan Wang <[email protected]>
Date: 2015-07-30T04:42:38Z
remove dup test in rebase
commit 22a8d75b4cb81acd2f5487b6bbad9601e3f4c92a
Author: Davies Liu <[email protected]>
Date: 2015-07-30T21:32:58Z
Merge branch 'master' of github.com:apache/spark into to_date
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
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]