Class RelMdTableReferences

All Implemented Interfaces:

public class RelMdTableReferences extends Object implements MetadataHandler<BuiltInMetadata.TableReferences>
Default implementation of RelMetadataQuery.getTableReferences(org.apache.calcite.rel.RelNode) for the standard logical algebra.

The goal of this provider is to return all tables used by a given expression identified uniquely by a RexTableInputRef.RelTableRef.

Each unique identifier RexTableInputRef.RelTableRef of a table will equal to the identifier obtained running RelMdExpressionLineage over the same plan node for an expression that refers to the same table.

If tables cannot be obtained, we return null.