PageRenderTime 44ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 0ms

/tags/release-0.0.0-rc0/hive/external/ql/src/test/results/clientpositive/union2.q.out

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