Class SqlConverter
java.lang.Object
org.apache.drill.exec.planner.sql.conversion.SqlConverter
Class responsible for managing:
- parsing -
parse(String)
- validation -
validate(SqlNode)
- conversion to rel -
toRel(SqlNode)
(String)}
-
Field Summary
Modifier and TypeFieldDescriptionstatic final org.apache.calcite.sql.validate.SqlConformance
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Disallow temporary tables presence in sql statement (ex: in view definitions)org.apache.calcite.plan.RelOptCostFactory
org.apache.calcite.schema.SchemaPlus
org.apache.calcite.rel.type.RelDataType
getOutputType
(org.apache.calcite.sql.SqlNode validatedNode) org.apache.calcite.schema.SchemaPlus
org.apache.calcite.adapter.java.JavaTypeFactory
org.apache.calcite.sql.validate.SqlValidator
boolean
org.apache.calcite.sql.SqlNode
org.apache.calcite.rel.RelRoot
toRel
(org.apache.calcite.sql.SqlNode validatedNode) void
useRootSchemaAsDefault
(boolean useRoot) Is root schema path should be used as default schema path.org.apache.calcite.sql.SqlNode
validate
(org.apache.calcite.sql.SqlNode parsedNode)
-
Field Details
-
DRILL_CONFORMANCE
public static final org.apache.calcite.sql.validate.SqlConformance DRILL_CONFORMANCE
-
-
Constructor Details
-
SqlConverter
-
-
Method Details
-
parse
-
validate
public org.apache.calcite.sql.SqlNode validate(org.apache.calcite.sql.SqlNode parsedNode) -
toRel
public org.apache.calcite.rel.RelRoot toRel(org.apache.calcite.sql.SqlNode validatedNode) -
getOutputType
public org.apache.calcite.rel.type.RelDataType getOutputType(org.apache.calcite.sql.SqlNode validatedNode) -
getValidator
public org.apache.calcite.sql.validate.SqlValidator getValidator() -
getTypeFactory
public org.apache.calcite.adapter.java.JavaTypeFactory getTypeFactory() -
getDrillConfig
-
getSession
-
getCostFactory
public org.apache.calcite.plan.RelOptCostFactory getCostFactory() -
getRootSchema
public org.apache.calcite.schema.SchemaPlus getRootSchema() -
getDefaultSchema
public org.apache.calcite.schema.SchemaPlus getDefaultSchema() -
isCaseSensitive
public boolean isCaseSensitive() -
disallowTemporaryTables
public void disallowTemporaryTables()Disallow temporary tables presence in sql statement (ex: in view definitions) -
useRootSchemaAsDefault
public void useRootSchemaAsDefault(boolean useRoot) Is root schema path should be used as default schema path.- Parameters:
useRoot
- flag
-