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