asterixdb-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jianfeng Jia (Code Review)" <do-not-re...@asterixdb.incubator.apache.org>
Subject Change in asterixdb[master]: Add the group-only test for ExteralHashGroupby
Date Sat, 12 Mar 2016 18:55:05 GMT
Jianfeng Jia has submitted this change and it was merged.

Change subject: Add the group-only test for ExteralHashGroupby
......................................................................


Add the group-only test for ExteralHashGroupby

Change-Id: Ia0b6560e43dc56072a02ff1c105b54669cef0197
Reviewed-on: https://asterix-gerrit.ics.uci.edu/714
Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Reviewed-by: Yingyi Bu <buyingyi@gmail.com>
---
A asterix-app/src/test/resources/runtimets/queries/aggregate/group_only/group_only.1.ddl.aql
A asterix-app/src/test/resources/runtimets/queries/aggregate/group_only/group_only.2.update.aql
A asterix-app/src/test/resources/runtimets/queries/aggregate/group_only/group_only.3.query.aql
A asterix-app/src/test/resources/runtimets/results/aggregate/group_only/group_only.1.adm
M asterix-app/src/test/resources/runtimets/testsuite.xml
5 files changed, 94 insertions(+), 0 deletions(-)

Approvals:
  Yingyi Bu: Looks good to me, approved
  Jenkins: Verified



diff --git a/asterix-app/src/test/resources/runtimets/queries/aggregate/group_only/group_only.1.ddl.aql
b/asterix-app/src/test/resources/runtimets/queries/aggregate/group_only/group_only.1.ddl.aql
new file mode 100644
index 0000000..2d0132a
--- /dev/null
+++ b/asterix-app/src/test/resources/runtimets/queries/aggregate/group_only/group_only.1.ddl.aql
@@ -0,0 +1,34 @@
+/*
+ * 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 dblp if exists;
+
+create dataverse dblp;
+
+use dataverse dblp;
+
+create type DBLPType as open {
+  id: int64,
+  dblpid: string,
+  title: string,
+  authors: string,
+  misc: string
+}
+
+create dataset DBLP(DBLPType) primary key id;
+
diff --git a/asterix-app/src/test/resources/runtimets/queries/aggregate/group_only/group_only.2.update.aql
b/asterix-app/src/test/resources/runtimets/queries/aggregate/group_only/group_only.2.update.aql
new file mode 100644
index 0000000..1f23b15
--- /dev/null
+++ b/asterix-app/src/test/resources/runtimets/queries/aggregate/group_only/group_only.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 dblp;
+
+load dataset DBLP
+using localfs
+(("path"="asterix_nc1://data/pub-small/dblp-small-id.txt"),("format"="delimited-text"),("delimiter"=":"));
+
+
diff --git a/asterix-app/src/test/resources/runtimets/queries/aggregate/group_only/group_only.3.query.aql
b/asterix-app/src/test/resources/runtimets/queries/aggregate/group_only/group_only.3.query.aql
new file mode 100644
index 0000000..3541331
--- /dev/null
+++ b/asterix-app/src/test/resources/runtimets/queries/aggregate/group_only/group_only.3.query.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 dblp;
+
+for $d in dataset DBLP limit 5
+/* + hash */
+group by  $au:= $d.authors, $tt:=$d.title with $d
+order by $au
+return { "author":$au, "title":$tt }
diff --git a/asterix-app/src/test/resources/runtimets/results/aggregate/group_only/group_only.1.adm
b/asterix-app/src/test/resources/runtimets/results/aggregate/group_only/group_only.1.adm
new file mode 100644
index 0000000..9be96d3
--- /dev/null
+++ b/asterix-app/src/test/resources/runtimets/results/aggregate/group_only/group_only.1.adm
@@ -0,0 +1,5 @@
+{ "author": "José A. Blakeley", "title": "OQL[C++]  Extending C++ with an Object Query Capability."
}
+{ "author": "Jurgen Annevelink Rafiul Ahad Amelia Carlson Daniel H. Fishman Michael L. Heytens
William Kent", "title": "Object SQL - A Language for the Design and Implementation of Object
Databases." }
+{ "author": "Stavros Christodoulakis Leonidas Koveos", "title": "Multimedia Information Systems
 Issues and Approaches." }
+{ "author": "Umeshwar Dayal Eric N. Hanson Jennifer Widom", "title": "Active Database Systems."
}
+{ "author": "Yuri Breitbart Hector Garcia-Molina Abraham Silberschatz", "title": "Transaction
Management in Multidatabase Systems." }
\ No newline at end of file
diff --git a/asterix-app/src/test/resources/runtimets/testsuite.xml b/asterix-app/src/test/resources/runtimets/testsuite.xml
index 8411c5a..b46b75b 100644
--- a/asterix-app/src/test/resources/runtimets/testsuite.xml
+++ b/asterix-app/src/test/resources/runtimets/testsuite.xml
@@ -407,6 +407,11 @@
                 <output-dir compare="Text">query-ASTERIXDB-923</output-dir>
             </compilation-unit>
         </test-case>
+        <test-case FilePath="aggregate">
+            <compilation-unit name="group_only">
+                <output-dir compare="Text">group_only</output-dir>
+            </compilation-unit>
+        </test-case>
         <!--
         <test-case FilePath="aggregate">
           <compilation-unit name="droptype">

-- 
To view, visit https://asterix-gerrit.ics.uci.edu/714
To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ia0b6560e43dc56072a02ff1c105b54669cef0197
Gerrit-PatchSet: 3
Gerrit-Project: asterixdb
Gerrit-Branch: master
Gerrit-Owner: Jianfeng Jia <jianfeng.jia@gmail.com>
Gerrit-Reviewer: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Gerrit-Reviewer: Jianfeng Jia <jianfeng.jia@gmail.com>
Gerrit-Reviewer: Yingyi Bu <buyingyi@gmail.com>

Mime
View raw message