/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
- -- union case: both subqueries are map jobs on same input, followed by filesink
- EXPLAIN
- FROM (
- FROM src select src.key, src.value WHERE src.key < 100
- UNION ALL
- FROM src SELECT src.* WHERE src.key > 100
- ) unioninput
- INSERT OVERWRITE DIRECTORY '../build/ql/test/data/warehouse/union.out' SELECT unioninput.*;
- FROM (
- FROM src select src.key, src.value WHERE src.key < 100
- UNION ALL
- FROM src SELECT src.* WHERE src.key > 100
- ) unioninput
- INSERT OVERWRITE DIRECTORY '../build/ql/test/data/warehouse/union.out' SELECT unioninput.*;
- dfs -cat ../build/ql/test/data/warehouse/union.out/*;