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-673: add a regression test.
Date Sat, 13 Feb 2016 02:16:29 GMT
Repository: incubator-asterixdb
Updated Branches:
  refs/heads/master 0ae308362 -> 618b29d09


ASTERIXDB-673: add a regression test.

Change-Id: Iee137d4a6d0e0cf9f4a28aa7f2158713dab085a8
Reviewed-on: https://asterix-gerrit.ics.uci.edu/631
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/618b29d0
Tree: http://git-wip-us.apache.org/repos/asf/incubator-asterixdb/tree/618b29d0
Diff: http://git-wip-us.apache.org/repos/asf/incubator-asterixdb/diff/618b29d0

Branch: refs/heads/master
Commit: 618b29d09d0b96c83082a17437d194e24562dfb6
Parents: 0ae3083
Author: Yingyi Bu <yingyi@couchbase.com>
Authored: Fri Feb 12 17:56:59 2016 -0800
Committer: Yingyi Bu <buyingyi@gmail.com>
Committed: Fri Feb 12 18:11:54 2016 -0800

----------------------------------------------------------------------
 .../query-ASTERIXDB-673.1.ddl.aql               | 36 ++++++++++++++++++++
 .../query-ASTERIXDB-673.2.update.aql            | 25 ++++++++++++++
 .../query-ASTERIXDB-673.3.query.aql             | 33 ++++++++++++++++++
 .../query-ASTERIXDB-673.1.adm                   |  0
 .../src/test/resources/runtimets/testsuite.xml  |  5 +++
 5 files changed, 99 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-asterixdb/blob/618b29d0/asterix-app/src/test/resources/runtimets/queries/list/query-ASTERIXDB-673/query-ASTERIXDB-673.1.ddl.aql
----------------------------------------------------------------------
diff --git a/asterix-app/src/test/resources/runtimets/queries/list/query-ASTERIXDB-673/query-ASTERIXDB-673.1.ddl.aql
b/asterix-app/src/test/resources/runtimets/queries/list/query-ASTERIXDB-673/query-ASTERIXDB-673.1.ddl.aql
new file mode 100644
index 0000000..3b1f31a
--- /dev/null
+++ b/asterix-app/src/test/resources/runtimets/queries/list/query-ASTERIXDB-673/query-ASTERIXDB-673.1.ddl.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.
+ */
+
+drop dataverse test if exists;
+create dataverse test;
+
+use dataverse test;
+
+create type FacebookMessageType as closed {
+        message-id: int64,
+        author-id: int64,
+        in-response-to: int64?,
+        sender-location: point?,
+        message: string,
+        send-time: datetime
+}
+
+create dataset FacebookMessages(FacebookMessageType)
+primary key message-id;
+

http://git-wip-us.apache.org/repos/asf/incubator-asterixdb/blob/618b29d0/asterix-app/src/test/resources/runtimets/queries/list/query-ASTERIXDB-673/query-ASTERIXDB-673.2.update.aql
----------------------------------------------------------------------
diff --git a/asterix-app/src/test/resources/runtimets/queries/list/query-ASTERIXDB-673/query-ASTERIXDB-673.2.update.aql
b/asterix-app/src/test/resources/runtimets/queries/list/query-ASTERIXDB-673/query-ASTERIXDB-673.2.update.aql
new file mode 100644
index 0000000..3b07795
--- /dev/null
+++ b/asterix-app/src/test/resources/runtimets/queries/list/query-ASTERIXDB-673/query-ASTERIXDB-673.2.update.aql
@@ -0,0 +1,25 @@
+/*
+ * 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 test;
+
+load dataset FacebookMessages using localfs
+(("path"="asterix_nc1://data/fbm-with-send-time.adm"),("format"="adm"));
+
+

http://git-wip-us.apache.org/repos/asf/incubator-asterixdb/blob/618b29d0/asterix-app/src/test/resources/runtimets/queries/list/query-ASTERIXDB-673/query-ASTERIXDB-673.3.query.aql
----------------------------------------------------------------------
diff --git a/asterix-app/src/test/resources/runtimets/queries/list/query-ASTERIXDB-673/query-ASTERIXDB-673.3.query.aql
b/asterix-app/src/test/resources/runtimets/queries/list/query-ASTERIXDB-673/query-ASTERIXDB-673.3.query.aql
new file mode 100644
index 0000000..a22ed4f
--- /dev/null
+++ b/asterix-app/src/test/resources/runtimets/queries/list/query-ASTERIXDB-673/query-ASTERIXDB-673.3.query.aql
@@ -0,0 +1,33 @@
+/*
+ * 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.
+ */
+/*
+ * This test case is to verify the fix for ASTERIXDB-673.
+ */
+
+use dataverse test;
+
+for $m in dataset FacebookMessages
+let $msgid := $m.message-id
+group by $author := $m.author-id with $msgid
+where $msgid > 0 and $msgid < 10
+return {
+   "author": $author,
+   "msgids": $msgid
+ };
+

http://git-wip-us.apache.org/repos/asf/incubator-asterixdb/blob/618b29d0/asterix-app/src/test/resources/runtimets/results/list/query-ASTERIXDB-673/query-ASTERIXDB-673.1.adm
----------------------------------------------------------------------
diff --git a/asterix-app/src/test/resources/runtimets/results/list/query-ASTERIXDB-673/query-ASTERIXDB-673.1.adm
b/asterix-app/src/test/resources/runtimets/results/list/query-ASTERIXDB-673/query-ASTERIXDB-673.1.adm
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-asterixdb/blob/618b29d0/asterix-app/src/test/resources/runtimets/testsuite.xml
----------------------------------------------------------------------
diff --git a/asterix-app/src/test/resources/runtimets/testsuite.xml b/asterix-app/src/test/resources/runtimets/testsuite.xml
index 35ecb1e..f148a77 100644
--- a/asterix-app/src/test/resources/runtimets/testsuite.xml
+++ b/asterix-app/src/test/resources/runtimets/testsuite.xml
@@ -2829,6 +2829,11 @@
                 <output-dir compare="Text">query-issue428</output-dir>
             </compilation-unit>
         </test-case>
+        <test-case FilePath="list">
+            <compilation-unit name="query-ASTERIXDB-673">
+                <output-dir compare="Text">query-ASTERIXDB-673</output-dir>
+            </compilation-unit>
+        </test-case>
     </test-group>
     <test-group name="misc">
         <test-case FilePath="misc">


Mime
View raw message