blob: a8a27ca6f35c94b1aebc2b11d5f18d302c4f30f2 [file] [log] [blame]
salsubaiee201be382013-07-16 17:50:33 -07001/*
2 * Test case Name : insert-and-scan-joined-datasets.aql
3 * Description : This test is intended to test inserting into a dataset where the incoming stream
4 is involve a join operation that has the same dataset. We insert a materializing to prevent the
5 possibility of deadlatch.
6 * Expected Result : Success
7 * Date : July 11 2013
8 */
9
10drop dataverse test if exists;
11create dataverse test;
12
13use dataverse test;
14
15create type myDataType as open {
16 id: int32
17}
18
19create dataset myData(myDataType)
20 primary key id;
21
22create dataset myData2(myDataType)
23 primary key id;
24
25insert into dataset myData (
26for $x in dataset myData2
27for $y in dataset myData
28where $x.id = $y.id
29return {
30 "id": $x.id + 1
31}
32);