DongShengHe created CALCITE-7819:
------------------------------------

             Summary: RelMdTableReferences returns null for TableFunctionScan 
with relational inputs
                 Key: CALCITE-7819
                 URL: https://issues.apache.org/jira/browse/CALCITE-7819
             Project: Calcite
          Issue Type: Bug
            Reporter: DongShengHe


RelMetadataQuery#getTableReferences returns null when the relational
plan contains a TableFunctionScan, even when the TableFunctionScan has
a relational input containing a TableScan.

For example, the TUMBLE window table function produces:

 
{code:java}
LogicalProject
  LogicalTableFunctionScan
    LogicalProject
      LogicalTableScan(table=[[hr, employee]]){code}
 

Calling:

mq.getTableReferences(root)

returns null because RelMdTableReferences does not provide an overload
for TableFunctionScan and falls back to the RelNode catch-all handler.

Expected result:
{code:java}
[hr, employee].#0 {code}
 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to