asterixdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ti...@apache.org
Subject asterixdb git commit: ASTERIXDB-1561: EXPLAIN should be case insensitive
Date Wed, 03 Aug 2016 02:27:59 GMT
Repository: asterixdb
Updated Branches:
  refs/heads/master d692e3474 -> 516d1a85b


ASTERIXDB-1561: EXPLAIN should be case insensitive

Change-Id: I5add61c5ca07f0653f6811fdd4be215ce4f67eee
Reviewed-on: https://asterix-gerrit.ics.uci.edu/1042
Sonar-Qube: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Reviewed-by: Yingyi Bu <buyingyi@gmail.com>
Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Integration-Tests: Jenkins <jenkins@fulliautomatix.ics.uci.edu>


Project: http://git-wip-us.apache.org/repos/asf/asterixdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/asterixdb/commit/516d1a85
Tree: http://git-wip-us.apache.org/repos/asf/asterixdb/tree/516d1a85
Diff: http://git-wip-us.apache.org/repos/asf/asterixdb/diff/516d1a85

Branch: refs/heads/master
Commit: 516d1a85b19f50e374b6a7882440d69aee29a579
Parents: d692e34
Author: Till Westmann <tillw@apache.org>
Authored: Tue Aug 2 14:45:53 2016 -0700
Committer: Till Westmann <tillw@apache.org>
Committed: Tue Aug 2 19:27:41 2016 -0700

----------------------------------------------------------------------
 .../explain_caps/explain_caps.1.query.sqlpp     | 24 ++++++++++++++++++++
 .../resources/runtimets/testsuite_sqlpp.xml     |  5 ++++
 .../asterix-lang-sqlpp/src/main/javacc/SQLPP.jj |  3 ++-
 3 files changed, 31 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/asterixdb/blob/516d1a85/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/explain/explain_caps/explain_caps.1.query.sqlpp
----------------------------------------------------------------------
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/explain/explain_caps/explain_caps.1.query.sqlpp
b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/explain/explain_caps/explain_caps.1.query.sqlpp
new file mode 100644
index 0000000..f51edc1
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/explain/explain_caps/explain_caps.1.query.sqlpp
@@ -0,0 +1,24 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+/*
+* Description  : EXPLAIN a plan for a very simple query
+* Expected Res : Success
+* Date         : Jul 25, 2016
+*/
+EXPLAIN select value 1+1;

http://git-wip-us.apache.org/repos/asf/asterixdb/blob/516d1a85/asterixdb/asterix-app/src/test/resources/runtimets/testsuite_sqlpp.xml
----------------------------------------------------------------------
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/testsuite_sqlpp.xml b/asterixdb/asterix-app/src/test/resources/runtimets/testsuite_sqlpp.xml
index fa29a42..9021994 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/testsuite_sqlpp.xml
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/testsuite_sqlpp.xml
@@ -69,6 +69,11 @@
         <output-dir compare="Text">explain_simple</output-dir>
       </compilation-unit>
     </test-case>
+    <test-case FilePath="explain">
+      <compilation-unit name="explain_caps">
+        <output-dir compare="Text">explain_simple</output-dir>
+      </compilation-unit>
+    </test-case>
   </test-group>
   <!--
     <test-group name="union">

http://git-wip-us.apache.org/repos/asf/asterixdb/blob/516d1a85/asterixdb/asterix-lang-sqlpp/src/main/javacc/SQLPP.jj
----------------------------------------------------------------------
diff --git a/asterixdb/asterix-lang-sqlpp/src/main/javacc/SQLPP.jj b/asterixdb/asterix-lang-sqlpp/src/main/javacc/SQLPP.jj
index 0bb0b87..a0a9742 100644
--- a/asterixdb/asterix-lang-sqlpp/src/main/javacc/SQLPP.jj
+++ b/asterixdb/asterix-lang-sqlpp/src/main/javacc/SQLPP.jj
@@ -1568,7 +1568,7 @@ Query ExplainStatement() throws ParseException:
   Query query;
 }
 {
-  "explain" query = Query(true)
+  <EXPLAIN> query = Query(true)
   {
     return query;
   }
@@ -2878,6 +2878,7 @@ TOKEN [IGNORE_CASE]:
   | <DISTINCT : "distinct">
   | <DROP : "drop">
   | <ELEMENT : "element">
+  | <EXPLAIN : "explain">
   | <ELSE : "else">
   | <ENFORCED : "enforced">
   | <END : "end">


Mime
View raw message