blob: 0ad2dde34e4548033bdd65a146c1a4195ececcc5 [file] [log] [blame]
vinayakb38b7ca42012-03-05 05:44:15 +00001drop dataverse test if exists;
2
3create dataverse test;
4use dataverse test;
5
6create type MyRecord as closed {
7 id: int32,
8 tweetid: int64,
9 loc: point,
10 time: datetime,
11 text: string
12}
13
14
15create nodegroup group1 if not exists on nc1, nc2;
16
17create dataset MyData(MyRecord)
18 partitioned by key id on group1;
19
20load dataset MyData
21using "edu.uci.ics.asterix.external.dataset.adapter.NCFileSystemAdapter"
22(("path"="nc1://data/twitter/smalltweets.txt"),("format"="adm")) pre-sorted;
23
24
25delete $l from dataset MyData where $l.id>=50 die after 1500;
26
27write output to nc1:"rttest/failure_delete-rtree.adm";
28
29for $o in dataset('MyData')
30order by $o.id
31return {"id":$o.id}