GitHub user hvanhovell opened a pull request:

    https://github.com/apache/spark/pull/14442

    [SPARK-16836][SQL] Add support for CURRENT_DATE/CURRENT_TIMESTAMP literals

    ## What changes were proposed in this pull request?
    In Spark 1.6 (with Hive support) we could use `CURRENT_DATE` and 
`CURRENT_TIMESTAMP` functions as literals (without adding braces), for example:
    ```SQL
    select /* Spark 1.6: */ current_date, /* Spark 1.6  & Spark 2.0: */ 
current_date()
    ```
    This was accidentally dropped for Spark 2.0. This PR reinstates this 
functionality. 
    
    ## How was this patch tested?
    Added a case to ExpressionParserSuite.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/hvanhovell/spark SPARK-16836

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/14442.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 #14442
    
----
commit f614781d7ff897141d977944b7040939728b6b31
Author: Herman van Hovell <[email protected]>
Date:   2016-08-01T18:56:09Z

    Add support for CURRENT_DATE/CURRENT_TIMESTAMP literal function expressions.

----


---
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]

Reply via email to