GitHub user DonnyZone opened a pull request:

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

    [SPARK-22333][SQL]ColumnReference should get higher priority than 
timeFunctionCall(CURRENT_DATE, CURRENT_TIMESTAMP)

    ## What changes were proposed in this pull request?
    https://issues.apache.org/jira/browse/SPARK-22333
    
    In current version, users can use CURRENT_DATE() and CURRENT_TIMESTAMP 
without specifying braces.
    However, when a table has columns named as "current_date" or 
"current_timestamp", it will still be parsed as function call.
    
    There are many such cases in our production cluster. We get the wrong 
answer due to this inappropriate behevior. In general, ColumnReference should 
get higher priority than timeFunctionCall.
    
    ## How was this patch tested?
    unit test
    manul test


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

    $ git pull https://github.com/DonnyZone/spark master

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

    https://github.com/apache/spark/pull/19559.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 #19559
    
----
commit 60a5a56a77245f3467920c60cc39ae6cd4989572
Author: donnyzone <wellfeng...@gmail.com>
Date:   2017-10-23T11:40:31Z

    spark-22333

----


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to