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

# · text · 18 lines · 14 code · 4 blank · 0 comment · 0 complexity · 78a0079e836a6397e77b3997a8a794f2 MD5 · raw file

  1. set hive.auto.convert.join = true;
  2. explain
  3. SELECT sum(hash(subq.key, tab.value))
  4. FROM
  5. (select a.key, a.value from src a where a.key > 10 ) subq
  6. JOIN src tab
  7. ON (subq.key = tab.key and subq.key > 20 and subq.value = tab.value)
  8. where tab.value < 200;
  9. SELECT sum(hash(subq.key, tab.value))
  10. FROM
  11. (select a.key, a.value from src a where a.key > 10 ) subq
  12. JOIN src tab
  13. ON (subq.key = tab.key and subq.key > 20 and subq.value = tab.value)
  14. where tab.value < 200;