khfaraaz82@gmail.com | e435317 | 2012-05-31 00:09:40 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Testcase Name : open-closed-25.aql |
| 3 | * Description : Test use of additional data(open) optional field in create type statement |
| 4 | * Success : Yes |
| 5 | * Date : 29th May 2012 |
| 6 | */ |
| 7 | |
| 8 | drop dataverse test if exists; |
| 9 | |
| 10 | create dataverse test; |
| 11 | |
| 12 | use dataverse test; |
| 13 | |
| 14 | create type testType as open { |
| 15 | id : int32, |
| 16 | name : string, |
| 17 | opt_tag : {{ string }}? |
| 18 | } |
| 19 | |
| 20 | create dataset testds(testType) partitioned by key id; |
| 21 | |
| 22 | insert into dataset testds({"id": 32,"name": "UCI","opt_tag":{{"optional text","put any text here","and more"}}}); |
| 23 | |
buyingyi | bc282ae | 2012-06-05 21:41:14 +0000 | [diff] [blame] | 24 | write output to nc1:"rttest/open-closed_open-closed-25.adm"; |
khfaraaz82@gmail.com | e435317 | 2012-05-31 00:09:40 +0000 | [diff] [blame] | 25 | for $l in dataset('testds') |
| 26 | return $l |