Github user vkorukanti commented on a diff in the pull request:
https://github.com/apache/drill/pull/448#discussion_r58144615
--- Diff:
exec/java-exec/src/main/java/org/apache/drill/exec/planner/sql/handlers/RefreshMetadataHandler.java
---
@@ -64,6 +65,11 @@ public PhysicalPlan getPlan(SqlNode sqlNode) throws
ValidationException, RelConv
final SchemaPlus schema =
findSchema(config.getConverter().getDefaultSchema(),
refreshTable.getSchemaPath());
+ if (schema == null) {
+ return direct(false, "Storage plugin or workspace does not exist
[%s]",
--- End diff --
Why not just throw a UserException? That way SqlLine or scripts know an
error has occurred.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---