blob: 358e9cd81a98e43e8b50ea4b96774a1a0c2cbf7c [file] [log] [blame]
khfaraaz82@gmail.comca3d41f2013-02-04 22:10:44 +00001/*
2 * Description : This is a negative test, mis-spelt/incorrect HINT should result in error
3 * Expected Res : Success
4 * Date : 29th November 2012
5 */
6
7drop dataverse test1 if exists;
8create dataverse test1;
9
10create type test1.TestType as open {
11 key1: int32,
12 key2: int32,
13 fname : string,
14 lname : string
15}
16
17create dataset test1.DsOne(TestType) partitioned by key key1;
18create dataset test1.DsTwo(TestType) partitioned by key key1;
19
20// Please note content enclosed in the comment in the predicate is the HINT to the optimizer
21
22for $x in dataset('test1.DsOne')
23for $y in dataset('test1.DsTwo')
24where $x.key2 /*+ index */ = $y.key1
25return $x
26