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>
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)
+};
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 }
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>