Vladislav Pyatkov created IGNITE-29335:
------------------------------------------

             Summary: Calcite adds quotes to parentheses-free function calls in 
view definitions
                 Key: IGNITE-29335
                 URL: https://issues.apache.org/jira/browse/IGNITE-29335
             Project: Ignite
          Issue Type: Bug
            Reporter: Vladislav Pyatkov


A plugin-defined function such as _SYSDATE_ works without parentheses in a 
standalone query like 
{code:sql}
SELECT TRUNC(SYSDATE) AS DAY_START FROM DUAL
{code}
 When the same _SELECT_ is used in _CREATE VIEW_, Calcite saves _SYSDATE_ as 
_"SYSDATE"_. Querying the view then fails because Calcite interprets 
_"SYSDATE"_ as a column reference.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to