incubator-blur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amccu...@apache.org
Subject [1/2] git commit: Add a message on definecolumn that notifies the user when the column has already been defined.
Date Thu, 31 Oct 2013 17:35:50 GMT
Updated Branches:
  refs/heads/apache-blur-0.2 0af883b60 -> e7988bce5


Add a message on definecolumn that notifies the user when the column has already been defined.


Project: http://git-wip-us.apache.org/repos/asf/incubator-blur/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-blur/commit/802e2037
Tree: http://git-wip-us.apache.org/repos/asf/incubator-blur/tree/802e2037
Diff: http://git-wip-us.apache.org/repos/asf/incubator-blur/diff/802e2037

Branch: refs/heads/apache-blur-0.2
Commit: 802e20370e52b12df0e56fd340df3214600b04ed
Parents: 0af883b
Author: Aaron McCurry <amccurry@gmail.com>
Authored: Thu Oct 31 12:59:13 2013 -0400
Committer: Aaron McCurry <amccurry@gmail.com>
Committed: Thu Oct 31 12:59:13 2013 -0400

----------------------------------------------------------------------
 .../java/org/apache/blur/shell/AddColumnDefinitionCommand.java | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/802e2037/blur-shell/src/main/java/org/apache/blur/shell/AddColumnDefinitionCommand.java
----------------------------------------------------------------------
diff --git a/blur-shell/src/main/java/org/apache/blur/shell/AddColumnDefinitionCommand.java
b/blur-shell/src/main/java/org/apache/blur/shell/AddColumnDefinitionCommand.java
index d2d1c4f..4bac392 100644
--- a/blur-shell/src/main/java/org/apache/blur/shell/AddColumnDefinitionCommand.java
+++ b/blur-shell/src/main/java/org/apache/blur/shell/AddColumnDefinitionCommand.java
@@ -62,7 +62,9 @@ public class AddColumnDefinitionCommand extends Command implements TableFirstArg
         }
       }
     }
-    client.addColumnDefinition(args[1], columnDefinition);
+    if (!client.addColumnDefinition(args[1], columnDefinition)) {
+      out.println("Column Definition was not added, check to see if the column has already
been added to the table.");
+    }
   }
 
   @Override
@@ -79,7 +81,7 @@ public class AddColumnDefinitionCommand extends Command implements TableFirstArg
   public String name() {
     return "definecolumn";
   }
-  
+
   @SuppressWarnings("static-access")
   private static CommandLine parse(String[] otherArgs, Writer out) {
     Options options = new Options();


Mime
View raw message