asterixdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From buyin...@apache.org
Subject incubator-asterixdb git commit: ASTERIXDB-1189: add a test case to verify the fix.
Date Fri, 03 Jun 2016 20:27:51 GMT
Repository: incubator-asterixdb
Updated Branches:
  refs/heads/master f608e85a3 -> dde37e358


ASTERIXDB-1189: add a test case to verify the fix.

Change-Id: If16017dbf6cb4e80d86c6ded359cee81dde6c67c
Reviewed-on: https://asterix-gerrit.ics.uci.edu/904
Reviewed-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Reviewed-by: Jianfeng Jia <jianfeng.jia@gmail.com>


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

Branch: refs/heads/master
Commit: dde37e35883e4f92f101a489d02f18a99f7e5c99
Parents: f608e85
Author: Yingyi Bu <yingyi@couchbase.com>
Authored: Fri Jun 3 11:17:09 2016 -0700
Committer: Yingyi Bu <buyingyi@gmail.com>
Committed: Fri Jun 3 13:27:22 2016 -0700

----------------------------------------------------------------------
 .../spatial-intersect.1.query.sqlpp             | 28 ++++++++++++++++++++
 .../spatial-intersect/spatial-intersect.1.adm   |  1 +
 .../resources/runtimets/testsuite_sqlpp.xml     |  5 ++++
 3 files changed, 34 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-asterixdb/blob/dde37e35/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/null-missing/spatial-intersect/spatial-intersect.1.query.sqlpp
----------------------------------------------------------------------
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/null-missing/spatial-intersect/spatial-intersect.1.query.sqlpp
b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/null-missing/spatial-intersect/spatial-intersect.1.query.sqlpp
new file mode 100644
index 0000000..3be21de
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/null-missing/spatial-intersect/spatial-intersect.1.query.sqlpp
@@ -0,0 +1,28 @@
+/*
+ * 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.
+ */
+
+{
+  'null1': "spatial-intersect"(null, "create-rectangle"("create-point"(30.0,70.0), "create-point"(40.0,80.0))),
+  'null2': "spatial-intersect"("create-rectangle"("create-point"(30.0,70.0), "create-point"(40.0,80.0)),
null),
+  'missing1': "spatial-intersect"(missing, "create-rectangle"("create-point"(30.0,70.0),
"create-point"(40.0,80.0))),
+  'missing2': "spatial-intersect"("create-rectangle"("create-point"(30.0,70.0), "create-point"(40.0,80.0)),
missing),
+  'missing2': "spatial-intersect"(missing, null),
+  'missing2': "spatial-intersect"(null, missing),
+  'missing2': "spatial-intersect"(missing, missing)
+};

http://git-wip-us.apache.org/repos/asf/incubator-asterixdb/blob/dde37e35/asterixdb/asterix-app/src/test/resources/runtimets/results/null-missing/spatial-intersect/spatial-intersect.1.adm
----------------------------------------------------------------------
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results/null-missing/spatial-intersect/spatial-intersect.1.adm
b/asterixdb/asterix-app/src/test/resources/runtimets/results/null-missing/spatial-intersect/spatial-intersect.1.adm
new file mode 100644
index 0000000..d9f875f
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results/null-missing/spatial-intersect/spatial-intersect.1.adm
@@ -0,0 +1 @@
+{ "null1": null, "null2": null }

http://git-wip-us.apache.org/repos/asf/incubator-asterixdb/blob/dde37e35/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 3080027..569e011 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/testsuite_sqlpp.xml
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/testsuite_sqlpp.xml
@@ -3624,6 +3624,11 @@
       </compilation-unit>
     </test-case>
     <test-case FilePath="null-missing">
+      <compilation-unit name="spatial-intersect">
+        <output-dir compare="Text">spatial-intersect</output-dir>
+      </compilation-unit>
+    </test-case>
+    <test-case FilePath="null-missing">
       <compilation-unit name="substr">
         <output-dir compare="Text">substr</output-dir>
       </compilation-unit>


Mime
View raw message