@Internal public class QueryOperationCatalogViewTable extends org.apache.calcite.schema.impl.AbstractTable implements org.apache.calcite.schema.TranslatableTable
QueryOperationCatalogView
and a Calcite's Table
. It implements TranslatableTable
interface. This enables
direct translation from QueryOperation
to RelNode
.
NOTE: Due to legacy inconsistency in null handling in the TableSchema
the translation
might introduce additional cast to comply with manifested schema in getRowType(RelDataTypeFactory)
.
Modifier and Type | Method and Description |
---|---|
static QueryOperationCatalogViewTable |
createCalciteTable(QueryOperationCatalogView catalogView,
TableSchema resolvedSchema) |
org.apache.calcite.rel.type.RelDataType |
getRowType(org.apache.calcite.rel.type.RelDataTypeFactory typeFactory) |
org.apache.calcite.rel.RelNode |
toRel(org.apache.calcite.plan.RelOptTable.ToRelContext context,
org.apache.calcite.plan.RelOptTable relOptTable) |
getJdbcTableType, getStatistic, isRolledUp, rolledUpColumnValidInsideAgg, unwrap
public static QueryOperationCatalogViewTable createCalciteTable(QueryOperationCatalogView catalogView, TableSchema resolvedSchema)
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
public org.apache.calcite.rel.type.RelDataType getRowType(org.apache.calcite.rel.type.RelDataTypeFactory typeFactory)
getRowType
in interface org.apache.calcite.schema.Table
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.