PageRenderTime 39ms CodeModel.GetById 15ms RepoModel.GetById 0ms app.codeStats 0ms

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

#
text | 186 lines | 179 code | 7 blank | 0 comment | 0 complexity | 5c9175917d151f629ad4fc6258a086d2 MD5 | raw file
Possible License(s): Apache-2.0, BSD-3-Clause, JSON, CPL-1.0
  1. PREHOOK: query: explain
  2. select * from (
  3. select * from srcpart a where a.ds = '2008-04-08' and a.hr = '11' order by a.key limit 5
  4. union all
  5. select * from srcpart b where b.ds = '2008-04-08' and b.hr = '14' limit 5
  6. )subq
  7. PREHOOK: type: QUERY
  8. POSTHOOK: query: explain
  9. select * from (
  10. select * from srcpart a where a.ds = '2008-04-08' and a.hr = '11' order by a.key limit 5
  11. union all
  12. select * from srcpart b where b.ds = '2008-04-08' and b.hr = '14' limit 5
  13. )subq
  14. POSTHOOK: type: QUERY
  15. ABSTRACT SYNTAX TREE:
  16. (TOK_QUERY (TOK_FROM (TOK_SUBQUERY (TOK_UNION (TOK_QUERY (TOK_FROM (TOK_TABREF (TOK_TABNAME srcpart) a)) (TOK_INSERT (TOK_DESTINATION (TOK_DIR TOK_TMP_FILE)) (TOK_SELECT (TOK_SELEXPR TOK_ALLCOLREF)) (TOK_WHERE (and (= (. (TOK_TABLE_OR_COL a) ds) '2008-04-08') (= (. (TOK_TABLE_OR_COL a) hr) '11'))) (TOK_ORDERBY (TOK_TABSORTCOLNAMEASC (. (TOK_TABLE_OR_COL a) key))) (TOK_LIMIT 5))) (TOK_QUERY (TOK_FROM (TOK_TABREF (TOK_TABNAME srcpart) b)) (TOK_INSERT (TOK_DESTINATION (TOK_DIR TOK_TMP_FILE)) (TOK_SELECT (TOK_SELEXPR TOK_ALLCOLREF)) (TOK_WHERE (and (= (. (TOK_TABLE_OR_COL b) ds) '2008-04-08') (= (. (TOK_TABLE_OR_COL b) hr) '14'))) (TOK_LIMIT 5)))) subq)) (TOK_INSERT (TOK_DESTINATION (TOK_DIR TOK_TMP_FILE)) (TOK_SELECT (TOK_SELEXPR TOK_ALLCOLREF))))
  17. STAGE DEPENDENCIES:
  18. Stage-1 is a root stage
  19. Stage-2 depends on stages: Stage-1, Stage-3
  20. Stage-3 is a root stage
  21. Stage-0 is a root stage
  22. STAGE PLANS:
  23. Stage: Stage-1
  24. Map Reduce
  25. Alias -> Map Operator Tree:
  26. null-subquery1:subq-subquery1:a
  27. TableScan
  28. alias: a
  29. Filter Operator
  30. predicate:
  31. expr: ((ds = '2008-04-08') and (hr = '11'))
  32. type: boolean
  33. Select Operator
  34. expressions:
  35. expr: key
  36. type: string
  37. expr: value
  38. type: string
  39. expr: ds
  40. type: string
  41. expr: hr
  42. type: string
  43. outputColumnNames: _col0, _col1, _col2, _col3
  44. Reduce Output Operator
  45. key expressions:
  46. expr: _col0
  47. type: string
  48. sort order: +
  49. tag: -1
  50. value expressions:
  51. expr: _col0
  52. type: string
  53. expr: _col1
  54. type: string
  55. expr: _col2
  56. type: string
  57. expr: _col3
  58. type: string
  59. Reduce Operator Tree:
  60. Extract
  61. Limit
  62. File Output Operator
  63. compressed: false
  64. GlobalTableId: 0
  65. table:
  66. input format: org.apache.hadoop.mapred.SequenceFileInputFormat
  67. output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat
  68. Stage: Stage-2
  69. Map Reduce
  70. Alias -> Map Operator Tree:
  71. file:/tmp/sdong/hive_2011-02-10_15-54-47_775_6322428928723831214/-mr-10002
  72. Union
  73. Select Operator
  74. expressions:
  75. expr: _col0
  76. type: string
  77. expr: _col1
  78. type: string
  79. expr: _col2
  80. type: string
  81. expr: _col3
  82. type: string
  83. outputColumnNames: _col0, _col1, _col2, _col3
  84. File Output Operator
  85. compressed: false
  86. GlobalTableId: 0
  87. table:
  88. input format: org.apache.hadoop.mapred.TextInputFormat
  89. output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
  90. file:/tmp/sdong/hive_2011-02-10_15-54-47_775_6322428928723831214/-mr-10003
  91. Union
  92. Select Operator
  93. expressions:
  94. expr: _col0
  95. type: string
  96. expr: _col1
  97. type: string
  98. expr: _col2
  99. type: string
  100. expr: _col3
  101. type: string
  102. outputColumnNames: _col0, _col1, _col2, _col3
  103. File Output Operator
  104. compressed: false
  105. GlobalTableId: 0
  106. table:
  107. input format: org.apache.hadoop.mapred.TextInputFormat
  108. output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
  109. Stage: Stage-3
  110. Map Reduce
  111. Alias -> Map Operator Tree:
  112. null-subquery2:subq-subquery2:b
  113. TableScan
  114. alias: b
  115. Filter Operator
  116. predicate:
  117. expr: ((ds = '2008-04-08') and (hr = '14'))
  118. type: boolean
  119. Filter Operator
  120. predicate:
  121. expr: ((ds = '2008-04-08') and (hr = '14'))
  122. type: boolean
  123. Select Operator
  124. expressions:
  125. expr: key
  126. type: string
  127. expr: value
  128. type: string
  129. expr: ds
  130. type: string
  131. expr: hr
  132. type: string
  133. outputColumnNames: _col0, _col1, _col2, _col3
  134. Limit
  135. Reduce Output Operator
  136. sort order:
  137. tag: -1
  138. value expressions:
  139. expr: _col0
  140. type: string
  141. expr: _col1
  142. type: string
  143. expr: _col2
  144. type: string
  145. expr: _col3
  146. type: string
  147. Reduce Operator Tree:
  148. Extract
  149. Limit
  150. File Output Operator
  151. compressed: false
  152. GlobalTableId: 0
  153. table:
  154. input format: org.apache.hadoop.mapred.SequenceFileInputFormat
  155. output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat
  156. Stage: Stage-0
  157. Fetch Operator
  158. limit: -1
  159. PREHOOK: query: select * from (
  160. select * from srcpart a where a.ds = '2008-04-08' and a.hr = '11' order by a.key limit 5
  161. union all
  162. select * from srcpart b where b.ds = '2008-04-08' and b.hr = '14' limit 5
  163. )subq
  164. PREHOOK: type: QUERY
  165. PREHOOK: Input: default@srcpart@ds=2008-04-08/hr=11
  166. PREHOOK: Output: file:/tmp/sdong/hive_2011-02-10_15-54-47_937_1412967694655761034/-mr-10000
  167. POSTHOOK: query: select * from (
  168. select * from srcpart a where a.ds = '2008-04-08' and a.hr = '11' order by a.key limit 5
  169. union all
  170. select * from srcpart b where b.ds = '2008-04-08' and b.hr = '14' limit 5
  171. )subq
  172. POSTHOOK: type: QUERY
  173. POSTHOOK: Input: default@srcpart@ds=2008-04-08/hr=11
  174. POSTHOOK: Output: file:/tmp/sdong/hive_2011-02-10_15-54-47_937_1412967694655761034/-mr-10000
  175. 0 val_0 2008-04-08 11
  176. 0 val_0 2008-04-08 11
  177. 0 val_0 2008-04-08 11
  178. 10 val_10 2008-04-08 11
  179. 100 val_100 2008-04-08 11