Class QueryOperationCatalogViewTable

java.lang.Object
org.apache.calcite.prepare.Prepare.AbstractPreparingTable
All Implemented Interfaces:
org.apache.calcite.plan.RelOptTable, org.apache.calcite.prepare.Prepare.PreparingTable, org.apache.calcite.schema.Wrapper, org.apache.calcite.sql.validate.SqlValidatorTable

public class QueryOperationCatalogViewTable extends ExpandingPreparingTable
A bridge between a Flink's specific QueryOperationCatalogView and a Calcite's RelOptTable. It implements the conversion from QueryOperation to RelNode.
  • Method Details

    • create

      public static QueryOperationCatalogViewTable create(org.apache.calcite.plan.RelOptSchema schema, List<String> names, org.apache.calcite.rel.type.RelDataType rowType, org.apache.flink.table.catalog.QueryOperationCatalogView view)
    • getQualifiedName

      public List<String> getQualifiedName()
      Specified by:
      getQualifiedName in interface org.apache.calcite.plan.RelOptTable
      Specified by:
      getQualifiedName in interface org.apache.calcite.sql.validate.SqlValidatorTable
      Overrides:
      getQualifiedName in class FlinkPreparingTableBase
    • convertToRel

      public org.apache.calcite.rel.RelNode convertToRel(org.apache.calcite.plan.RelOptTable.ToRelContext context)
      Description copied from class: ExpandingPreparingTable
      Converts the table to a RelNode. Does not need to expand any nested scans of an ExpandingPreparingTable. Those will be expanded recursively.
      Specified by:
      convertToRel in class ExpandingPreparingTable
      Returns:
      a relational tree