public class DrillViewTable extends Object implements org.apache.calcite.schema.TranslatableTable, DrillViewInfoProvider
Constructor and Description |
---|
DrillViewTable(View view,
String viewOwner,
ViewExpansionContext viewExpansionContext) |
Modifier and Type | Method and Description |
---|---|
protected org.apache.calcite.rel.RelNode |
expandViewForImpersonatedUser(org.apache.calcite.plan.RelOptTable.ToRelContext context,
org.apache.calcite.rel.type.RelDataType rowType,
List<String> workspaceSchemaPath,
org.apache.calcite.schema.SchemaPlus tokenSchemaTree) |
org.apache.calcite.schema.Schema.TableType |
getJdbcTableType() |
org.apache.calcite.rel.type.RelDataType |
getRowType(org.apache.calcite.rel.type.RelDataTypeFactory typeFactory) |
org.apache.calcite.schema.Statistic |
getStatistic() |
String |
getViewSql()
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) |
public DrillViewTable(View view, String viewOwner, ViewExpansionContext viewExpansionContext)
public org.apache.calcite.rel.type.RelDataType getRowType(org.apache.calcite.rel.type.RelDataTypeFactory typeFactory)
getRowType
in interface org.apache.calcite.schema.Table
public org.apache.calcite.schema.Statistic getStatistic()
getStatistic
in interface org.apache.calcite.schema.Table
public org.apache.calcite.rel.RelNode toRel(org.apache.calcite.plan.RelOptTable.ToRelContext context, org.apache.calcite.plan.RelOptTable relOptTable)
toRel
in interface org.apache.calcite.schema.TranslatableTable
protected org.apache.calcite.rel.RelNode expandViewForImpersonatedUser(org.apache.calcite.plan.RelOptTable.ToRelContext context, org.apache.calcite.rel.type.RelDataType rowType, List<String> workspaceSchemaPath, org.apache.calcite.schema.SchemaPlus tokenSchemaTree)
public org.apache.calcite.schema.Schema.TableType getJdbcTableType()
getJdbcTableType
in interface org.apache.calcite.schema.Table
public String getViewSql()
DrillViewInfoProvider
getViewSql
in interface DrillViewInfoProvider
public boolean rolledUpColumnValidInsideAgg(String column, org.apache.calcite.sql.SqlCall call, org.apache.calcite.sql.SqlNode parent, org.apache.calcite.config.CalciteConnectionConfig config)
rolledUpColumnValidInsideAgg
in interface org.apache.calcite.schema.Table
public boolean isRolledUp(String column)
isRolledUp
in interface org.apache.calcite.schema.Table
Copyright © 1970 The Apache Software Foundation. All rights reserved.