Class SqlConverter

java.lang.Object
org.apache.drill.exec.planner.sql.conversion.SqlConverter

public class SqlConverter extends Object
Class responsible for managing:
  • Field Details

    • DRILL_CONFORMANCE

      public static final org.apache.calcite.sql.validate.SqlConformance DRILL_CONFORMANCE
  • Constructor Details

  • Method Details

    • parse

      public org.apache.calcite.sql.SqlNode parse(String sql)
    • 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

      public DrillConfig getDrillConfig()
    • getSession

      public UserSession 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