/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. EXPLAIN
  3. FROM (
  4. FROM src select src.key, src.value WHERE src.key < 100
  5. UNION ALL
  6. FROM src SELECT src.* WHERE src.key > 100
  7. ) unioninput
  8. INSERT OVERWRITE DIRECTORY '../build/ql/test/data/warehouse/union.out' SELECT unioninput.*;
  9. FROM (
  10. FROM src select src.key, src.value WHERE src.key < 100
  11. UNION ALL
  12. FROM src SELECT src.* WHERE src.key > 100
  13. ) unioninput
  14. INSERT OVERWRITE DIRECTORY '../build/ql/test/data/warehouse/union.out' SELECT unioninput.*;
  15. dfs -cat ../build/ql/test/data/warehouse/union.out/*;