PageRenderTime 44ms CodeModel.GetById 16ms RepoModel.GetById 1ms app.codeStats 0ms

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

#
text | 260 lines | 249 code | 11 blank | 0 comment | 0 complexity | d783144c71434cdbce5817d2491bdec3 MD5 | raw file
Possible License(s): Apache-2.0, BSD-3-Clause, JSON, CPL-1.0
  1. PREHOOK: query: create table tst1(key STRING, cnt INT)
  2. PREHOOK: type: CREATETABLE
  3. POSTHOOK: query: create table tst1(key STRING, cnt INT)
  4. POSTHOOK: type: CREATETABLE
  5. POSTHOOK: Output: default@tst1
  6. PREHOOK: query: INSERT OVERWRITE TABLE tst1
  7. SELECT a.key, count(1) FROM src a group by a.key
  8. PREHOOK: type: QUERY
  9. PREHOOK: Input: default@src
  10. PREHOOK: Output: default@tst1
  11. POSTHOOK: query: INSERT OVERWRITE TABLE tst1
  12. SELECT a.key, count(1) FROM src a group by a.key
  13. POSTHOOK: type: QUERY
  14. POSTHOOK: Input: default@src
  15. POSTHOOK: Output: default@tst1
  16. POSTHOOK: Lineage: tst1.cnt EXPRESSION [(src)a.null, ]
  17. POSTHOOK: Lineage: tst1.key SIMPLE [(src)a.FieldSchema(name:key, type:string, comment:default), ]
  18. PREHOOK: query: explain
  19. SELECT sum(a.cnt) FROM tst1 a JOIN tst1 b ON a.key = b.key
  20. PREHOOK: type: QUERY
  21. POSTHOOK: query: explain
  22. SELECT sum(a.cnt) FROM tst1 a JOIN tst1 b ON a.key = b.key
  23. POSTHOOK: type: QUERY
  24. POSTHOOK: Lineage: tst1.cnt EXPRESSION [(src)a.null, ]
  25. POSTHOOK: Lineage: tst1.key SIMPLE [(src)a.FieldSchema(name:key, type:string, comment:default), ]
  26. ABSTRACT SYNTAX TREE:
  27. (TOK_QUERY (TOK_FROM (TOK_JOIN (TOK_TABREF (TOK_TABNAME tst1) a) (TOK_TABREF (TOK_TABNAME tst1) b) (= (. (TOK_TABLE_OR_COL a) key) (. (TOK_TABLE_OR_COL b) key)))) (TOK_INSERT (TOK_DESTINATION (TOK_DIR TOK_TMP_FILE)) (TOK_SELECT (TOK_SELEXPR (TOK_FUNCTION sum (. (TOK_TABLE_OR_COL a) cnt))))))
  28. STAGE DEPENDENCIES:
  29. Stage-6 is a root stage , consists of Stage-7, Stage-8, Stage-1
  30. Stage-7 has a backup stage: Stage-1
  31. Stage-4 depends on stages: Stage-7
  32. Stage-2 depends on stages: Stage-1, Stage-4, Stage-5
  33. Stage-8 has a backup stage: Stage-1
  34. Stage-5 depends on stages: Stage-8
  35. Stage-1
  36. Stage-0 is a root stage
  37. STAGE PLANS:
  38. Stage: Stage-6
  39. Conditional Operator
  40. Stage: Stage-7
  41. Map Reduce Local Work
  42. Alias -> Map Local Tables:
  43. b
  44. Fetch Operator
  45. limit: -1
  46. Alias -> Map Local Operator Tree:
  47. b
  48. TableScan
  49. alias: b
  50. HashTable Sink Operator
  51. condition expressions:
  52. 0 {cnt}
  53. 1
  54. handleSkewJoin: false
  55. keys:
  56. 0 [Column[key]]
  57. 1 [Column[key]]
  58. Position of Big Table: 0
  59. Stage: Stage-4
  60. Map Reduce
  61. Alias -> Map Operator Tree:
  62. a
  63. TableScan
  64. alias: a
  65. Map Join Operator
  66. condition map:
  67. Inner Join 0 to 1
  68. condition expressions:
  69. 0 {cnt}
  70. 1
  71. handleSkewJoin: false
  72. keys:
  73. 0 [Column[key]]
  74. 1 [Column[key]]
  75. outputColumnNames: _col1
  76. Position of Big Table: 0
  77. Select Operator
  78. expressions:
  79. expr: _col1
  80. type: int
  81. outputColumnNames: _col1
  82. Group By Operator
  83. aggregations:
  84. expr: sum(_col1)
  85. bucketGroup: false
  86. mode: hash
  87. outputColumnNames: _col0
  88. File Output Operator
  89. compressed: false
  90. GlobalTableId: 0
  91. table:
  92. input format: org.apache.hadoop.mapred.SequenceFileInputFormat
  93. output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat
  94. Local Work:
  95. Map Reduce Local Work
  96. Stage: Stage-2
  97. Map Reduce
  98. Alias -> Map Operator Tree:
  99. file:/tmp/sdong/hive_2011-02-10_01-16-51_787_1548590887218755701/-mr-10002
  100. Reduce Output Operator
  101. sort order:
  102. tag: -1
  103. value expressions:
  104. expr: _col0
  105. type: bigint
  106. Reduce Operator Tree:
  107. Group By Operator
  108. aggregations:
  109. expr: sum(VALUE._col0)
  110. bucketGroup: false
  111. mode: mergepartial
  112. outputColumnNames: _col0
  113. Select Operator
  114. expressions:
  115. expr: _col0
  116. type: bigint
  117. outputColumnNames: _col0
  118. File Output Operator
  119. compressed: false
  120. GlobalTableId: 0
  121. table:
  122. input format: org.apache.hadoop.mapred.TextInputFormat
  123. output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
  124. Stage: Stage-8
  125. Map Reduce Local Work
  126. Alias -> Map Local Tables:
  127. a
  128. Fetch Operator
  129. limit: -1
  130. Alias -> Map Local Operator Tree:
  131. a
  132. TableScan
  133. alias: a
  134. HashTable Sink Operator
  135. condition expressions:
  136. 0 {cnt}
  137. 1
  138. handleSkewJoin: false
  139. keys:
  140. 0 [Column[key]]
  141. 1 [Column[key]]
  142. Position of Big Table: 1
  143. Stage: Stage-5
  144. Map Reduce
  145. Alias -> Map Operator Tree:
  146. b
  147. TableScan
  148. alias: b
  149. Map Join Operator
  150. condition map:
  151. Inner Join 0 to 1
  152. condition expressions:
  153. 0 {cnt}
  154. 1
  155. handleSkewJoin: false
  156. keys:
  157. 0 [Column[key]]
  158. 1 [Column[key]]
  159. outputColumnNames: _col1
  160. Position of Big Table: 1
  161. Select Operator
  162. expressions:
  163. expr: _col1
  164. type: int
  165. outputColumnNames: _col1
  166. Group By Operator
  167. aggregations:
  168. expr: sum(_col1)
  169. bucketGroup: false
  170. mode: hash
  171. outputColumnNames: _col0
  172. File Output Operator
  173. compressed: false
  174. GlobalTableId: 0
  175. table:
  176. input format: org.apache.hadoop.mapred.SequenceFileInputFormat
  177. output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat
  178. Local Work:
  179. Map Reduce Local Work
  180. Stage: Stage-1
  181. Map Reduce
  182. Alias -> Map Operator Tree:
  183. a
  184. TableScan
  185. alias: a
  186. Reduce Output Operator
  187. key expressions:
  188. expr: key
  189. type: string
  190. sort order: +
  191. Map-reduce partition columns:
  192. expr: key
  193. type: string
  194. tag: 0
  195. value expressions:
  196. expr: cnt
  197. type: int
  198. b
  199. TableScan
  200. alias: b
  201. Reduce Output Operator
  202. key expressions:
  203. expr: key
  204. type: string
  205. sort order: +
  206. Map-reduce partition columns:
  207. expr: key
  208. type: string
  209. tag: 1
  210. Reduce Operator Tree:
  211. Join Operator
  212. condition map:
  213. Inner Join 0 to 1
  214. condition expressions:
  215. 0 {VALUE._col1}
  216. 1
  217. handleSkewJoin: false
  218. outputColumnNames: _col1
  219. Select Operator
  220. expressions:
  221. expr: _col1
  222. type: int
  223. outputColumnNames: _col1
  224. Group By Operator
  225. aggregations:
  226. expr: sum(_col1)
  227. bucketGroup: false
  228. mode: hash
  229. outputColumnNames: _col0
  230. File Output Operator
  231. compressed: false
  232. GlobalTableId: 0
  233. table:
  234. input format: org.apache.hadoop.mapred.SequenceFileInputFormat
  235. output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat
  236. Stage: Stage-0
  237. Fetch Operator
  238. limit: -1
  239. PREHOOK: query: SELECT sum(a.cnt) FROM tst1 a JOIN tst1 b ON a.key = b.key
  240. PREHOOK: type: QUERY
  241. PREHOOK: Input: default@tst1
  242. PREHOOK: Output: file:/tmp/sdong/hive_2011-02-10_01-16-51_997_3779127301007370770/-mr-10000
  243. POSTHOOK: query: SELECT sum(a.cnt) FROM tst1 a JOIN tst1 b ON a.key = b.key
  244. POSTHOOK: type: QUERY
  245. POSTHOOK: Input: default@tst1
  246. POSTHOOK: Output: file:/tmp/sdong/hive_2011-02-10_01-16-51_997_3779127301007370770/-mr-10000
  247. POSTHOOK: Lineage: tst1.cnt EXPRESSION [(src)a.null, ]
  248. POSTHOOK: Lineage: tst1.key SIMPLE [(src)a.FieldSchema(name:key, type:string, comment:default), ]
  249. 500