| * Testcase Name : c2c-wo-optional.aql |
| * Description : Insert data into target datase by doing a select on source dataset. |
| * : Here both source and target datasets are internal datasets |
| * : The schema includes one optional field named optnl_fld. |
| * : Note that the optional field in source dataset does not hold any data. |
| drop dataverse test if exists; |
| create type TestType as closed { |
| create dataset T1(TestType) partitioned by key id; |
| create dataset T2(TestType) partitioned by key id; |
| insert into dataset T2(for $l in dataset("T1") return $l ); |