blob: f5ff114866ba05c64d2c55203f2cfd1328e29245 [file] [log] [blame]
/*
* Description : Left-outer joins two datasets, DBLP and CSX, based on their title.
* DBLP has a secondary btree index on title, and given the 'indexnl' hint
* we expect the join to be transformed into an indexed nested-loop join.
*
* TODO(@Sattam): given the 'indexnl' hint
* we expect the join to be transformed into an indexed nested-loop join.
*
* regression test for issue 285--having an order by for the outer loop relation
* Success : Yes
*/
use dataverse test;
for $a in dataset('DBLP')
order by $a.id
return {
"aid": $a.id,
"bids": for $b in dataset('CSX')
where $a.authors = $b.authors
order by $b.id
return $b.id
}