blob: abf77c69ff357f22af0d28b892e5bd9fc499e120 [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')
salsubaieedf89fbc2013-12-21 19:51:42 -080024where $emp.fname /*+ skip-index */ >= "Max" and $emp.fname /*+ skip-index */ <= "Roger"
salsubaieebb167912013-12-21 12:55:52 -080025return $emp