blob: 53ee86bcbb532c981117c2a694768e5787108c08 [file] [log] [blame]
buyingyib366b8d2013-04-30 00:20:20 -07001/*
Ian Maxon857dc132015-09-25 17:13:19 -07002 * Licensed to the Apache Software Foundation (ASF) under one
3 * or more contributor license agreements. See the NOTICE file
4 * distributed with this work for additional information
5 * regarding copyright ownership. The ASF licenses this file
6 * to you under the Apache License, Version 2.0 (the
7 * "License"); you may not use this file except in compliance
8 * with the License. You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing,
13 * software distributed under the License is distributed on an
14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 * KIND, either express or implied. See the License for the
16 * specific language governing permissions and limitations
17 * under the License.
18 */
19/*
buyingyib366b8d2013-04-30 00:20:20 -070020 * Description : This test case is to verify the fix for issue353
21 : https://code.google.com/p/asterixdb/issues/detail?id=353
22 * Expected Res : Success
23 * Date : 28th April 2013
24 */
25
buyingyi76ad6c42013-04-27 21:02:30 -070026drop dataverse tpch if exists;
27create dataverse tpch;
28
29use dataverse tpch;
30
31create type LineItemType as closed {
32 l_orderkey: int32,
33 l_partkey: int32,
34 l_suppkey: int32,
35 l_linenumber: int32,
36 l_quantity: double,
37 l_extendedprice: double,
38 l_discount: double,
39 l_tax: double,
40 l_returnflag: string,
41 l_linestatus: string,
42 l_shipdate: string,
43 l_commitdate: string,
44 l_receiptdate: string,
45 l_shipinstruct: string,
46 l_shipmode: string,
47 l_comment: string
48}
49
50create dataset LineItem(LineItemType)
51 primary key l_orderkey, l_linenumber;
52
Ian Maxonf7b64532015-12-09 17:28:18 -080053write output to asterix_nc1:"/tmp/push_limit.adm";
buyingyi76ad6c42013-04-27 21:02:30 -070054
55for $l in dataset('LineItem')
56limit 2
57return {
58"l_returnflag": $l.l_returnflag,
59"l_linestatus": $l.l_linestatus,
60"l_shipmode": $l.l_shipmode
61}
62