| Modifier and Type | Field and Description |
|---|---|
static ViewSqlEngine |
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
QueryMaker |
buildQueryMakerForInsert(String targetDataSource,
org.apache.calcite.rel.RelRoot relRoot,
PlannerContext plannerContext)
Create a
QueryMaker for an INSERT ... |
QueryMaker |
buildQueryMakerForSelect(org.apache.calcite.rel.RelRoot relRoot,
PlannerContext plannerContext)
Create a
QueryMaker for a SELECT query. |
boolean |
feature(EngineFeature feature,
PlannerContext plannerContext)
Whether a feature applies to this engine or not.
|
String |
name()
Name of this engine.
|
org.apache.calcite.rel.type.RelDataType |
resultTypeForInsert(org.apache.calcite.rel.type.RelDataTypeFactory typeFactory,
org.apache.calcite.rel.type.RelDataType validatedRowType)
SQL row type that would be emitted by the
QueryMaker from SqlEngine.buildQueryMakerForInsert(java.lang.String, org.apache.calcite.rel.RelRoot, org.apache.druid.sql.calcite.planner.PlannerContext). |
org.apache.calcite.rel.type.RelDataType |
resultTypeForSelect(org.apache.calcite.rel.type.RelDataTypeFactory typeFactory,
org.apache.calcite.rel.type.RelDataType validatedRowType)
SQL row type that would be emitted by the
QueryMaker from SqlEngine.buildQueryMakerForSelect(org.apache.calcite.rel.RelRoot, org.apache.druid.sql.calcite.planner.PlannerContext). |
void |
validateContext(QueryContext queryContext)
Validates a provided query context.
|
public static final ViewSqlEngine INSTANCE
public String name()
SqlEnginepublic boolean feature(EngineFeature feature, PlannerContext plannerContext)
SqlEnginepublic void validateContext(QueryContext queryContext)
SqlEngineValidationException
if the context has a problem.validateContext in interface SqlEnginepublic org.apache.calcite.rel.type.RelDataType resultTypeForSelect(org.apache.calcite.rel.type.RelDataTypeFactory typeFactory,
org.apache.calcite.rel.type.RelDataType validatedRowType)
SqlEngineQueryMaker from SqlEngine.buildQueryMakerForSelect(org.apache.calcite.rel.RelRoot, org.apache.druid.sql.calcite.planner.PlannerContext).
Called for SELECT. Not called for EXPLAIN, which is handled by the planner itself.resultTypeForSelect in interface SqlEnginetypeFactory - type factoryvalidatedRowType - row type from Calcite's validatorpublic org.apache.calcite.rel.type.RelDataType resultTypeForInsert(org.apache.calcite.rel.type.RelDataTypeFactory typeFactory,
org.apache.calcite.rel.type.RelDataType validatedRowType)
SqlEngineQueryMaker from SqlEngine.buildQueryMakerForInsert(java.lang.String, org.apache.calcite.rel.RelRoot, org.apache.druid.sql.calcite.planner.PlannerContext).
Called for INSERT and REPLACE. Not called for EXPLAIN, which is handled by the planner itself.resultTypeForInsert in interface SqlEnginetypeFactory - type factoryvalidatedRowType - row type from Calcite's validatorpublic QueryMaker buildQueryMakerForSelect(org.apache.calcite.rel.RelRoot relRoot, PlannerContext plannerContext)
SqlEngineQueryMaker for a SELECT query.buildQueryMakerForSelect in interface SqlEnginerelRoot - planned and validated relplannerContext - context for this querypublic QueryMaker buildQueryMakerForInsert(String targetDataSource, org.apache.calcite.rel.RelRoot relRoot, PlannerContext plannerContext)
SqlEngineQueryMaker for an INSERT ... SELECT query.buildQueryMakerForInsert in interface SqlEnginetargetDataSource - datasource for the INSERT portion of the queryrelRoot - planned and validated rel for the SELECT portion of the queryplannerContext - context for this queryCopyright © 2011–2022 The Apache Software Foundation. All rights reserved.