Oleg Zinoviev created DRILL-7263:
------------------------------------

             Summary: Quoted column names clashes with functions
                 Key: DRILL-7263
                 URL: https://issues.apache.org/jira/browse/DRILL-7263
             Project: Apache Drill
          Issue Type: Bug
    Affects Versions: 1.16.0, 1.15.0
            Reporter: Oleg Zinoviev


If the quoted column name without specifying the source alias, matches the 
function name without parameters, Apache Drill executes function.

Query:
{code:sql}
select `CURRENT_TIMESTAMP` from (select 1 as `CURRENT_TIMESTAMP`) s
{code}

Result:
||CURRENT_TIMESTAMP||
|2019-05-17T14:23:17.708|

Expected:
||CURRENT_TIMESTAMP||
|1|





--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to