Class DrillViewTable

java.lang.Object
org.apache.drill.exec.planner.logical.DrillViewTable
All Implemented Interfaces:
org.apache.calcite.schema.Table, org.apache.calcite.schema.TranslatableTable, DrillViewInfoProvider
Direct Known Subclasses:
DrillHiveViewTable

public class DrillViewTable extends Object implements org.apache.calcite.schema.TranslatableTable, DrillViewInfoProvider
  • Constructor Details

  • Method Details

    • getRowType

      public org.apache.calcite.rel.type.RelDataType getRowType(org.apache.calcite.rel.type.RelDataTypeFactory typeFactory)
      Specified by:
      getRowType in interface org.apache.calcite.schema.Table
    • getStatistic

      public org.apache.calcite.schema.Statistic getStatistic()
      Specified by:
      getStatistic in interface org.apache.calcite.schema.Table
    • toRel

      public org.apache.calcite.rel.RelNode toRel(org.apache.calcite.plan.RelOptTable.ToRelContext context, org.apache.calcite.plan.RelOptTable relOptTable)
      Specified by:
      toRel in interface org.apache.calcite.schema.TranslatableTable
    • expandViewForImpersonatedUser

      protected org.apache.calcite.rel.RelNode expandViewForImpersonatedUser(DrillViewExpander context, List<String> workspaceSchemaPath, org.apache.calcite.schema.SchemaPlus tokenSchemaTree)
    • getJdbcTableType

      public org.apache.calcite.schema.Schema.TableType getJdbcTableType()
      Specified by:
      getJdbcTableType in interface org.apache.calcite.schema.Table
    • getViewSql

      public String getViewSql()
      Description copied from interface: DrillViewInfoProvider
      Get the query part of the view.
      Specified by:
      getViewSql in interface DrillViewInfoProvider
    • rolledUpColumnValidInsideAgg

      public boolean rolledUpColumnValidInsideAgg(String column, org.apache.calcite.sql.SqlCall call, org.apache.calcite.sql.SqlNode parent, org.apache.calcite.config.CalciteConnectionConfig config)
      Specified by:
      rolledUpColumnValidInsideAgg in interface org.apache.calcite.schema.Table
    • isRolledUp

      public boolean isRolledUp(String column)
      Specified by:
      isRolledUp in interface org.apache.calcite.schema.Table