You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@drill.apache.org by ja...@apache.org on 2014/07/27 20:46:57 UTC
[11/27] git commit: DRILL-1119: updated error message thrown when
schema is immutable
DRILL-1119: updated error message thrown when schema is immutable
Project: http://git-wip-us.apache.org/repos/asf/incubator-drill/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-drill/commit/d5953631
Tree: http://git-wip-us.apache.org/repos/asf/incubator-drill/tree/d5953631
Diff: http://git-wip-us.apache.org/repos/asf/incubator-drill/diff/d5953631
Branch: refs/heads/master
Commit: d59536313365b826f8d1e075a17d33411605ebf1
Parents: a7d21d6
Author: Hanifi Gunes <hg...@maprtech.com>
Authored: Tue Jul 15 19:15:51 2014 -0700
Committer: Aditya Kishore <ad...@maprtech.com>
Committed: Thu Jul 24 16:16:03 2014 -0700
----------------------------------------------------------------------
.../org/apache/drill/exec/planner/sql/handlers/ViewHandler.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-drill/blob/d5953631/exec/java-exec/src/main/java/org/apache/drill/exec/planner/sql/handlers/ViewHandler.java
----------------------------------------------------------------------
diff --git a/exec/java-exec/src/main/java/org/apache/drill/exec/planner/sql/handlers/ViewHandler.java b/exec/java-exec/src/main/java/org/apache/drill/exec/planner/sql/handlers/ViewHandler.java
index b6bb7a1..86eb69d 100644
--- a/exec/java-exec/src/main/java/org/apache/drill/exec/planner/sql/handlers/ViewHandler.java
+++ b/exec/java-exec/src/main/java/org/apache/drill/exec/planner/sql/handlers/ViewHandler.java
@@ -72,8 +72,8 @@ public abstract class ViewHandler extends AbstractSqlHandler{
String schemaPath = drillSchema.getFullSchemaName();
if (!drillSchema.isMutable())
- return DirectPlan.createDirectPlan(context, false, String.format("Current schema '%s' is not a mutable schema. " +
- "Can't create views in this schema.", schemaPath));
+ return DirectPlan.createDirectPlan(context, false, String.format("Unable to create view. " +
+ "Schema [%s] is immutable. ", schemaPath));
// find current workspace schema path
List<String> workspaceSchemaPath = ImmutableList.of();