/* | |
* Test case Name : insert-and-scan-dataset.aql | |
* Description : This test is intended to test inserting into a dataset and scan it at the same time | |
* where we insert a materializing to prevent the possibility of deadlatch. | |
* Expected Result : Success | |
* Date : July 11 2013 | |
*/ | |
drop dataverse test if exists; | |
create dataverse test; | |
use dataverse test; | |
create type myDataType as open { | |
id: int32 | |
} | |
create dataset myData(myDataType) | |
primary key id; | |
insert into dataset myData ( | |
for $x in dataset myData | |
return { | |
"id": $x.id + 1 | |
} | |
); |