Class PrepareResult
java.lang.Object
org.apache.druid.sql.calcite.planner.PrepareResult
After preparing an SQL query with
DruidPlanner, the artifacts produced are the output signature of the
result row, and type information for any dynamic parameters which must be bound before planning the query.-
Constructor Summary
ConstructorsConstructorDescriptionPrepareResult(org.apache.calcite.rel.type.RelDataType validatedRowType, org.apache.calcite.rel.type.RelDataType returnedRowType, org.apache.calcite.rel.type.RelDataType parameterRowType) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.calcite.rel.type.RelDataTypeRow type fromSqlValidator.getParameterRowType(org.apache.calcite.sql.SqlNode)containing the name and type of each parameter.org.apache.calcite.rel.type.RelDataTypeRow type for the result that the end user will receive.org.apache.calcite.rel.type.RelDataTypeRow type fromRelRoot.validatedRowTypeprepared byDruidPlanner.prepare().
-
Constructor Details
-
PrepareResult
public PrepareResult(org.apache.calcite.rel.type.RelDataType validatedRowType, org.apache.calcite.rel.type.RelDataType returnedRowType, org.apache.calcite.rel.type.RelDataType parameterRowType)
-
-
Method Details
-
getValidatedRowType
public org.apache.calcite.rel.type.RelDataType getValidatedRowType()Row type fromRelRoot.validatedRowTypeprepared byDruidPlanner.prepare(). Corresponds to the SELECT portion of a SQL statement. For SELECT, this is the row type of the SELECT itself. For EXPLAIN PLAN FOR SELECT, INSERT ... SELECT, or REPLACE ... SELECT, this is the row type of the embedded SELECT. -
getReturnedRowType
public org.apache.calcite.rel.type.RelDataType getReturnedRowType()Row type for the result that the end user will receive. Different fromgetValidatedRowType()in cases like EXPLAIN (where the user gets an explanation, not the query results) and other non-SELECT statements. -
getParameterRowType
public org.apache.calcite.rel.type.RelDataType getParameterRowType()Row type fromSqlValidator.getParameterRowType(org.apache.calcite.sql.SqlNode)containing the name and type of each parameter.
-