blob: b5b70225cf6842fc8d8eb904a2d5db24ace86cc0 [file] [log] [blame]
salsubaiee3c59d762013-02-06 09:10:05 +00001/*
Ildar Absalyamovc70c06a2014-11-11 16:37:04 -08002 * Description : This test is intended to verify that the secondary BTree index is used
salsubaiee3c59d762013-02-06 09:10:05 +00003 * : in the optimized query plan.
4 * Expected Result : Success
5 * Date : 13th Aug 2012
6 */
7
8drop dataverse test if exists;
9create dataverse test;
10use dataverse test;
11
Ildar Absalyamovc70c06a2014-11-11 16:37:04 -080012write output to nc1:"rttest/btree-index_btree-secondary-59.adm";
salsubaiee3c59d762013-02-06 09:10:05 +000013
14create type TestType as open {
15 id : int32,
16 fname : string,
17 lname : string
18}
19
Ildar Absalyamovc70c06a2014-11-11 16:37:04 -080020create dataset testdst(TestType) primary key id;
salsubaiee3c59d762013-02-06 09:10:05 +000021
Ildar Absalyamovc70c06a2014-11-11 16:37:04 -080022create index sec_Idx on testdst(fname);
salsubaiee3c59d762013-02-06 09:10:05 +000023
24for $emp in dataset('testdst')
Ildar Absalyamovc70c06a2014-11-11 16:37:04 -080025where $emp.fname >= "Max" and $emp.fname <= "Roger"
salsubaiee3c59d762013-02-06 09:10:05 +000026return $emp