PageRenderTime 39ms CodeModel.GetById 13ms RepoModel.GetById 1ms app.codeStats 0ms

/tags/release-0.2.0-rc0/hive/external/ql/src/test/results/clientpositive/union9.q.out

#
text | 134 lines | 127 code | 7 blank | 0 comment | 0 complexity | 9a128a6e5abe99be1529ec0d1aad740c MD5 | raw file
Possible License(s): Apache-2.0, BSD-3-Clause, JSON, CPL-1.0
  1. PREHOOK: query: -- union case: all subqueries are a map-only jobs, 3 way union, same input for all sub-queries, followed by reducesink
  2. explain
  3. select count(1) FROM (select s1.key as key, s1.value as value from src s1 UNION ALL
  4. select s2.key as key, s2.value as value from src s2 UNION ALL
  5. select s3.key as key, s3.value as value from src s3) unionsrc
  6. PREHOOK: type: QUERY
  7. POSTHOOK: query: -- union case: all subqueries are a map-only jobs, 3 way union, same input for all sub-queries, followed by reducesink
  8. explain
  9. select count(1) FROM (select s1.key as key, s1.value as value from src s1 UNION ALL
  10. select s2.key as key, s2.value as value from src s2 UNION ALL
  11. select s3.key as key, s3.value as value from src s3) unionsrc
  12. POSTHOOK: type: QUERY
  13. ABSTRACT SYNTAX TREE:
  14. (TOK_QUERY (TOK_FROM (TOK_SUBQUERY (TOK_UNION (TOK_UNION (TOK_QUERY (TOK_FROM (TOK_TABREF (TOK_TABNAME src) s1)) (TOK_INSERT (TOK_DESTINATION (TOK_DIR TOK_TMP_FILE)) (TOK_SELECT (TOK_SELEXPR (. (TOK_TABLE_OR_COL s1) key) key) (TOK_SELEXPR (. (TOK_TABLE_OR_COL s1) value) value)))) (TOK_QUERY (TOK_FROM (TOK_TABREF (TOK_TABNAME src) s2)) (TOK_INSERT (TOK_DESTINATION (TOK_DIR TOK_TMP_FILE)) (TOK_SELECT (TOK_SELEXPR (. (TOK_TABLE_OR_COL s2) key) key) (TOK_SELEXPR (. (TOK_TABLE_OR_COL s2) value) value))))) (TOK_QUERY (TOK_FROM (TOK_TABREF (TOK_TABNAME src) s3)) (TOK_INSERT (TOK_DESTINATION (TOK_DIR TOK_TMP_FILE)) (TOK_SELECT (TOK_SELEXPR (. (TOK_TABLE_OR_COL s3) key) key) (TOK_SELEXPR (. (TOK_TABLE_OR_COL s3) value) value))))) unionsrc)) (TOK_INSERT (TOK_DESTINATION (TOK_DIR TOK_TMP_FILE)) (TOK_SELECT (TOK_SELEXPR (TOK_FUNCTION count 1)))))
  15. STAGE DEPENDENCIES:
  16. Stage-1 is a root stage
  17. Stage-0 is a root stage
  18. STAGE PLANS:
  19. Stage: Stage-1
  20. Map Reduce
  21. Alias -> Map Operator Tree:
  22. null-subquery1-subquery1:unionsrc-subquery1-subquery1:s1
  23. TableScan
  24. alias: s1
  25. Select Operator
  26. expressions:
  27. expr: key
  28. type: string
  29. expr: value
  30. type: string
  31. outputColumnNames: _col0, _col1
  32. Union
  33. Select Operator
  34. Group By Operator
  35. aggregations:
  36. expr: count(1)
  37. bucketGroup: false
  38. mode: hash
  39. outputColumnNames: _col0
  40. Reduce Output Operator
  41. sort order:
  42. tag: -1
  43. value expressions:
  44. expr: _col0
  45. type: bigint
  46. null-subquery1-subquery2:unionsrc-subquery1-subquery2:s2
  47. TableScan
  48. alias: s2
  49. Select Operator
  50. expressions:
  51. expr: key
  52. type: string
  53. expr: value
  54. type: string
  55. outputColumnNames: _col0, _col1
  56. Union
  57. Select Operator
  58. Group By Operator
  59. aggregations:
  60. expr: count(1)
  61. bucketGroup: false
  62. mode: hash
  63. outputColumnNames: _col0
  64. Reduce Output Operator
  65. sort order:
  66. tag: -1
  67. value expressions:
  68. expr: _col0
  69. type: bigint
  70. null-subquery2:unionsrc-subquery2:s3
  71. TableScan
  72. alias: s3
  73. Select Operator
  74. expressions:
  75. expr: key
  76. type: string
  77. expr: value
  78. type: string
  79. outputColumnNames: _col0, _col1
  80. Union
  81. Select Operator
  82. Group By Operator
  83. aggregations:
  84. expr: count(1)
  85. bucketGroup: false
  86. mode: hash
  87. outputColumnNames: _col0
  88. Reduce Output Operator
  89. sort order:
  90. tag: -1
  91. value expressions:
  92. expr: _col0
  93. type: bigint
  94. Reduce Operator Tree:
  95. Group By Operator
  96. aggregations:
  97. expr: count(VALUE._col0)
  98. bucketGroup: false
  99. mode: mergepartial
  100. outputColumnNames: _col0
  101. Select Operator
  102. expressions:
  103. expr: _col0
  104. type: bigint
  105. outputColumnNames: _col0
  106. File Output Operator
  107. compressed: false
  108. GlobalTableId: 0
  109. table:
  110. input format: org.apache.hadoop.mapred.TextInputFormat
  111. output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
  112. Stage: Stage-0
  113. Fetch Operator
  114. limit: -1
  115. PREHOOK: query: select count(1) FROM (select s1.key as key, s1.value as value from src s1 UNION ALL
  116. select s2.key as key, s2.value as value from src s2 UNION ALL
  117. select s3.key as key, s3.value as value from src s3) unionsrc
  118. PREHOOK: type: QUERY
  119. PREHOOK: Input: default@src
  120. PREHOOK: Output: file:/tmp/sdong/hive_2011-02-10_17-53-16_721_6840297944653186826/-mr-10000
  121. POSTHOOK: query: select count(1) FROM (select s1.key as key, s1.value as value from src s1 UNION ALL
  122. select s2.key as key, s2.value as value from src s2 UNION ALL
  123. select s3.key as key, s3.value as value from src s3) unionsrc
  124. POSTHOOK: type: QUERY
  125. POSTHOOK: Input: default@src
  126. POSTHOOK: Output: file:/tmp/sdong/hive_2011-02-10_17-53-16_721_6840297944653186826/-mr-10000
  127. 1500