khfaraaz82@gmail.com | a271613 | 2012-04-30 06:20:50 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Test case name : open-closed-18.aql |
| 3 | * Description : Test insertion of additional data into an open type internal dataset. |
| 4 | * Success : Yes |
| 5 | * Date : 29 April 2012 |
| 6 | */ |
| 7 | |
| 8 | drop dataverse test if exists; |
| 9 | create dataverse test; |
| 10 | use dataverse test; |
| 11 | |
| 12 | create type TestType as open { |
| 13 | id:int32 |
| 14 | } |
| 15 | |
| 16 | create dataset testds(TestType) partitioned by key id; |
| 17 | |
| 18 | insert into dataset testds( for $i in range(1,10) return { "id":$i,"name":"John Doe" }); |
| 19 | |
| 20 | for $l in dataset('testds') |
| 21 | return $l |