blob: 6d8435ef78918265aa3f842eb8c4234df335809c [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
30delete $c from dataset Customers /*+ skip-index */ where $c.cid < 10;
31