PageRenderTime 38ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

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

#
text | 24 lines | 22 code | 2 blank | 0 comment | 0 complexity | d8f1c9fc9490d6b60fa46ae643db8dcd MD5 | raw file
Possible License(s): Apache-2.0, BSD-3-Clause, JSON, CPL-1.0
  1. set hive.optimize.ppd=true;
  2. EXPLAIN
  3. SELECT src1.c1, src2.c4
  4. FROM
  5. (SELECT src.key as c1, src.value as c2 from src where src.key <> '302' ) src1
  6. JOIN
  7. (SELECT src.key as c3, src.value as c4 from src where src.key <> '305' ) src2
  8. ON src1.c1 = src2.c3 AND src1.c1 < '400'
  9. JOIN
  10. (SELECT src.key as c5, src.value as c6 from src where src.key <> '306' ) src3
  11. ON src1.c2 = src3.c6
  12. WHERE src1.c1 <> '311' and (src1.c2 <> 'val_50' or src1.c1 > '1') and (src2.c3 <> '10' or src1.c1 <> '10') and (src2.c3 <> '14') and (sqrt(src3.c5) <> 13);
  13. SELECT src1.c1, src2.c4
  14. FROM
  15. (SELECT src.key as c1, src.value as c2 from src where src.key <> '302' ) src1
  16. JOIN
  17. (SELECT src.key as c3, src.value as c4 from src where src.key <> '305' ) src2
  18. ON src1.c1 = src2.c3 AND src1.c1 < '400'
  19. JOIN
  20. (SELECT src.key as c5, src.value as c6 from src where src.key <> '306' ) src3
  21. ON src1.c2 = src3.c6
  22. WHERE src1.c1 <> '311' and (src1.c2 <> 'val_50' or src1.c1 > '1') and (src2.c3 <> '10' or src1.c1 <> '10') and (src2.c3 <> '14') and (sqrt(src3.c5) <> 13);