Ildar Absalyamov | c70c06a | 2014-11-11 16:37:04 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Description : BTree Index verification test |
| 3 | * : This test is intended to verify that the primary BTree index is used |
| 4 | * : in the optimized query plan. |
| 5 | * Expected Result : Success |
| 6 | * Date : 11th Nov 2014 |
| 7 | */ |
| 8 | |
| 9 | // Positive test - prefix search |
| 10 | |
| 11 | drop dataverse test if exists; |
| 12 | create dataverse test; |
| 13 | use dataverse test; |
| 14 | |
| 15 | write output to nc1:"rttest/btree-index_btree-primary-32.adm"; |
| 16 | |
| 17 | create type TestType as open { |
| 18 | fname : string, |
| 19 | lname : string |
| 20 | } |
| 21 | |
| 22 | create dataset testdst(TestType) primary key fname,lname; |
| 23 | |
| 24 | for $emp in dataset('testdst') |
| 25 | where $emp.fname < "Julio" and $emp.lname = "Xu" |
| 26 | return $emp |