alexander.behm | c576c60 | 2012-07-06 02:41:15 +0000 | [diff] [blame] | 1 | drop dataverse test if exists; |
| 2 | create dataverse test; |
| 3 | use dataverse test; |
| 4 | |
| 5 | create type CustomerType as closed { |
| 6 | c_custkey: int32, |
| 7 | c_name: string, |
| 8 | c_address: string, |
| 9 | c_nationkey: int32, |
| 10 | c_phone: string, |
| 11 | c_acctbal: double, |
| 12 | c_mktsegment: string, |
| 13 | c_comment: string |
| 14 | } |
| 15 | |
| 16 | create nodegroup group1 if not exists on nc1, nc2; |
| 17 | |
| 18 | create dataset Customers(CustomerType) |
ramangrover29 | 669d8f6 | 2013-02-11 06:03:32 +0000 | [diff] [blame^] | 19 | primary key c_custkey on group1; |
alexander.behm | c576c60 | 2012-07-06 02:41:15 +0000 | [diff] [blame] | 20 | |
| 21 | write output to nc1:"rttest/consolidate-selects-simple.aql"; |
| 22 | |
| 23 | for $c in dataset('Customers') |
| 24 | where $c.c_name = "testname" |
| 25 | and $c.c_address = "testaddr" |
| 26 | and $c.c_nationkey = 1 |
| 27 | and $c.c_phone = "123456789" |
| 28 | return $c |