PageRenderTime 102ms CodeModel.GetById 15ms RepoModel.GetById 1ms app.codeStats 0ms

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

#
text | 297 lines | 285 code | 12 blank | 0 comment | 0 complexity | 30d2440f53c332cf5f7af0be6ebb9541 MD5 | raw file
Possible License(s): Apache-2.0, BSD-3-Clause, JSON, CPL-1.0
  1. PREHOOK: query: CREATE TABLE dest_j1(key STRING, cnt1 INT, cnt2 INT)
  2. PREHOOK: type: CREATETABLE
  3. POSTHOOK: query: CREATE TABLE dest_j1(key STRING, cnt1 INT, cnt2 INT)
  4. POSTHOOK: type: CREATETABLE
  5. POSTHOOK: Output: default@dest_j1
  6. PREHOOK: query: EXPLAIN
  7. INSERT OVERWRITE TABLE dest_j1
  8. SELECT /*+ MAPJOIN(subq1) */ subq1.key, subq1.cnt, subq2.cnt
  9. FROM (select x.key, count(1) as cnt from src1 x group by x.key) subq1 JOIN
  10. (select y.key, count(1) as cnt from src y group by y.key) subq2 ON (subq1.key = subq2.key)
  11. PREHOOK: type: QUERY
  12. POSTHOOK: query: EXPLAIN
  13. INSERT OVERWRITE TABLE dest_j1
  14. SELECT /*+ MAPJOIN(subq1) */ subq1.key, subq1.cnt, subq2.cnt
  15. FROM (select x.key, count(1) as cnt from src1 x group by x.key) subq1 JOIN
  16. (select y.key, count(1) as cnt from src y group by y.key) subq2 ON (subq1.key = subq2.key)
  17. POSTHOOK: type: QUERY
  18. ABSTRACT SYNTAX TREE:
  19. (TOK_QUERY (TOK_FROM (TOK_JOIN (TOK_SUBQUERY (TOK_QUERY (TOK_FROM (TOK_TABREF (TOK_TABNAME src1) x)) (TOK_INSERT (TOK_DESTINATION (TOK_DIR TOK_TMP_FILE)) (TOK_SELECT (TOK_SELEXPR (. (TOK_TABLE_OR_COL x) key)) (TOK_SELEXPR (TOK_FUNCTION count 1) cnt)) (TOK_GROUPBY (. (TOK_TABLE_OR_COL x) key)))) subq1) (TOK_SUBQUERY (TOK_QUERY (TOK_FROM (TOK_TABREF (TOK_TABNAME src) y)) (TOK_INSERT (TOK_DESTINATION (TOK_DIR TOK_TMP_FILE)) (TOK_SELECT (TOK_SELEXPR (. (TOK_TABLE_OR_COL y) key)) (TOK_SELEXPR (TOK_FUNCTION count 1) cnt)) (TOK_GROUPBY (. (TOK_TABLE_OR_COL y) key)))) subq2) (= (. (TOK_TABLE_OR_COL subq1) key) (. (TOK_TABLE_OR_COL subq2) key)))) (TOK_INSERT (TOK_DESTINATION (TOK_TAB (TOK_TABNAME dest_j1))) (TOK_SELECT (TOK_HINTLIST (TOK_HINT TOK_MAPJOIN (TOK_HINTARGLIST subq1))) (TOK_SELEXPR (. (TOK_TABLE_OR_COL subq1) key)) (TOK_SELEXPR (. (TOK_TABLE_OR_COL subq1) cnt)) (TOK_SELEXPR (. (TOK_TABLE_OR_COL subq2) cnt)))))
  20. STAGE DEPENDENCIES:
  21. Stage-1 is a root stage
  22. Stage-9 depends on stages: Stage-1, Stage-7
  23. Stage-2 depends on stages: Stage-9
  24. Stage-6 depends on stages: Stage-2 , consists of Stage-5, Stage-4
  25. Stage-5
  26. Stage-0 depends on stages: Stage-5, Stage-4
  27. Stage-3 depends on stages: Stage-0
  28. Stage-4
  29. Stage-7 is a root stage
  30. STAGE PLANS:
  31. Stage: Stage-1
  32. Map Reduce
  33. Alias -> Map Operator Tree:
  34. subq2:y
  35. TableScan
  36. alias: y
  37. Select Operator
  38. expressions:
  39. expr: key
  40. type: string
  41. outputColumnNames: key
  42. Group By Operator
  43. aggregations:
  44. expr: count(1)
  45. bucketGroup: false
  46. keys:
  47. expr: key
  48. type: string
  49. mode: hash
  50. outputColumnNames: _col0, _col1
  51. Reduce Output Operator
  52. key expressions:
  53. expr: _col0
  54. type: string
  55. sort order: +
  56. Map-reduce partition columns:
  57. expr: _col0
  58. type: string
  59. tag: -1
  60. value expressions:
  61. expr: _col1
  62. type: bigint
  63. Reduce Operator Tree:
  64. Group By Operator
  65. aggregations:
  66. expr: count(VALUE._col0)
  67. bucketGroup: false
  68. keys:
  69. expr: KEY._col0
  70. type: string
  71. mode: mergepartial
  72. outputColumnNames: _col0, _col1
  73. Select Operator
  74. expressions:
  75. expr: _col0
  76. type: string
  77. expr: _col1
  78. type: bigint
  79. outputColumnNames: _col0, _col1
  80. File Output Operator
  81. compressed: false
  82. GlobalTableId: 0
  83. table:
  84. input format: org.apache.hadoop.mapred.SequenceFileInputFormat
  85. output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat
  86. Stage: Stage-9
  87. Map Reduce Local Work
  88. Alias -> Map Local Tables:
  89. file:/tmp/sdong/hive_2011-02-10_16-04-29_506_6626668492500795/-mr-10004
  90. Fetch Operator
  91. limit: -1
  92. Alias -> Map Local Operator Tree:
  93. file:/tmp/sdong/hive_2011-02-10_16-04-29_506_6626668492500795/-mr-10004
  94. HashTable Sink Operator
  95. condition expressions:
  96. 0 {_col0} {_col1}
  97. 1 {_col1}
  98. handleSkewJoin: false
  99. keys:
  100. 0 [Column[_col0]]
  101. 1 [Column[_col0]]
  102. Position of Big Table: 1
  103. Stage: Stage-2
  104. Map Reduce
  105. Alias -> Map Operator Tree:
  106. file:/tmp/sdong/hive_2011-02-10_16-04-29_506_6626668492500795/-mr-10002
  107. Map Join Operator
  108. condition map:
  109. Inner Join 0 to 1
  110. condition expressions:
  111. 0 {_col0} {_col1}
  112. 1 {_col1}
  113. handleSkewJoin: false
  114. keys:
  115. 0 [Column[_col0]]
  116. 1 [Column[_col0]]
  117. outputColumnNames: _col0, _col1, _col3
  118. Position of Big Table: 1
  119. Select Operator
  120. expressions:
  121. expr: _col0
  122. type: string
  123. expr: _col1
  124. type: bigint
  125. expr: _col3
  126. type: bigint
  127. outputColumnNames: _col0, _col1, _col3
  128. Select Operator
  129. expressions:
  130. expr: _col0
  131. type: string
  132. expr: _col1
  133. type: bigint
  134. expr: _col3
  135. type: bigint
  136. outputColumnNames: _col0, _col1, _col2
  137. Select Operator
  138. expressions:
  139. expr: _col0
  140. type: string
  141. expr: UDFToInteger(_col1)
  142. type: int
  143. expr: UDFToInteger(_col2)
  144. type: int
  145. outputColumnNames: _col0, _col1, _col2
  146. File Output Operator
  147. compressed: false
  148. GlobalTableId: 1
  149. table:
  150. input format: org.apache.hadoop.mapred.TextInputFormat
  151. output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
  152. serde: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe
  153. name: default.dest_j1
  154. Local Work:
  155. Map Reduce Local Work
  156. Stage: Stage-6
  157. Conditional Operator
  158. Stage: Stage-5
  159. Move Operator
  160. files:
  161. hdfs directory: true
  162. destination: pfile:/data/users/sdong/www/open-source-hive1/build/ql/scratchdir/hive_2011-02-10_16-04-29_506_6626668492500795/-ext-10000
  163. Stage: Stage-0
  164. Move Operator
  165. tables:
  166. replace: true
  167. table:
  168. input format: org.apache.hadoop.mapred.TextInputFormat
  169. output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
  170. serde: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe
  171. name: default.dest_j1
  172. Stage: Stage-3
  173. Stats-Aggr Operator
  174. Stage: Stage-4
  175. Map Reduce
  176. Alias -> Map Operator Tree:
  177. pfile:/data/users/sdong/www/open-source-hive1/build/ql/scratchdir/hive_2011-02-10_16-04-29_506_6626668492500795/-ext-10003
  178. File Output Operator
  179. compressed: false
  180. GlobalTableId: 0
  181. table:
  182. input format: org.apache.hadoop.mapred.TextInputFormat
  183. output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
  184. serde: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe
  185. name: default.dest_j1
  186. Stage: Stage-7
  187. Map Reduce
  188. Alias -> Map Operator Tree:
  189. subq1:x
  190. TableScan
  191. alias: x
  192. Select Operator
  193. expressions:
  194. expr: key
  195. type: string
  196. outputColumnNames: key
  197. Group By Operator
  198. aggregations:
  199. expr: count(1)
  200. bucketGroup: false
  201. keys:
  202. expr: key
  203. type: string
  204. mode: hash
  205. outputColumnNames: _col0, _col1
  206. Reduce Output Operator
  207. key expressions:
  208. expr: _col0
  209. type: string
  210. sort order: +
  211. Map-reduce partition columns:
  212. expr: _col0
  213. type: string
  214. tag: -1
  215. value expressions:
  216. expr: _col1
  217. type: bigint
  218. Reduce Operator Tree:
  219. Group By Operator
  220. aggregations:
  221. expr: count(VALUE._col0)
  222. bucketGroup: false
  223. keys:
  224. expr: KEY._col0
  225. type: string
  226. mode: mergepartial
  227. outputColumnNames: _col0, _col1
  228. Select Operator
  229. expressions:
  230. expr: _col0
  231. type: string
  232. expr: _col1
  233. type: bigint
  234. outputColumnNames: _col0, _col1
  235. File Output Operator
  236. compressed: false
  237. GlobalTableId: 0
  238. table:
  239. input format: org.apache.hadoop.mapred.SequenceFileInputFormat
  240. output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat
  241. PREHOOK: query: INSERT OVERWRITE TABLE dest_j1
  242. SELECT /*+ MAPJOIN(subq1) */ subq1.key, subq1.cnt, subq2.cnt
  243. FROM (select x.key, count(1) as cnt from src1 x group by x.key) subq1 JOIN
  244. (select y.key, count(1) as cnt from src y group by y.key) subq2 ON (subq1.key = subq2.key)
  245. PREHOOK: type: QUERY
  246. PREHOOK: Input: default@src
  247. PREHOOK: Input: default@src1
  248. PREHOOK: Output: default@dest_j1
  249. POSTHOOK: query: INSERT OVERWRITE TABLE dest_j1
  250. SELECT /*+ MAPJOIN(subq1) */ subq1.key, subq1.cnt, subq2.cnt
  251. FROM (select x.key, count(1) as cnt from src1 x group by x.key) subq1 JOIN
  252. (select y.key, count(1) as cnt from src y group by y.key) subq2 ON (subq1.key = subq2.key)
  253. POSTHOOK: type: QUERY
  254. POSTHOOK: Input: default@src
  255. POSTHOOK: Input: default@src1
  256. POSTHOOK: Output: default@dest_j1
  257. POSTHOOK: Lineage: dest_j1.cnt1 EXPRESSION [(src1)x.null, ]
  258. POSTHOOK: Lineage: dest_j1.cnt2 EXPRESSION [(src)y.null, ]
  259. POSTHOOK: Lineage: dest_j1.key SIMPLE [(src1)x.FieldSchema(name:key, type:string, comment:default), ]
  260. PREHOOK: query: select * from dest_j1 x order by x.key
  261. PREHOOK: type: QUERY
  262. PREHOOK: Input: default@dest_j1
  263. PREHOOK: Output: file:/tmp/sdong/hive_2011-02-10_16-04-43_398_9188586114177273945/-mr-10000
  264. POSTHOOK: query: select * from dest_j1 x order by x.key
  265. POSTHOOK: type: QUERY
  266. POSTHOOK: Input: default@dest_j1
  267. POSTHOOK: Output: file:/tmp/sdong/hive_2011-02-10_16-04-43_398_9188586114177273945/-mr-10000
  268. POSTHOOK: Lineage: dest_j1.cnt1 EXPRESSION [(src1)x.null, ]
  269. POSTHOOK: Lineage: dest_j1.cnt2 EXPRESSION [(src)y.null, ]
  270. POSTHOOK: Lineage: dest_j1.key SIMPLE [(src1)x.FieldSchema(name:key, type:string, comment:default), ]
  271. 128 1 3
  272. 146 1 2
  273. 150 1 1
  274. 213 1 2
  275. 224 1 2
  276. 238 1 2
  277. 255 1 2
  278. 273 1 3
  279. 278 1 2
  280. 311 1 3
  281. 369 1 3
  282. 401 1 5
  283. 406 1 4
  284. 66 1 1
  285. 98 1 2