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-1025: a test case to verify the fix.
Date Sat, 04 Jun 2016 02:44:43 GMT
Repository: incubator-asterixdb
Updated Branches:
  refs/heads/master b0fe0ac0c -> 3cfb695fc


ASTERIXDB-1025: a test case to verify the fix.

Change-Id: I3297cdd00a3e9dd2bf0cf209c75eb1e1cc564c4b
Reviewed-on: https://asterix-gerrit.ics.uci.edu/905
Reviewed-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Reviewed-by: Till Westmann <tillw@apache.org>


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

Branch: refs/heads/master
Commit: 3cfb695fc158c00fae1ad78b8764a1ddaad95381
Parents: b0fe0ac
Author: Yingyi Bu <yingyi@couchbase.com>
Authored: Fri Jun 3 15:22:43 2016 -0700
Committer: Yingyi Bu <buyingyi@gmail.com>
Committed: Fri Jun 3 19:44:32 2016 -0700

----------------------------------------------------------------------
 .../query-ASTERIXDB-1025.1.ddl.aql              | 37 ++++++++++++++++++++
 .../query-ASTERIXDB-1025.2.update.aql           | 36 +++++++++++++++++++
 .../query-ASTERIXDB-1025.3.query.aql            | 24 +++++++++++++
 .../query-ASTERIXDB-1025.4.ddl.aql              | 20 +++++++++++
 .../query-ASTERIXDB-1025.1.adm                  |  5 +++
 .../src/test/resources/runtimets/testsuite.xml  |  5 +++
 6 files changed, 127 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-asterixdb/blob/3cfb695f/asterixdb/asterix-app/src/test/resources/runtimets/queries/nestrecords/query-ASTERIXDB-1025/query-ASTERIXDB-1025.1.ddl.aql
----------------------------------------------------------------------
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/nestrecords/query-ASTERIXDB-1025/query-ASTERIXDB-1025.1.ddl.aql
b/asterixdb/asterix-app/src/test/resources/runtimets/queries/nestrecords/query-ASTERIXDB-1025/query-ASTERIXDB-1025.1.ddl.aql
new file mode 100644
index 0000000..f4eb328
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries/nestrecords/query-ASTERIXDB-1025/query-ASTERIXDB-1025.1.ddl.aql
@@ -0,0 +1,37 @@
+/*
+ * 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.
+ */
+
+drop dataverse TinyCollege if exists;
+create dataverse TinyCollege;
+use dataverse TinyCollege;
+
+create type MentorType as open
+{
+  name:string
+}
+
+create type StaffType as open
+{
+  name: string,
+  office: string,
+  employment: interval,
+  mentor: MentorType
+}
+
+create dataset Staff(StaffType) primary key name;

http://git-wip-us.apache.org/repos/asf/incubator-asterixdb/blob/3cfb695f/asterixdb/asterix-app/src/test/resources/runtimets/queries/nestrecords/query-ASTERIXDB-1025/query-ASTERIXDB-1025.2.update.aql
----------------------------------------------------------------------
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/nestrecords/query-ASTERIXDB-1025/query-ASTERIXDB-1025.2.update.aql
b/asterixdb/asterix-app/src/test/resources/runtimets/queries/nestrecords/query-ASTERIXDB-1025/query-ASTERIXDB-1025.2.update.aql
new file mode 100644
index 0000000..66514f8
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries/nestrecords/query-ASTERIXDB-1025/query-ASTERIXDB-1025.2.update.aql
@@ -0,0 +1,36 @@
+/*
+ * 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.
+ */
+
+use dataverse TinyCollege;
+
+insert into dataset Staff ({"name":"Alex", "office":"A", "employment":interval(date("2003-01-01"),
date("2008-01-01")), "mentor":
+{"name":"Agent K", "status":"unknown"}
+, "kids":{"name":"Joe","age":13}});
+
+insert into dataset Staff ({"name":"Frank", "office":"A", "employment":interval(date("2004-01-01"),
date("2009-01-01")), "mentor":
+{"name":"Agent K", "status":"unknown"}
+, "kids":{"name":"Wrae","age":10}});
+
+insert into dataset Staff ({"name":"Henry", "office":"C", "employment":interval(date("2003-01-01"),
date("2008-01-01")), "mentor":{"name":"Agent K", "status":"unknown"}});
+
+insert into dataset Staff ({"name":"Mary", "office":"B", "employment":interval(date("2006-01-01"),
date("2010-01-01")), "mentor":
+{"name":"Agent K", "status":"unknown"}
+, "kids":{"name":"Jill","age":11}});
+
+insert into dataset Staff ({"name":"Vicky", "office":"D", "employment":interval(date("2001-01-01"),
date("2010-01-01")), "mentor":{"name":"Agent K", "status":"unknown"}});

http://git-wip-us.apache.org/repos/asf/incubator-asterixdb/blob/3cfb695f/asterixdb/asterix-app/src/test/resources/runtimets/queries/nestrecords/query-ASTERIXDB-1025/query-ASTERIXDB-1025.3.query.aql
----------------------------------------------------------------------
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/nestrecords/query-ASTERIXDB-1025/query-ASTERIXDB-1025.3.query.aql
b/asterixdb/asterix-app/src/test/resources/runtimets/queries/nestrecords/query-ASTERIXDB-1025/query-ASTERIXDB-1025.3.query.aql
new file mode 100644
index 0000000..3d1a8b5
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries/nestrecords/query-ASTERIXDB-1025/query-ASTERIXDB-1025.3.query.aql
@@ -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.
+ */
+
+use dataverse TinyCollege;
+
+for $f in dataset TinyCollege.Staff
+order by $f.name
+return $f.kids;

http://git-wip-us.apache.org/repos/asf/incubator-asterixdb/blob/3cfb695f/asterixdb/asterix-app/src/test/resources/runtimets/queries/nestrecords/query-ASTERIXDB-1025/query-ASTERIXDB-1025.4.ddl.aql
----------------------------------------------------------------------
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/nestrecords/query-ASTERIXDB-1025/query-ASTERIXDB-1025.4.ddl.aql
b/asterixdb/asterix-app/src/test/resources/runtimets/queries/nestrecords/query-ASTERIXDB-1025/query-ASTERIXDB-1025.4.ddl.aql
new file mode 100644
index 0000000..b6ddd8e
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries/nestrecords/query-ASTERIXDB-1025/query-ASTERIXDB-1025.4.ddl.aql
@@ -0,0 +1,20 @@
+/*
+ * 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.
+ */
+
+drop dataverse TinyCollege;

http://git-wip-us.apache.org/repos/asf/incubator-asterixdb/blob/3cfb695f/asterixdb/asterix-app/src/test/resources/runtimets/results/nestrecords/query-ASTERIXDB-1025/query-ASTERIXDB-1025.1.adm
----------------------------------------------------------------------
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results/nestrecords/query-ASTERIXDB-1025/query-ASTERIXDB-1025.1.adm
b/asterixdb/asterix-app/src/test/resources/runtimets/results/nestrecords/query-ASTERIXDB-1025/query-ASTERIXDB-1025.1.adm
new file mode 100644
index 0000000..d78c93a
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results/nestrecords/query-ASTERIXDB-1025/query-ASTERIXDB-1025.1.adm
@@ -0,0 +1,5 @@
+{ "name": "Joe", "age": 13 }
+{ "name": "Wrae", "age": 10 }
+null
+{ "name": "Jill", "age": 11 }
+null

http://git-wip-us.apache.org/repos/asf/incubator-asterixdb/blob/3cfb695f/asterixdb/asterix-app/src/test/resources/runtimets/testsuite.xml
----------------------------------------------------------------------
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/testsuite.xml b/asterixdb/asterix-app/src/test/resources/runtimets/testsuite.xml
index 0b19e22..83945e3 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/testsuite.xml
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/testsuite.xml
@@ -3919,6 +3919,11 @@
         <output-dir compare="Text">nestrecord</output-dir>
       </compilation-unit>
     </test-case>
+    <test-case FilePath="nestrecords">
+      <compilation-unit name="query-ASTERIXDB-1025">
+        <output-dir compare="Text">query-ASTERIXDB-1025</output-dir>
+      </compilation-unit>
+    </test-case>
   </test-group>
   <test-group name="numeric">
     <test-case FilePath="numeric">


Mime
View raw message