salsubaiee | bb16791 | 2013-12-21 12:55:52 -0800 | [diff] [blame^] | 1 | /* |
| 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 | |
| 7 | drop dataverse test if exists; |
| 8 | create dataverse test; |
| 9 | use dataverse test; |
| 10 | |
| 11 | write output to nc1:"rttest/btree-index_btree-secondary-57.adm"; |
| 12 | |
| 13 | create type TestType as open { |
| 14 | id : int32, |
| 15 | fname : string, |
| 16 | lname : string |
| 17 | } |
| 18 | |
| 19 | create dataset testdst(TestType) primary key id; |
| 20 | |
| 21 | create index sec_Idx on testdst(fname); |
| 22 | |
| 23 | for $emp in dataset('testdst') |
| 24 | /*+ skip-index */ |
| 25 | where $emp.fname >= "Max" and $emp.fname <= "Roger" |
| 26 | return $emp |