blob: 1c6f069bed98bdd5f5d7ccb1df23d4481babaa8f [file] [log] [blame]
salsubaieebb167912013-12-21 12:55:52 -08001/*
2 * Description : The hint to skip secondary indexes don't apply to the primary index
3 * : This test is intended to verify that the primary index is still used instead of a scan
4 * Expected Result : Success
5 * Date : 21th December 2013
6 */
7
8drop dataverse test if exists;
9create dataverse test;
10
11use dataverse test;
12
13create type AddressType as closed {
14 number: int32,
15 street: string,
16 city: string
17}
18
19create type CustomerType as closed {
20 cid: int32,
21 name: string,
22 age: int32?,
23 address: AddressType?,
24 interests: {{string}},
25 children: [ { name: string, age: int32? } ]
26}
27
28create dataset Customers(CustomerType) primary key cid;
29
salsubaieedf89fbc2013-12-21 19:51:42 -080030delete $c from dataset Customers where $c.cid /*+ skip-index */ < 10;
salsubaieebb167912013-12-21 12:55:52 -080031