@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(org.apache.flink.table.catalog.QueryOperationCatalogView catalogView,
org.apache.flink.table.api.TableSchema resolvedSchema) |
org.apache.calcite.rel.type.RelDataType |
getRowType(org.apache.calcite.rel.type.RelDataTypeFactory typeFactory) |
org.apache.calcite.schema.Statistic |
getStatistic() |
org.apache.calcite.rel.RelNode |
toRel(org.apache.calcite.plan.RelOptTable.ToRelContext context,
org.apache.calcite.plan.RelOptTable relOptTable) |
getJdbcTableType, isRolledUp, rolledUpColumnValidInsideAgg, unwrappublic org.apache.calcite.schema.Statistic getStatistic()
getStatistic in interface org.apache.calcite.schema.TablegetStatistic in class org.apache.calcite.schema.impl.AbstractTablepublic static QueryOperationCatalogViewTable createCalciteTable(org.apache.flink.table.catalog.QueryOperationCatalogView catalogView, org.apache.flink.table.api.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.TranslatableTablepublic org.apache.calcite.rel.type.RelDataType getRowType(org.apache.calcite.rel.type.RelDataTypeFactory typeFactory)
getRowType in interface org.apache.calcite.schema.TableCopyright © 2014–2021 The Apache Software Foundation. All rights reserved.