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 Summary
ConstructorDescriptionDrillViewTable
(View view, String viewOwner, ViewExpansionContext viewExpansionContext) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.calcite.rel.RelNode
expandViewForImpersonatedUser
(DrillViewExpander context, List<String> workspaceSchemaPath, org.apache.calcite.schema.SchemaPlus tokenSchemaTree) org.apache.calcite.schema.Schema.TableType
org.apache.calcite.rel.type.RelDataType
getRowType
(org.apache.calcite.rel.type.RelDataTypeFactory typeFactory) org.apache.calcite.schema.Statistic
Get the query part of the view.boolean
isRolledUp
(String column) boolean
rolledUpColumnValidInsideAgg
(String column, org.apache.calcite.sql.SqlCall call, org.apache.calcite.sql.SqlNode parent, org.apache.calcite.config.CalciteConnectionConfig config) org.apache.calcite.rel.RelNode
toRel
(org.apache.calcite.plan.RelOptTable.ToRelContext context, org.apache.calcite.plan.RelOptTable relOptTable)
-
Constructor Details
-
DrillViewTable
-
-
Method Details
-
getRowType
public org.apache.calcite.rel.type.RelDataType getRowType(org.apache.calcite.rel.type.RelDataTypeFactory typeFactory) - Specified by:
getRowType
in interfaceorg.apache.calcite.schema.Table
-
getStatistic
public org.apache.calcite.schema.Statistic getStatistic()- Specified by:
getStatistic
in interfaceorg.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 interfaceorg.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 interfaceorg.apache.calcite.schema.Table
-
getViewSql
Description copied from interface:DrillViewInfoProvider
Get the query part of the view.- Specified by:
getViewSql
in interfaceDrillViewInfoProvider
-
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 interfaceorg.apache.calcite.schema.Table
-
isRolledUp
- Specified by:
isRolledUp
in interfaceorg.apache.calcite.schema.Table
-