blob: a0096ff8b27b4ae436996c2fcd354527e20186ca [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;
9
10use dataverse test;
11
12create type AddressType as closed {
13 number: int32,
14 street: string,
15 city: string
16}
17
18create type CustomerType as closed {
19 cid: int32,
20 name: string,
21 age: int32,
22 address: AddressType?,
23 interests: {{string}},
24 children: [ { name: string, age: int32? } ]
25}
26
27create dataset Customers(CustomerType) primary key cid;
28
29create index age_index on Customers(age);
30
salsubaieedf89fbc2013-12-21 19:51:42 -080031delete $c from dataset Customers where $c.age /*+ skip-index */ < 20;
salsubaieebb167912013-12-21 12:55:52 -080032