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);