fromDir = fromDir + from.names.get((from.names.size() - 1));
}
}
AbstractSchema tempSchema = getDrillSchema(drillSchema);
WorkspaceSchema schema = null;
if (tempSchema instanceof WorkspaceSchema) {
schema = ((WorkspaceSchema)tempSchema);
} else {
throw new ValidationException("Unsupported schema");
}
// Get the file system object
fs = schema.getFS();
// Get the default path
defaultLocation = schema.getDefaultLocation();
} catch (Exception e) {
if (from == null) {
return DirectPlan.createDirectPlan(context, false, "Show files without FROM / IN clause can be used only after specifying a default file system schema");
}
return DirectPlan.createDirectPlan(context, false, String.format("Current schema '%s' is not a file system schema. " +