Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Drill >> mail # dev >> [4/7] git commit: DRILL-413: Parse issue in QuerySubmitter


Copy link to this message
-
[4/7] git commit: DRILL-413: Parse issue in QuerySubmitter
DRILL-413: Parse issue in QuerySubmitter
Project: http://git-wip-us.apache.org/repos/asf/incubator-drill/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-drill/commit/db00e976
Tree: http://git-wip-us.apache.org/repos/asf/incubator-drill/tree/db00e976
Diff: http://git-wip-us.apache.org/repos/asf/incubator-drill/diff/db00e976

Branch: refs/heads/master
Commit: db00e9767360972ff1e9196fb2755963109b91fc
Parents: 8cc75bf
Author: Steven Phillips <[EMAIL PROTECTED]>
Authored: Mon Mar 17 09:08:24 2014 -0700
Committer: Jacques Nadeau <[EMAIL PROTECTED]>
Committed: Mon Mar 17 09:08:24 2014 -0700

 .../main/java/org/apache/drill/exec/client/QuerySubmitter.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
http://git-wip-us.apache.org/repos/asf/incubator-drill/blob/db00e976/exec/java-exec/src/main/java/org/apache/drill/exec/client/QuerySubmitter.java
diff --git a/exec/java-exec/src/main/java/org/apache/drill/exec/client/QuerySubmitter.java b/exec/java-exec/src/main/java/org/apache/drill/exec/client/QuerySubmitter.java
index 6449d93..7c10b88 100644
+++ b/exec/java-exec/src/main/java/org/apache/drill/exec/client/QuerySubmitter.java
@@ -72,7 +72,7 @@ public class QuerySubmitter {
   }
 
   static class Options {
-    @Parameter(names = {"-f, --file"}, description = "file containing plan", required=false)
+    @Parameter(names = {"-f", "--file"}, description = "file containing plan", required=false)
     public String location = null;
 
     @Parameter(names = {"-q", "-e", "--query"}, description = "query string", required = false)
@@ -136,7 +136,7 @@ public class QuerySubmitter {
       switch(type) {
         case "sql":
           queryType = UserProtos.QueryType.SQL;
-          queries = plan.split(";");
+          queries = plan.trim().split(";");
           break;
         case "logical":
           queryType = UserProtos.QueryType.LOGICAL;