Kirill Tkalenko created IGNITE-29268:
----------------------------------------

             Summary: SQL Calcite: Allow parameterless UDF calls without 
parentheses
                 Key: IGNITE-29268
                 URL: https://issues.apache.org/jira/browse/IGNITE-29268
             Project: Ignite
          Issue Type: Improvement
          Components: sql
            Reporter: Kirill Tkalenko
            Assignee: Kirill Tkalenko


Add {{allowUdfCallsWithoutParentheses}} to 
{{{}CalciteQueryEngineConfiguration{}}}, defaulting to {{{}false{}}}. When 
enabled, Calcite should accept all four queries for registered scalar and table 
UDFs with no parameters.
{code:java}
SELECT my_udf;
SELECT my_udf();

SELECT * FROM TABLE(my_table_udf);
SELECT * FROM TABLE(my_table_udf());
{code}
If a bare name matches both a column and a scalar UDF, the column takes 
precedence. Use my_udf() to call the function explicitly.



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

Reply via email to