Package org.apache.drill.exec.planner.sql.parser

Examples of org.apache.drill.exec.planner.sql.parser.SqlUseSchema


    this.context = context;
  }

  @Override
  public PhysicalPlan getPlan(SqlNode sqlNode) throws ValidationException, RelConversionException, IOException {
    SqlUseSchema useSchema = unwrap(sqlNode, SqlUseSchema.class);

    String defaultSchema = useSchema.getSchema();
    boolean status = context.getSession().setDefaultSchemaPath(defaultSchema, context.getRootSchema());

    String msg;
    if (status) msg = String.format("Default schema changed to '%s'", defaultSchema);
    else msg = String.format("Failed to change default schema to '%s'", defaultSchema);
View Full Code Here


    this.context = context;
  }

  @Override
  public PhysicalPlan getPlan(SqlNode sqlNode) throws ValidationException, RelConversionException, IOException {
    SqlUseSchema useSchema = unwrap(sqlNode, SqlUseSchema.class);

    String defaultSchema = useSchema.getSchema();
    boolean status = context.getSession().setDefaultSchemaPath(defaultSchema, context.getRootSchema());

    String msg;
    if (status) {
      msg = String.format("Default schema changed to '%s'", defaultSchema);
View Full Code Here

TOP

Related Classes of org.apache.drill.exec.planner.sql.parser.SqlUseSchema

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.