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>
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">