blob: 32a6b060f39a2cd88237173ea3f4f20b099d3baa [file] [log] [blame]
salsubaieebb167912013-12-21 12:55:52 -08001/*
2 * Description : Notice the query hint to avoid using any secondary index to evaluate the predicate in the where clause
3 * Expected Res : Success
4 * Date : 21th December 2013
5 */
6
7drop dataverse test if exists;
8create dataverse test;
9use dataverse test;
10
11write output to nc1:"rttest/btree-index_btree-secondary-57.adm";
12
13create type TestType as open {
14 id : int32,
15 fname : string,
16 lname : string
17}
18
19create dataset testdst(TestType) primary key id;
20
21create index sec_Idx on testdst(fname);
22
23for $emp in dataset('testdst')
24/*+ skip-index */
25where $emp.fname >= "Max" and $emp.fname <= "Roger"
26return $emp