You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@calcite.apache.org by "Julian Hyde (JIRA)" <ji...@apache.org> on 2018/09/18 06:13:00 UTC

[jira] [Created] (CALCITE-2569) UDFs that are table functions must implement SqlTableFunction and have CURSOR as their return type

Julian Hyde created CALCITE-2569:
------------------------------------

             Summary: UDFs that are table functions must implement SqlTableFunction and have CURSOR as their return type
                 Key: CALCITE-2569
                 URL: https://issues.apache.org/jira/browse/CALCITE-2569
             Project: Calcite
          Issue Type: Bug
            Reporter: Julian Hyde
            Assignee: Julian Hyde


UDFs that are table functions must implement SqlTableFunction and have CURSOR as their return type,

Validate that table functions are not used in contexts that require scalar functions, such as the SELECT clause.

Change operand type ANY to mean 'scalar expression of any type (but not a cursor)', and add operand type IGNORE to mean skip validation - for an operand that is not an expression. TABLE is one of the few operators that accepts a CURSOR operand.



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