blob: f1b2678db4f7896f7be279b83db123accdecde54 [file] [log] [blame]
buyingyib366b8d2013-04-30 00:20:20 -07001/*
2 * Description : This test case is to verify the fix for issue353
3 : https://code.google.com/p/asterixdb/issues/detail?id=353
4 * Expected Res : Success
5 * Date : 28th April 2013
6 */
7
buyingyi76ad6c42013-04-27 21:02:30 -07008drop dataverse tpch if exists;
9create dataverse tpch;
10
11use dataverse tpch;
12
13create type LineItemType as closed {
14 l_orderkey: int32,
15 l_partkey: int32,
16 l_suppkey: int32,
17 l_linenumber: int32,
18 l_quantity: double,
19 l_extendedprice: double,
20 l_discount: double,
21 l_tax: double,
22 l_returnflag: string,
23 l_linestatus: string,
24 l_shipdate: string,
25 l_commitdate: string,
26 l_receiptdate: string,
27 l_shipinstruct: string,
28 l_shipmode: string,
29 l_comment: string
30}
31
32create dataset LineItem(LineItemType)
33 primary key l_orderkey, l_linenumber;
34
35write output to nc1:"/tmp/push_limit.adm";
36
37for $l in dataset('LineItem')
38limit 2
39return {
40"l_returnflag": $l.l_returnflag,
41"l_linestatus": $l.l_linestatus,
42"l_shipmode": $l.l_shipmode
43}
44