Class SqlCatalogViewTable

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 SqlCatalogViewTable extends ExpandingPreparingTable
A bridge between a Flink's specific CatalogView and a Calcite's RelOptTable. It implements parsing and conversion from sql string to RelNode.
  • Constructor Details

    • SqlCatalogViewTable

      public SqlCatalogViewTable(@Nullable org.apache.calcite.plan.RelOptSchema relOptSchema, org.apache.calcite.rel.type.RelDataType rowType, Iterable<String> names, FlinkStatistic statistic, org.apache.flink.table.catalog.CatalogView view, List<String> viewPath)
  • Method Details

    • 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