Fixed a small flaw in recently added tests.
git-svn-id: https://asterixdb.googlecode.com/svn/branches/asterix_stabilization@194 eaa15691-b419-025a-1212-ee371bd00084
diff --git a/asterix-app/src/test/resources/runtimets/queries/dml/empty-load.aql b/asterix-app/src/test/resources/runtimets/queries/dml/empty-load.aql
index 5f51b93..f9db086 100644
--- a/asterix-app/src/test/resources/runtimets/queries/dml/empty-load.aql
+++ b/asterix-app/src/test/resources/runtimets/queries/dml/empty-load.aql
@@ -1,6 +1,6 @@
/*
- * Test case Name : empty-load.aql
- * Description : Check that an empty load doesn't preclude a future non-empty load on a primary index
+ * Test case Name : empty-load-with-index.aql
+ * Description : Check that an empty load doesn't preclude a future non-empty load on primary index
* Expected Result : Success
* Date : May 2 2012
*/
@@ -9,25 +9,40 @@
create dataverse test;
use dataverse test;
-create type LineIDType as closed {
+create type LineItemType as closed {
l_orderkey: int32,
+ l_partkey: int32,
+ l_suppkey: int32,
l_linenumber: int32,
- l_suppkey: int32
+ l_quantity: double,
+ l_extendedprice: double,
+ l_discount: double,
+ l_tax: double,
+ l_returnflag: string,
+ l_linestatus: string,
+ l_shipdate: string,
+ l_commitdate: string,
+ l_receiptdate: string,
+ l_shipinstruct: string,
+ l_shipmode: string,
+ l_comment: string
}
-create dataset LineID(LineIDType)
+create dataset LineItem(LineItemType)
partitioned by key l_orderkey, l_linenumber;
-load dataset LineID
+create index part_index on LineItem(l_partkey);
+
+load dataset LineItem
using "edu.uci.ics.asterix.external.dataset.adapter.NCFileSystemAdapter"
(("path"="nc1://data/empty.adm"),("format"="delimited-text"),("delimiter"="|")) pre-sorted;
-load dataset LineID
+load dataset LineItem
using "edu.uci.ics.asterix.external.dataset.adapter.NCFileSystemAdapter"
(("path"="nc1://data/tpch0.001/lineitem.tbl"),("format"="delimited-text"),("delimiter"="|")) pre-sorted;
write output to nc1:"rttest/dml_empty-load.adm";
-for $c in dataset('LineID')
+for $c in dataset('LineItem')
order by $c.l_orderkey, $c.l_linenumber
limit 1
-return $c
+return $c