drill-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oleg Zinoviev (JIRA)" <j...@apache.org>
Subject [jira] [Created] (DRILL-7263) Quoted column names clashes with functions
Date Fri, 17 May 2019 11:25:00 GMT
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)

Mime
View raw message