blob: 411dacfdb1800eaa127bcf6aeb9e70213b492fa6 [file] [log] [blame]
khfaraaz82@gmail.comc526fe92012-08-10 22:09:13 +00001/*
2 * Test case Name : toLowerCas03.aql
3 * Description : Test lowercase(string) function
4 * : This test case covers Positive tests
5 * Success : Yes
6 * Date : 19th April 2012
7 */
8
9
10// Create internal dataset, insert string data and pass the string attribute to lowercase function, and verify results.
11
12drop dataverse test if exists;
13create dataverse test;
14use dataverse test;
15
16create type TestType as {
17name:string
18}
19
20create dataset testds(TestType) partitioned by key name;
21
22insert into dataset testds({"name":"Maradona"});
23insert into dataset testds({"name":"Pele"});
24insert into dataset testds({"name":"Roberto Baggio"});
25insert into dataset testds({"name":"Beckham David"});
26insert into dataset testds({"name":"Rooney"});
27insert into dataset testds({"name":"Ronaldinho"});
28insert into dataset testds({"name":"Ronaldo"});
29insert into dataset testds({"name":"Zinadine Zidane"});
30insert into dataset testds({"name":"Cristiano Ronaldo"});
31insert into dataset testds({"name":"Messi"});
32insert into dataset testds({"name":"Tevez"});
33insert into dataset testds({"name":"Henry"});
34
35write output to nc1:"rttest/string_toLowerCase03.adm";
36
37for $l in dataset('testds')
38order by $l.name
39return lowercase($l.name)