Examples of SqlUseSchema


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

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);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.