PageRenderTime 13ms 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/union.q

#
text | 18 lines | 15 code | 3 blank | 0 comment | 0 complexity | fa78e97a655cc6db78cd15c28197126b MD5 | raw file
 1-- union case: both subqueries are map jobs on same input, followed by filesink
 2
 3EXPLAIN
 4FROM (
 5  FROM src select src.key, src.value WHERE src.key < 100
 6  UNION ALL
 7  FROM src SELECT src.* WHERE src.key > 100
 8) unioninput
 9INSERT OVERWRITE DIRECTORY '../build/ql/test/data/warehouse/union.out' SELECT unioninput.*;
10
11FROM (
12  FROM src select src.key, src.value WHERE src.key < 100
13  UNION ALL
14  FROM src SELECT src.* WHERE src.key > 100
15) unioninput
16INSERT OVERWRITE DIRECTORY '../build/ql/test/data/warehouse/union.out' SELECT unioninput.*;
17
18dfs -cat ../build/ql/test/data/warehouse/union.out/*;