PageRenderTime 16ms CodeModel.GetById 10ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/tags/release-0.0.0-rc0/hive/external/ql/src/test/queries/clientpositive/udf_space.q

#
text | 27 lines | 23 code | 4 blank | 0 comment | 0 complexity | 6ffb7baf40551bbb775dcc06915a453c MD5 | raw file
 1DESCRIBE FUNCTION space;
 2DESCRIBE FUNCTION EXTENDED space;
 3
 4EXPLAIN SELECT
 5  space(10),
 6  space(0),
 7  space(1),
 8  space(-1),
 9  space(-100)
10FROM src LIMIT 1;
11
12SELECT
13  length(space(10)),
14  length(space(0)),
15  length(space(1)),
16  length(space(-1)),
17  length(space(-100))
18FROM src LIMIT 1;
19
20SELECT
21  space(10),
22  space(0),
23  space(1),
24  space(-1),
25  space(-100)
26FROM src LIMIT 1;
27