khfaraaz82@gmail.com | a271613 | 2012-04-30 06:20:50 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Test case Name : open-closed-06.aql |
| 3 | * Description : To test non nullable field types in closed type datasets. |
| 4 | * Success : Yes this test should Fail! |
| 5 | * Date : 03/26/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 closed { |
| 15 | id : int32, |
| 16 | name : string |
| 17 | } |
| 18 | |
| 19 | create dataset testds(testType) partitioned by key id; |
| 20 | |
| 21 | // Missing name field this insert stmt should fail. |
| 22 | |
| 23 | insert into dataset testds({"id": 123}); |
| 24 | |
| 25 | |