PageRenderTime 59ms CodeModel.GetById 14ms RepoModel.GetById 0ms app.codeStats 1ms

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

#
text | 2802 lines | 2701 code | 101 blank | 0 comment | 0 complexity | 0d1b451dae175af7c0a6173d40c5f9a2 MD5 | raw file
Possible License(s): Apache-2.0, BSD-3-Clause, JSON, CPL-1.0
  1. PREHOOK: query: explain
  2. FROM
  3. (SELECT src.* FROM src sort by key) x
  4. JOIN
  5. (SELECT src.* FROM src sort by value) Y
  6. ON (x.key = Y.key)
  7. select sum(hash(Y.key,Y.value))
  8. PREHOOK: type: QUERY
  9. POSTHOOK: query: explain
  10. FROM
  11. (SELECT src.* FROM src sort by key) x
  12. JOIN
  13. (SELECT src.* FROM src sort by value) Y
  14. ON (x.key = Y.key)
  15. select sum(hash(Y.key,Y.value))
  16. POSTHOOK: type: QUERY
  17. ABSTRACT SYNTAX TREE:
  18. (TOK_QUERY (TOK_FROM (TOK_JOIN (TOK_SUBQUERY (TOK_QUERY (TOK_FROM (TOK_TABREF (TOK_TABNAME src))) (TOK_INSERT (TOK_DESTINATION (TOK_DIR TOK_TMP_FILE)) (TOK_SELECT (TOK_SELEXPR (TOK_ALLCOLREF (TOK_TABNAME src)))) (TOK_SORTBY (TOK_TABSORTCOLNAMEASC (TOK_TABLE_OR_COL key))))) x) (TOK_SUBQUERY (TOK_QUERY (TOK_FROM (TOK_TABREF (TOK_TABNAME src))) (TOK_INSERT (TOK_DESTINATION (TOK_DIR TOK_TMP_FILE)) (TOK_SELECT (TOK_SELEXPR (TOK_ALLCOLREF (TOK_TABNAME src)))) (TOK_SORTBY (TOK_TABSORTCOLNAMEASC (TOK_TABLE_OR_COL value))))) Y) (= (. (TOK_TABLE_OR_COL x) key) (. (TOK_TABLE_OR_COL Y) key)))) (TOK_INSERT (TOK_DESTINATION (TOK_DIR TOK_TMP_FILE)) (TOK_SELECT (TOK_SELEXPR (TOK_FUNCTION sum (TOK_FUNCTION hash (. (TOK_TABLE_OR_COL Y) key) (. (TOK_TABLE_OR_COL Y) value)))))))
  19. STAGE DEPENDENCIES:
  20. Stage-1 is a root stage
  21. Stage-7 depends on stages: Stage-1, Stage-4 , consists of Stage-8, Stage-9, Stage-2
  22. Stage-8 has a backup stage: Stage-2
  23. Stage-5 depends on stages: Stage-8
  24. Stage-3 depends on stages: Stage-2, Stage-5, Stage-6
  25. Stage-9 has a backup stage: Stage-2
  26. Stage-6 depends on stages: Stage-9
  27. Stage-2
  28. Stage-4 is a root stage
  29. Stage-0 is a root stage
  30. STAGE PLANS:
  31. Stage: Stage-1
  32. Map Reduce
  33. Alias -> Map Operator Tree:
  34. x:src
  35. TableScan
  36. alias: src
  37. Select Operator
  38. expressions:
  39. expr: key
  40. type: string
  41. expr: value
  42. type: string
  43. outputColumnNames: _col0, _col1
  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. Reduce Operator Tree:
  56. Extract
  57. File Output Operator
  58. compressed: false
  59. GlobalTableId: 0
  60. table:
  61. input format: org.apache.hadoop.mapred.SequenceFileInputFormat
  62. output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat
  63. Stage: Stage-7
  64. Conditional Operator
  65. Stage: Stage-8
  66. Map Reduce Local Work
  67. Alias -> Map Local Tables:
  68. $INTNAME1
  69. Fetch Operator
  70. limit: -1
  71. Alias -> Map Local Operator Tree:
  72. $INTNAME1
  73. HashTable Sink Operator
  74. condition expressions:
  75. 0
  76. 1 {_col0} {_col1}
  77. handleSkewJoin: false
  78. keys:
  79. 0 [Column[_col0]]
  80. 1 [Column[_col0]]
  81. Position of Big Table: 0
  82. Stage: Stage-5
  83. Map Reduce
  84. Alias -> Map Operator Tree:
  85. $INTNAME
  86. Map Join Operator
  87. condition map:
  88. Inner Join 0 to 1
  89. condition expressions:
  90. 0
  91. 1 {_col0} {_col1}
  92. handleSkewJoin: false
  93. keys:
  94. 0 [Column[_col0]]
  95. 1 [Column[_col0]]
  96. outputColumnNames: _col2, _col3
  97. Position of Big Table: 0
  98. Select Operator
  99. expressions:
  100. expr: _col2
  101. type: string
  102. expr: _col3
  103. type: string
  104. outputColumnNames: _col2, _col3
  105. Group By Operator
  106. aggregations:
  107. expr: sum(hash(_col2,_col3))
  108. bucketGroup: false
  109. mode: hash
  110. outputColumnNames: _col0
  111. File Output Operator
  112. compressed: false
  113. GlobalTableId: 0
  114. table:
  115. input format: org.apache.hadoop.mapred.SequenceFileInputFormat
  116. output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat
  117. Local Work:
  118. Map Reduce Local Work
  119. Stage: Stage-3
  120. Map Reduce
  121. Alias -> Map Operator Tree:
  122. file:/var/folders/6g/6grtCwPMEf4sqHUPpy6xQG9ByHg/-Tmp-/heyongqiang/hive_2011-04-07_01-29-33_521_1049482282230510027/-mr-10003
  123. Reduce Output Operator
  124. sort order:
  125. tag: -1
  126. value expressions:
  127. expr: _col0
  128. type: bigint
  129. Reduce Operator Tree:
  130. Group By Operator
  131. aggregations:
  132. expr: sum(VALUE._col0)
  133. bucketGroup: false
  134. mode: mergepartial
  135. outputColumnNames: _col0
  136. Select Operator
  137. expressions:
  138. expr: _col0
  139. type: bigint
  140. outputColumnNames: _col0
  141. File Output Operator
  142. compressed: false
  143. GlobalTableId: 0
  144. table:
  145. input format: org.apache.hadoop.mapred.TextInputFormat
  146. output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
  147. Stage: Stage-9
  148. Map Reduce Local Work
  149. Alias -> Map Local Tables:
  150. $INTNAME
  151. Fetch Operator
  152. limit: -1
  153. Alias -> Map Local Operator Tree:
  154. $INTNAME
  155. HashTable Sink Operator
  156. condition expressions:
  157. 0
  158. 1 {_col0} {_col1}
  159. handleSkewJoin: false
  160. keys:
  161. 0 [Column[_col0]]
  162. 1 [Column[_col0]]
  163. Position of Big Table: 1
  164. Stage: Stage-6
  165. Map Reduce
  166. Alias -> Map Operator Tree:
  167. $INTNAME1
  168. Map Join Operator
  169. condition map:
  170. Inner Join 0 to 1
  171. condition expressions:
  172. 0
  173. 1 {_col0} {_col1}
  174. handleSkewJoin: false
  175. keys:
  176. 0 [Column[_col0]]
  177. 1 [Column[_col0]]
  178. outputColumnNames: _col2, _col3
  179. Position of Big Table: 1
  180. Select Operator
  181. expressions:
  182. expr: _col2
  183. type: string
  184. expr: _col3
  185. type: string
  186. outputColumnNames: _col2, _col3
  187. Group By Operator
  188. aggregations:
  189. expr: sum(hash(_col2,_col3))
  190. bucketGroup: false
  191. mode: hash
  192. outputColumnNames: _col0
  193. File Output Operator
  194. compressed: false
  195. GlobalTableId: 0
  196. table:
  197. input format: org.apache.hadoop.mapred.SequenceFileInputFormat
  198. output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat
  199. Local Work:
  200. Map Reduce Local Work
  201. Stage: Stage-2
  202. Map Reduce
  203. Alias -> Map Operator Tree:
  204. $INTNAME
  205. Reduce Output Operator
  206. key expressions:
  207. expr: _col0
  208. type: string
  209. sort order: +
  210. Map-reduce partition columns:
  211. expr: _col0
  212. type: string
  213. tag: 0
  214. $INTNAME1
  215. Reduce Output Operator
  216. key expressions:
  217. expr: _col0
  218. type: string
  219. sort order: +
  220. Map-reduce partition columns:
  221. expr: _col0
  222. type: string
  223. tag: 1
  224. value expressions:
  225. expr: _col0
  226. type: string
  227. expr: _col1
  228. type: string
  229. Reduce Operator Tree:
  230. Join Operator
  231. condition map:
  232. Inner Join 0 to 1
  233. condition expressions:
  234. 0
  235. 1 {VALUE._col0} {VALUE._col1}
  236. handleSkewJoin: false
  237. outputColumnNames: _col2, _col3
  238. Select Operator
  239. expressions:
  240. expr: _col2
  241. type: string
  242. expr: _col3
  243. type: string
  244. outputColumnNames: _col2, _col3
  245. Group By Operator
  246. aggregations:
  247. expr: sum(hash(_col2,_col3))
  248. bucketGroup: false
  249. mode: hash
  250. outputColumnNames: _col0
  251. File Output Operator
  252. compressed: false
  253. GlobalTableId: 0
  254. table:
  255. input format: org.apache.hadoop.mapred.SequenceFileInputFormat
  256. output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat
  257. Stage: Stage-4
  258. Map Reduce
  259. Alias -> Map Operator Tree:
  260. y:src
  261. TableScan
  262. alias: src
  263. Select Operator
  264. expressions:
  265. expr: key
  266. type: string
  267. expr: value
  268. type: string
  269. outputColumnNames: _col0, _col1
  270. Reduce Output Operator
  271. key expressions:
  272. expr: _col1
  273. type: string
  274. sort order: +
  275. tag: -1
  276. value expressions:
  277. expr: _col0
  278. type: string
  279. expr: _col1
  280. type: string
  281. Reduce Operator Tree:
  282. Extract
  283. File Output Operator
  284. compressed: false
  285. GlobalTableId: 0
  286. table:
  287. input format: org.apache.hadoop.mapred.SequenceFileInputFormat
  288. output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat
  289. Stage: Stage-0
  290. Fetch Operator
  291. limit: -1
  292. PREHOOK: query: FROM
  293. (SELECT src.* FROM src sort by key) x
  294. JOIN
  295. (SELECT src.* FROM src sort by value) Y
  296. ON (x.key = Y.key)
  297. select sum(hash(Y.key,Y.value))
  298. PREHOOK: type: QUERY
  299. PREHOOK: Input: default@src
  300. PREHOOK: Output: file:/var/folders/6g/6grtCwPMEf4sqHUPpy6xQG9ByHg/-Tmp-/heyongqiang/hive_2011-04-07_01-29-35_206_4517835727241747847/-mr-10000
  301. POSTHOOK: query: FROM
  302. (SELECT src.* FROM src sort by key) x
  303. JOIN
  304. (SELECT src.* FROM src sort by value) Y
  305. ON (x.key = Y.key)
  306. select sum(hash(Y.key,Y.value))
  307. POSTHOOK: type: QUERY
  308. POSTHOOK: Input: default@src
  309. POSTHOOK: Output: file:/var/folders/6g/6grtCwPMEf4sqHUPpy6xQG9ByHg/-Tmp-/heyongqiang/hive_2011-04-07_01-29-35_206_4517835727241747847/-mr-10000
  310. 103231310608
  311. PREHOOK: query: explain
  312. FROM
  313. (SELECT src.* FROM src sort by key) x
  314. LEFT OUTER JOIN
  315. (SELECT src.* FROM src sort by value) Y
  316. ON (x.key = Y.key)
  317. select sum(hash(Y.key,Y.value))
  318. PREHOOK: type: QUERY
  319. POSTHOOK: query: explain
  320. FROM
  321. (SELECT src.* FROM src sort by key) x
  322. LEFT OUTER JOIN
  323. (SELECT src.* FROM src sort by value) Y
  324. ON (x.key = Y.key)
  325. select sum(hash(Y.key,Y.value))
  326. POSTHOOK: type: QUERY
  327. ABSTRACT SYNTAX TREE:
  328. (TOK_QUERY (TOK_FROM (TOK_LEFTOUTERJOIN (TOK_SUBQUERY (TOK_QUERY (TOK_FROM (TOK_TABREF (TOK_TABNAME src))) (TOK_INSERT (TOK_DESTINATION (TOK_DIR TOK_TMP_FILE)) (TOK_SELECT (TOK_SELEXPR (TOK_ALLCOLREF (TOK_TABNAME src)))) (TOK_SORTBY (TOK_TABSORTCOLNAMEASC (TOK_TABLE_OR_COL key))))) x) (TOK_SUBQUERY (TOK_QUERY (TOK_FROM (TOK_TABREF (TOK_TABNAME src))) (TOK_INSERT (TOK_DESTINATION (TOK_DIR TOK_TMP_FILE)) (TOK_SELECT (TOK_SELEXPR (TOK_ALLCOLREF (TOK_TABNAME src)))) (TOK_SORTBY (TOK_TABSORTCOLNAMEASC (TOK_TABLE_OR_COL value))))) Y) (= (. (TOK_TABLE_OR_COL x) key) (. (TOK_TABLE_OR_COL Y) key)))) (TOK_INSERT (TOK_DESTINATION (TOK_DIR TOK_TMP_FILE)) (TOK_SELECT (TOK_SELEXPR (TOK_FUNCTION sum (TOK_FUNCTION hash (. (TOK_TABLE_OR_COL Y) key) (. (TOK_TABLE_OR_COL Y) value)))))))
  329. STAGE DEPENDENCIES:
  330. Stage-1 is a root stage
  331. Stage-6 depends on stages: Stage-1, Stage-4 , consists of Stage-7, Stage-2
  332. Stage-7 has a backup stage: Stage-2
  333. Stage-5 depends on stages: Stage-7
  334. Stage-3 depends on stages: Stage-2, Stage-5
  335. Stage-2
  336. Stage-4 is a root stage
  337. Stage-0 is a root stage
  338. STAGE PLANS:
  339. Stage: Stage-1
  340. Map Reduce
  341. Alias -> Map Operator Tree:
  342. x:src
  343. TableScan
  344. alias: src
  345. Select Operator
  346. expressions:
  347. expr: key
  348. type: string
  349. expr: value
  350. type: string
  351. outputColumnNames: _col0, _col1
  352. Reduce Output Operator
  353. key expressions:
  354. expr: _col0
  355. type: string
  356. sort order: +
  357. tag: -1
  358. value expressions:
  359. expr: _col0
  360. type: string
  361. expr: _col1
  362. type: string
  363. Reduce Operator Tree:
  364. Extract
  365. File Output Operator
  366. compressed: false
  367. GlobalTableId: 0
  368. table:
  369. input format: org.apache.hadoop.mapred.SequenceFileInputFormat
  370. output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat
  371. Stage: Stage-6
  372. Conditional Operator
  373. Stage: Stage-7
  374. Map Reduce Local Work
  375. Alias -> Map Local Tables:
  376. $INTNAME1
  377. Fetch Operator
  378. limit: -1
  379. Alias -> Map Local Operator Tree:
  380. $INTNAME1
  381. HashTable Sink Operator
  382. condition expressions:
  383. 0
  384. 1 {_col0} {_col1}
  385. handleSkewJoin: false
  386. keys:
  387. 0 [Column[_col0]]
  388. 1 [Column[_col0]]
  389. Position of Big Table: 0
  390. Stage: Stage-5
  391. Map Reduce
  392. Alias -> Map Operator Tree:
  393. $INTNAME
  394. Map Join Operator
  395. condition map:
  396. Left Outer Join0 to 1
  397. condition expressions:
  398. 0
  399. 1 {_col0} {_col1}
  400. handleSkewJoin: false
  401. keys:
  402. 0 [Column[_col0]]
  403. 1 [Column[_col0]]
  404. outputColumnNames: _col2, _col3
  405. Position of Big Table: 0
  406. Select Operator
  407. expressions:
  408. expr: _col2
  409. type: string
  410. expr: _col3
  411. type: string
  412. outputColumnNames: _col2, _col3
  413. Group By Operator
  414. aggregations:
  415. expr: sum(hash(_col2,_col3))
  416. bucketGroup: false
  417. mode: hash
  418. outputColumnNames: _col0
  419. File Output Operator
  420. compressed: false
  421. GlobalTableId: 0
  422. table:
  423. input format: org.apache.hadoop.mapred.SequenceFileInputFormat
  424. output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat
  425. Local Work:
  426. Map Reduce Local Work
  427. Stage: Stage-3
  428. Map Reduce
  429. Alias -> Map Operator Tree:
  430. file:/var/folders/6g/6grtCwPMEf4sqHUPpy6xQG9ByHg/-Tmp-/heyongqiang/hive_2011-04-07_01-30-12_697_8776019509777494227/-mr-10003
  431. Reduce Output Operator
  432. sort order:
  433. tag: -1
  434. value expressions:
  435. expr: _col0
  436. type: bigint
  437. Reduce Operator Tree:
  438. Group By Operator
  439. aggregations:
  440. expr: sum(VALUE._col0)
  441. bucketGroup: false
  442. mode: mergepartial
  443. outputColumnNames: _col0
  444. Select Operator
  445. expressions:
  446. expr: _col0
  447. type: bigint
  448. outputColumnNames: _col0
  449. File Output Operator
  450. compressed: false
  451. GlobalTableId: 0
  452. table:
  453. input format: org.apache.hadoop.mapred.TextInputFormat
  454. output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
  455. Stage: Stage-2
  456. Map Reduce
  457. Alias -> Map Operator Tree:
  458. $INTNAME
  459. Reduce Output Operator
  460. key expressions:
  461. expr: _col0
  462. type: string
  463. sort order: +
  464. Map-reduce partition columns:
  465. expr: _col0
  466. type: string
  467. tag: 0
  468. $INTNAME1
  469. Reduce Output Operator
  470. key expressions:
  471. expr: _col0
  472. type: string
  473. sort order: +
  474. Map-reduce partition columns:
  475. expr: _col0
  476. type: string
  477. tag: 1
  478. value expressions:
  479. expr: _col0
  480. type: string
  481. expr: _col1
  482. type: string
  483. Reduce Operator Tree:
  484. Join Operator
  485. condition map:
  486. Left Outer Join0 to 1
  487. condition expressions:
  488. 0
  489. 1 {VALUE._col0} {VALUE._col1}
  490. handleSkewJoin: false
  491. outputColumnNames: _col2, _col3
  492. Select Operator
  493. expressions:
  494. expr: _col2
  495. type: string
  496. expr: _col3
  497. type: string
  498. outputColumnNames: _col2, _col3
  499. Group By Operator
  500. aggregations:
  501. expr: sum(hash(_col2,_col3))
  502. bucketGroup: false
  503. mode: hash
  504. outputColumnNames: _col0
  505. File Output Operator
  506. compressed: false
  507. GlobalTableId: 0
  508. table:
  509. input format: org.apache.hadoop.mapred.SequenceFileInputFormat
  510. output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat
  511. Stage: Stage-4
  512. Map Reduce
  513. Alias -> Map Operator Tree:
  514. y:src
  515. TableScan
  516. alias: src
  517. Select Operator
  518. expressions:
  519. expr: key
  520. type: string
  521. expr: value
  522. type: string
  523. outputColumnNames: _col0, _col1
  524. Reduce Output Operator
  525. key expressions:
  526. expr: _col1
  527. type: string
  528. sort order: +
  529. tag: -1
  530. value expressions:
  531. expr: _col0
  532. type: string
  533. expr: _col1
  534. type: string
  535. Reduce Operator Tree:
  536. Extract
  537. File Output Operator
  538. compressed: false
  539. GlobalTableId: 0
  540. table:
  541. input format: org.apache.hadoop.mapred.SequenceFileInputFormat
  542. output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat
  543. Stage: Stage-0
  544. Fetch Operator
  545. limit: -1
  546. PREHOOK: query: FROM
  547. (SELECT src.* FROM src sort by key) x
  548. LEFT OUTER JOIN
  549. (SELECT src.* FROM src sort by value) Y
  550. ON (x.key = Y.key)
  551. select sum(hash(Y.key,Y.value))
  552. PREHOOK: type: QUERY
  553. PREHOOK: Input: default@src
  554. PREHOOK: Output: file:/var/folders/6g/6grtCwPMEf4sqHUPpy6xQG9ByHg/-Tmp-/heyongqiang/hive_2011-04-07_01-30-13_659_8930056926219050163/-mr-10000
  555. POSTHOOK: query: FROM
  556. (SELECT src.* FROM src sort by key) x
  557. LEFT OUTER JOIN
  558. (SELECT src.* FROM src sort by value) Y
  559. ON (x.key = Y.key)
  560. select sum(hash(Y.key,Y.value))
  561. POSTHOOK: type: QUERY
  562. POSTHOOK: Input: default@src
  563. POSTHOOK: Output: file:/var/folders/6g/6grtCwPMEf4sqHUPpy6xQG9ByHg/-Tmp-/heyongqiang/hive_2011-04-07_01-30-13_659_8930056926219050163/-mr-10000
  564. 103231310608
  565. PREHOOK: query: explain
  566. FROM
  567. (SELECT src.* FROM src sort by key) x
  568. RIGHT OUTER JOIN
  569. (SELECT src.* FROM src sort by value) Y
  570. ON (x.key = Y.key)
  571. select sum(hash(Y.key,Y.value))
  572. PREHOOK: type: QUERY
  573. POSTHOOK: query: explain
  574. FROM
  575. (SELECT src.* FROM src sort by key) x
  576. RIGHT OUTER JOIN
  577. (SELECT src.* FROM src sort by value) Y
  578. ON (x.key = Y.key)
  579. select sum(hash(Y.key,Y.value))
  580. POSTHOOK: type: QUERY
  581. ABSTRACT SYNTAX TREE:
  582. (TOK_QUERY (TOK_FROM (TOK_RIGHTOUTERJOIN (TOK_SUBQUERY (TOK_QUERY (TOK_FROM (TOK_TABREF (TOK_TABNAME src))) (TOK_INSERT (TOK_DESTINATION (TOK_DIR TOK_TMP_FILE)) (TOK_SELECT (TOK_SELEXPR (TOK_ALLCOLREF (TOK_TABNAME src)))) (TOK_SORTBY (TOK_TABSORTCOLNAMEASC (TOK_TABLE_OR_COL key))))) x) (TOK_SUBQUERY (TOK_QUERY (TOK_FROM (TOK_TABREF (TOK_TABNAME src))) (TOK_INSERT (TOK_DESTINATION (TOK_DIR TOK_TMP_FILE)) (TOK_SELECT (TOK_SELEXPR (TOK_ALLCOLREF (TOK_TABNAME src)))) (TOK_SORTBY (TOK_TABSORTCOLNAMEASC (TOK_TABLE_OR_COL value))))) Y) (= (. (TOK_TABLE_OR_COL x) key) (. (TOK_TABLE_OR_COL Y) key)))) (TOK_INSERT (TOK_DESTINATION (TOK_DIR TOK_TMP_FILE)) (TOK_SELECT (TOK_SELEXPR (TOK_FUNCTION sum (TOK_FUNCTION hash (. (TOK_TABLE_OR_COL Y) key) (. (TOK_TABLE_OR_COL Y) value)))))))
  583. STAGE DEPENDENCIES:
  584. Stage-1 is a root stage
  585. Stage-6 depends on stages: Stage-1, Stage-4 , consists of Stage-7, Stage-2
  586. Stage-7 has a backup stage: Stage-2
  587. Stage-5 depends on stages: Stage-7
  588. Stage-3 depends on stages: Stage-2, Stage-5
  589. Stage-2
  590. Stage-4 is a root stage
  591. Stage-0 is a root stage
  592. STAGE PLANS:
  593. Stage: Stage-1
  594. Map Reduce
  595. Alias -> Map Operator Tree:
  596. x:src
  597. TableScan
  598. alias: src
  599. Select Operator
  600. expressions:
  601. expr: key
  602. type: string
  603. expr: value
  604. type: string
  605. outputColumnNames: _col0, _col1
  606. Reduce Output Operator
  607. key expressions:
  608. expr: _col0
  609. type: string
  610. sort order: +
  611. tag: -1
  612. value expressions:
  613. expr: _col0
  614. type: string
  615. expr: _col1
  616. type: string
  617. Reduce Operator Tree:
  618. Extract
  619. File Output Operator
  620. compressed: false
  621. GlobalTableId: 0
  622. table:
  623. input format: org.apache.hadoop.mapred.SequenceFileInputFormat
  624. output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat
  625. Stage: Stage-6
  626. Conditional Operator
  627. Stage: Stage-7
  628. Map Reduce Local Work
  629. Alias -> Map Local Tables:
  630. $INTNAME
  631. Fetch Operator
  632. limit: -1
  633. Alias -> Map Local Operator Tree:
  634. $INTNAME
  635. HashTable Sink Operator
  636. condition expressions:
  637. 0
  638. 1 {_col0} {_col1}
  639. handleSkewJoin: false
  640. keys:
  641. 0 [Column[_col0]]
  642. 1 [Column[_col0]]
  643. Position of Big Table: 1
  644. Stage: Stage-5
  645. Map Reduce
  646. Alias -> Map Operator Tree:
  647. $INTNAME1
  648. Map Join Operator
  649. condition map:
  650. Right Outer Join0 to 1
  651. condition expressions:
  652. 0
  653. 1 {_col0} {_col1}
  654. handleSkewJoin: false
  655. keys:
  656. 0 [Column[_col0]]
  657. 1 [Column[_col0]]
  658. outputColumnNames: _col2, _col3
  659. Position of Big Table: 1
  660. Select Operator
  661. expressions:
  662. expr: _col2
  663. type: string
  664. expr: _col3
  665. type: string
  666. outputColumnNames: _col2, _col3
  667. Group By Operator
  668. aggregations:
  669. expr: sum(hash(_col2,_col3))
  670. bucketGroup: false
  671. mode: hash
  672. outputColumnNames: _col0
  673. File Output Operator
  674. compressed: false
  675. GlobalTableId: 0
  676. table:
  677. input format: org.apache.hadoop.mapred.SequenceFileInputFormat
  678. output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat
  679. Local Work:
  680. Map Reduce Local Work
  681. Stage: Stage-3
  682. Map Reduce
  683. Alias -> Map Operator Tree:
  684. file:/var/folders/6g/6grtCwPMEf4sqHUPpy6xQG9ByHg/-Tmp-/heyongqiang/hive_2011-04-07_01-30-45_367_2576785772484562232/-mr-10003
  685. Reduce Output Operator
  686. sort order:
  687. tag: -1
  688. value expressions:
  689. expr: _col0
  690. type: bigint
  691. Reduce Operator Tree:
  692. Group By Operator
  693. aggregations:
  694. expr: sum(VALUE._col0)
  695. bucketGroup: false
  696. mode: mergepartial
  697. outputColumnNames: _col0
  698. Select Operator
  699. expressions:
  700. expr: _col0
  701. type: bigint
  702. outputColumnNames: _col0
  703. File Output Operator
  704. compressed: false
  705. GlobalTableId: 0
  706. table:
  707. input format: org.apache.hadoop.mapred.TextInputFormat
  708. output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
  709. Stage: Stage-2
  710. Map Reduce
  711. Alias -> Map Operator Tree:
  712. $INTNAME
  713. Reduce Output Operator
  714. key expressions:
  715. expr: _col0
  716. type: string
  717. sort order: +
  718. Map-reduce partition columns:
  719. expr: _col0
  720. type: string
  721. tag: 0
  722. $INTNAME1
  723. Reduce Output Operator
  724. key expressions:
  725. expr: _col0
  726. type: string
  727. sort order: +
  728. Map-reduce partition columns:
  729. expr: _col0
  730. type: string
  731. tag: 1
  732. value expressions:
  733. expr: _col0
  734. type: string
  735. expr: _col1
  736. type: string
  737. Reduce Operator Tree:
  738. Join Operator
  739. condition map:
  740. Right Outer Join0 to 1
  741. condition expressions:
  742. 0
  743. 1 {VALUE._col0} {VALUE._col1}
  744. handleSkewJoin: false
  745. outputColumnNames: _col2, _col3
  746. Select Operator
  747. expressions:
  748. expr: _col2
  749. type: string
  750. expr: _col3
  751. type: string
  752. outputColumnNames: _col2, _col3
  753. Group By Operator
  754. aggregations:
  755. expr: sum(hash(_col2,_col3))
  756. bucketGroup: false
  757. mode: hash
  758. outputColumnNames: _col0
  759. File Output Operator
  760. compressed: false
  761. GlobalTableId: 0
  762. table:
  763. input format: org.apache.hadoop.mapred.SequenceFileInputFormat
  764. output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat
  765. Stage: Stage-4
  766. Map Reduce
  767. Alias -> Map Operator Tree:
  768. y:src
  769. TableScan
  770. alias: src
  771. Select Operator
  772. expressions:
  773. expr: key
  774. type: string
  775. expr: value
  776. type: string
  777. outputColumnNames: _col0, _col1
  778. Reduce Output Operator
  779. key expressions:
  780. expr: _col1
  781. type: string
  782. sort order: +
  783. tag: -1
  784. value expressions:
  785. expr: _col0
  786. type: string
  787. expr: _col1
  788. type: string
  789. Reduce Operator Tree:
  790. Extract
  791. File Output Operator
  792. compressed: false
  793. GlobalTableId: 0
  794. table:
  795. input format: org.apache.hadoop.mapred.SequenceFileInputFormat
  796. output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat
  797. Stage: Stage-0
  798. Fetch Operator
  799. limit: -1
  800. PREHOOK: query: FROM
  801. (SELECT src.* FROM src sort by key) x
  802. RIGHT OUTER JOIN
  803. (SELECT src.* FROM src sort by value) Y
  804. ON (x.key = Y.key)
  805. select sum(hash(Y.key,Y.value))
  806. PREHOOK: type: QUERY
  807. PREHOOK: Input: default@src
  808. PREHOOK: Output: file:/var/folders/6g/6grtCwPMEf4sqHUPpy6xQG9ByHg/-Tmp-/heyongqiang/hive_2011-04-07_01-30-45_713_4388632692386585223/-mr-10000
  809. POSTHOOK: query: FROM
  810. (SELECT src.* FROM src sort by key) x
  811. RIGHT OUTER JOIN
  812. (SELECT src.* FROM src sort by value) Y
  813. ON (x.key = Y.key)
  814. select sum(hash(Y.key,Y.value))
  815. POSTHOOK: type: QUERY
  816. POSTHOOK: Input: default@src
  817. POSTHOOK: Output: file:/var/folders/6g/6grtCwPMEf4sqHUPpy6xQG9ByHg/-Tmp-/heyongqiang/hive_2011-04-07_01-30-45_713_4388632692386585223/-mr-10000
  818. 103231310608
  819. PREHOOK: query: explain
  820. FROM
  821. (SELECT src.* FROM src sort by key) x
  822. JOIN
  823. (SELECT src.* FROM src sort by value) Y
  824. ON (x.key = Y.key)
  825. JOIN
  826. (SELECT src.* FROM src sort by value) Z
  827. ON (x.key = Z.key)
  828. select sum(hash(Y.key,Y.value))
  829. PREHOOK: type: QUERY
  830. POSTHOOK: query: explain
  831. FROM
  832. (SELECT src.* FROM src sort by key) x
  833. JOIN
  834. (SELECT src.* FROM src sort by value) Y
  835. ON (x.key = Y.key)
  836. JOIN
  837. (SELECT src.* FROM src sort by value) Z
  838. ON (x.key = Z.key)
  839. select sum(hash(Y.key,Y.value))
  840. POSTHOOK: type: QUERY
  841. ABSTRACT SYNTAX TREE:
  842. (TOK_QUERY (TOK_FROM (TOK_JOIN (TOK_JOIN (TOK_SUBQUERY (TOK_QUERY (TOK_FROM (TOK_TABREF (TOK_TABNAME src))) (TOK_INSERT (TOK_DESTINATION (TOK_DIR TOK_TMP_FILE)) (TOK_SELECT (TOK_SELEXPR (TOK_ALLCOLREF (TOK_TABNAME src)))) (TOK_SORTBY (TOK_TABSORTCOLNAMEASC (TOK_TABLE_OR_COL key))))) x) (TOK_SUBQUERY (TOK_QUERY (TOK_FROM (TOK_TABREF (TOK_TABNAME src))) (TOK_INSERT (TOK_DESTINATION (TOK_DIR TOK_TMP_FILE)) (TOK_SELECT (TOK_SELEXPR (TOK_ALLCOLREF (TOK_TABNAME src)))) (TOK_SORTBY (TOK_TABSORTCOLNAMEASC (TOK_TABLE_OR_COL value))))) Y) (= (. (TOK_TABLE_OR_COL x) key) (. (TOK_TABLE_OR_COL Y) key))) (TOK_SUBQUERY (TOK_QUERY (TOK_FROM (TOK_TABREF (TOK_TABNAME src))) (TOK_INSERT (TOK_DESTINATION (TOK_DIR TOK_TMP_FILE)) (TOK_SELECT (TOK_SELEXPR (TOK_ALLCOLREF (TOK_TABNAME src)))) (TOK_SORTBY (TOK_TABSORTCOLNAMEASC (TOK_TABLE_OR_COL value))))) Z) (= (. (TOK_TABLE_OR_COL x) key) (. (TOK_TABLE_OR_COL Z) key)))) (TOK_INSERT (TOK_DESTINATION (TOK_DIR TOK_TMP_FILE)) (TOK_SELECT (TOK_SELEXPR (TOK_FUNCTION sum (TOK_FUNCTION hash (. (TOK_TABLE_OR_COL Y) key) (. (TOK_TABLE_OR_COL Y) value)))))))
  843. STAGE DEPENDENCIES:
  844. Stage-1 is a root stage
  845. Stage-9 depends on stages: Stage-1, Stage-4, Stage-5 , consists of Stage-10, Stage-11, Stage-12, Stage-2
  846. Stage-10 has a backup stage: Stage-2
  847. Stage-6 depends on stages: Stage-10
  848. Stage-3 depends on stages: Stage-2, Stage-6, Stage-7, Stage-8
  849. Stage-11 has a backup stage: Stage-2
  850. Stage-7 depends on stages: Stage-11
  851. Stage-12 has a backup stage: Stage-2
  852. Stage-8 depends on stages: Stage-12
  853. Stage-2
  854. Stage-4 is a root stage
  855. Stage-5 is a root stage
  856. Stage-0 is a root stage
  857. STAGE PLANS:
  858. Stage: Stage-1
  859. Map Reduce
  860. Alias -> Map Operator Tree:
  861. z:src
  862. TableScan
  863. alias: src
  864. Select Operator
  865. expressions:
  866. expr: key
  867. type: string
  868. expr: value
  869. type: string
  870. outputColumnNames: _col0, _col1
  871. Reduce Output Operator
  872. key expressions:
  873. expr: _col1
  874. type: string
  875. sort order: +
  876. tag: -1
  877. value expressions:
  878. expr: _col0
  879. type: string
  880. expr: _col1
  881. type: string
  882. Reduce Operator Tree:
  883. Extract
  884. File Output Operator
  885. compressed: false
  886. GlobalTableId: 0
  887. table:
  888. input format: org.apache.hadoop.mapred.SequenceFileInputFormat
  889. output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat
  890. Stage: Stage-9
  891. Conditional Operator
  892. Stage: Stage-10
  893. Map Reduce Local Work
  894. Alias -> Map Local Tables:
  895. $INTNAME
  896. Fetch Operator
  897. limit: -1
  898. $INTNAME2
  899. Fetch Operator
  900. limit: -1
  901. Alias -> Map Local Operator Tree:
  902. $INTNAME
  903. HashTable Sink Operator
  904. condition expressions:
  905. 0
  906. 1 {_col0} {_col1}
  907. 2
  908. handleSkewJoin: false
  909. keys:
  910. 0 [Column[_col0]]
  911. 1 [Column[_col0]]
  912. 2 [Column[_col0]]
  913. Position of Big Table: 0
  914. $INTNAME2
  915. HashTable Sink Operator
  916. condition expressions:
  917. 0
  918. 1 {_col0} {_col1}
  919. 2
  920. handleSkewJoin: false
  921. keys:
  922. 0 [Column[_col0]]
  923. 1 [Column[_col0]]
  924. 2 [Column[_col0]]
  925. Position of Big Table: 0
  926. Stage: Stage-6
  927. Map Reduce
  928. Alias -> Map Operator Tree:
  929. $INTNAME1
  930. Map Join Operator
  931. condition map:
  932. Inner Join 0 to 1
  933. Inner Join 0 to 2
  934. condition expressions:
  935. 0
  936. 1 {_col0} {_col1}
  937. 2
  938. handleSkewJoin: false
  939. keys:
  940. 0 [Column[_col0]]
  941. 1 [Column[_col0]]
  942. 2 [Column[_col0]]
  943. outputColumnNames: _col2, _col3
  944. Position of Big Table: 0
  945. Select Operator
  946. expressions:
  947. expr: _col2
  948. type: string
  949. expr: _col3
  950. type: string
  951. outputColumnNames: _col2, _col3
  952. Group By Operator
  953. aggregations:
  954. expr: sum(hash(_col2,_col3))
  955. bucketGroup: false
  956. mode: hash
  957. outputColumnNames: _col0
  958. File Output Operator
  959. compressed: false
  960. GlobalTableId: 0
  961. table:
  962. input format: org.apache.hadoop.mapred.SequenceFileInputFormat
  963. output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat
  964. Local Work:
  965. Map Reduce Local Work
  966. Stage: Stage-3
  967. Map Reduce
  968. Alias -> Map Operator Tree:
  969. file:/var/folders/6g/6grtCwPMEf4sqHUPpy6xQG9ByHg/-Tmp-/heyongqiang/hive_2011-04-07_01-31-13_566_5103248435836603181/-mr-10003
  970. Reduce Output Operator
  971. sort order:
  972. tag: -1
  973. value expressions:
  974. expr: _col0
  975. type: bigint
  976. Reduce Operator Tree:
  977. Group By Operator
  978. aggregations:
  979. expr: sum(VALUE._col0)
  980. bucketGroup: false
  981. mode: mergepartial
  982. outputColumnNames: _col0
  983. Select Operator
  984. expressions:
  985. expr: _col0
  986. type: bigint
  987. outputColumnNames: _col0
  988. File Output Operator
  989. compressed: false
  990. GlobalTableId: 0
  991. table:
  992. input format: org.apache.hadoop.mapred.TextInputFormat
  993. output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
  994. Stage: Stage-11
  995. Map Reduce Local Work
  996. Alias -> Map Local Tables:
  997. $INTNAME
  998. Fetch Operator
  999. limit: -1
  1000. $INTNAME1
  1001. Fetch Operator
  1002. limit: -1
  1003. Alias -> Map Local Operator Tree:
  1004. $INTNAME
  1005. HashTable Sink Operator
  1006. condition expressions:
  1007. 0
  1008. 1 {_col0} {_col1}
  1009. 2
  1010. handleSkewJoin: false
  1011. keys:
  1012. 0 [Column[_col0]]
  1013. 1 [Column[_col0]]
  1014. 2 [Column[_col0]]
  1015. Position of Big Table: 1
  1016. $INTNAME1
  1017. HashTable Sink Operator
  1018. condition expressions:
  1019. 0
  1020. 1 {_col0} {_col1}
  1021. 2
  1022. handleSkewJoin: false
  1023. keys:
  1024. 0 [Column[_col0]]
  1025. 1 [Column[_col0]]
  1026. 2 [Column[_col0]]
  1027. Position of Big Table: 1
  1028. Stage: Stage-7
  1029. Map Reduce
  1030. Alias -> Map Operator Tree:
  1031. $INTNAME2
  1032. Map Join Operator
  1033. condition map:
  1034. Inner Join 0 to 1
  1035. Inner Join 0 to 2
  1036. condition expressions:
  1037. 0
  1038. 1 {_col0} {_col1}
  1039. 2
  1040. handleSkewJoin: false
  1041. keys:
  1042. 0 [Column[_col0]]
  1043. 1 [Column[_col0]]
  1044. 2 [Column[_col0]]
  1045. outputColumnNames: _col2, _col3
  1046. Position of Big Table: 1
  1047. Select Operator
  1048. expressions:
  1049. expr: _col2
  1050. type: string
  1051. expr: _col3
  1052. type: string
  1053. outputColumnNames: _col2, _col3
  1054. Group By Operator
  1055. aggregations:
  1056. expr: sum(hash(_col2,_col3))
  1057. bucketGroup: false
  1058. mode: hash
  1059. outputColumnNames: _col0
  1060. File Output Operator
  1061. compressed: false
  1062. GlobalTableId: 0
  1063. table:
  1064. input format: org.apache.hadoop.mapred.SequenceFileInputFormat
  1065. output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat
  1066. Local Work:
  1067. Map Reduce Local Work
  1068. Stage: Stage-12
  1069. Map Reduce Local Work
  1070. Alias -> Map Local Tables:
  1071. $INTNAME1
  1072. Fetch Operator
  1073. limit: -1
  1074. $INTNAME2
  1075. Fetch Operator
  1076. limit: -1
  1077. Alias -> Map Local Operator Tree:
  1078. $INTNAME1
  1079. HashTable Sink Operator
  1080. condition expressions:
  1081. 0
  1082. 1 {_col0} {_col1}
  1083. 2
  1084. handleSkewJoin: false
  1085. keys:
  1086. 0 [Column[_col0]]
  1087. 1 [Column[_col0]]
  1088. 2 [Column[_col0]]
  1089. Position of Big Table: 2
  1090. $INTNAME2
  1091. HashTable Sink Operator
  1092. condition expressions:
  1093. 0
  1094. 1 {_col0} {_col1}
  1095. 2
  1096. handleSkewJoin: false
  1097. keys:
  1098. 0 [Column[_col0]]
  1099. 1 [Column[_col0]]
  1100. 2 [Column[_col0]]
  1101. Position of Big Table: 2
  1102. Stage: Stage-8
  1103. Map Reduce
  1104. Alias -> Map Operator Tree:
  1105. $INTNAME
  1106. Map Join Operator
  1107. condition map:
  1108. Inner Join 0 to 1
  1109. Inner Join 0 to 2
  1110. condition expressions:
  1111. 0
  1112. 1 {_col0} {_col1}
  1113. 2
  1114. handleSkewJoin: false
  1115. keys:
  1116. 0 [Column[_col0]]
  1117. 1 [Column[_col0]]
  1118. 2 [Column[_col0]]
  1119. outputColumnNames: _col2, _col3
  1120. Position of Big Table: 2
  1121. Select Operator
  1122. expressions:
  1123. expr: _col2
  1124. type: string
  1125. expr: _col3
  1126. type: string
  1127. outputColumnNames: _col2, _col3
  1128. Group By Operator
  1129. aggregations:
  1130. expr: sum(hash(_col2,_col3))
  1131. bucketGroup: false
  1132. mode: hash
  1133. outputColumnNames: _col0
  1134. File Output Operator
  1135. compressed: false
  1136. GlobalTableId: 0
  1137. table:
  1138. input format: org.apache.hadoop.mapred.SequenceFileInputFormat
  1139. output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat
  1140. Local Work:
  1141. Map Reduce Local Work
  1142. Stage: Stage-2
  1143. Map Reduce
  1144. Alias -> Map Operator Tree:
  1145. $INTNAME
  1146. Reduce Output Operator
  1147. key expressions:
  1148. expr: _col0
  1149. type: string
  1150. sort order: +
  1151. Map-reduce partition columns:
  1152. expr: _col0
  1153. type: string
  1154. tag: 2
  1155. $INTNAME1
  1156. Reduce Output Operator
  1157. key expressions:
  1158. expr: _col0
  1159. type: string
  1160. sort order: +
  1161. Map-reduce partition columns:
  1162. expr: _col0
  1163. type: string
  1164. tag: 0
  1165. $INTNAME2
  1166. Reduce Output Operator
  1167. key expressions:
  1168. expr: _col0
  1169. type: string
  1170. sort order: +
  1171. Map-reduce partition columns:
  1172. expr: _col0
  1173. type: string
  1174. tag: 1
  1175. value expressions:
  1176. expr: _col0
  1177. type: string
  1178. expr: _col1
  1179. type: string
  1180. Reduce Operator Tree:
  1181. Join Operator
  1182. condition map:
  1183. Inner Join 0 to 1
  1184. Inner Join 0 to 2
  1185. condition expressions:
  1186. 0
  1187. 1 {VALUE._col0} {VALUE._col1}
  1188. 2
  1189. handleSkewJoin: false
  1190. outputColumnNames: _col2, _col3
  1191. Select Operator
  1192. expressions:
  1193. expr: _col2
  1194. type: string
  1195. expr: _col3
  1196. type: string
  1197. outputColumnNames: _col2, _col3
  1198. Group By Operator
  1199. aggregations:
  1200. expr: sum(hash(_col2,_col3))
  1201. bucketGroup: false
  1202. mode: hash
  1203. outputColumnNames: _col0
  1204. File Output Operator
  1205. compressed: false
  1206. GlobalTableId: 0
  1207. table:
  1208. input format: org.apache.hadoop.mapred.SequenceFileInputFormat
  1209. output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat
  1210. Stage: Stage-4
  1211. Map Reduce
  1212. Alias -> Map Operator Tree:
  1213. x:src
  1214. TableScan
  1215. alias: src
  1216. Select Operator
  1217. expressions:
  1218. expr: key
  1219. type: string
  1220. expr: value
  1221. type: string
  1222. outputColumnNames: _col0, _col1
  1223. Reduce Output Operator
  1224. key expressions:
  1225. expr: _col0
  1226. type: string
  1227. sort order: +
  1228. tag: -1
  1229. value expressions:
  1230. expr: _col0
  1231. type: string
  1232. expr: _col1
  1233. type: string
  1234. Reduce Operator Tree:
  1235. Extract
  1236. File Output Operator
  1237. compressed: false
  1238. GlobalTableId: 0
  1239. table:
  1240. input format: org.apache.hadoop.mapred.SequenceFileInputFormat
  1241. output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat
  1242. Stage: Stage-5
  1243. Map Reduce
  1244. Alias -> Map Operator Tree:
  1245. y:src
  1246. TableScan
  1247. alias: src
  1248. Select Operator
  1249. expressions:
  1250. expr: key
  1251. type: string
  1252. expr: value
  1253. type: string
  1254. outputColumnNames: _col0, _col1
  1255. Reduce Output Operator
  1256. key expressions:
  1257. expr: _col1
  1258. type: string
  1259. sort order: +
  1260. tag: -1
  1261. value expressions:
  1262. expr: _col0
  1263. type: string
  1264. expr: _col1
  1265. type: string
  1266. Reduce Operator Tree:
  1267. Extract
  1268. File Output Operator
  1269. compressed: false
  1270. GlobalTableId: 0
  1271. table:
  1272. input format: org.apache.hadoop.mapred.SequenceFileInputFormat
  1273. output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat
  1274. Stage: Stage-0
  1275. Fetch Operator
  1276. limit: -1
  1277. PREHOOK: query: FROM
  1278. (SELECT src.* FROM src sort by key) x
  1279. JOIN
  1280. (SELECT src.* FROM src sort by value) Y
  1281. ON (x.key = Y.key)
  1282. JOIN
  1283. (SELECT src.* FROM src sort by value) Z
  1284. ON (x.key = Z.key)
  1285. select sum(hash(Y.key,Y.value))
  1286. PREHOOK: type: QUERY
  1287. PREHOOK: Input: default@src
  1288. PREHOOK: Output: file:/var/folders/6g/6grtCwPMEf4sqHUPpy6xQG9ByHg/-Tmp-/heyongqiang/hive_2011-04-07_01-31-14_078_677078805297192158/-mr-10000
  1289. POSTHOOK: query: FROM
  1290. (SELECT src.* FROM src sort by key) x
  1291. JOIN
  1292. (SELECT src.* FROM src sort by value) Y
  1293. ON (x.key = Y.key)
  1294. JOIN
  1295. (SELECT src.* FROM src sort by value) Z
  1296. ON (x.key = Z.key)
  1297. select sum(hash(Y.key,Y.value))
  1298. POSTHOOK: type: QUERY
  1299. POSTHOOK: Input: default@src
  1300. POSTHOOK: Output: file:/var/folders/6g/6grtCwPMEf4sqHUPpy6xQG9ByHg/-Tmp-/heyongqiang/hive_2011-04-07_01-31-14_078_677078805297192158/-mr-10000
  1301. 348019368476
  1302. PREHOOK: query: explain
  1303. FROM
  1304. (SELECT src.* FROM src sort by key) x
  1305. JOIN
  1306. (SELECT src.* FROM src sort by value) Y
  1307. ON (x.key = Y.key)
  1308. LEFT OUTER JOIN
  1309. (SELECT src.* FROM src sort by value) Z
  1310. ON (x.key = Z.key)
  1311. select sum(hash(Y.key,Y.value))
  1312. PREHOOK: type: QUERY
  1313. POSTHOOK: query: explain
  1314. FROM
  1315. (SELECT src.* FROM src sort by key) x
  1316. JOIN
  1317. (SELECT src.* FROM src sort by value) Y
  1318. ON (x.key = Y.key)
  1319. LEFT OUTER JOIN
  1320. (SELECT src.* FROM src sort by value) Z
  1321. ON (x.key = Z.key)
  1322. select sum(hash(Y.key,Y.value))
  1323. POSTHOOK: type: QUERY
  1324. ABSTRACT SYNTAX TREE:
  1325. (TOK_QUERY (TOK_FROM (TOK_LEFTOUTERJOIN (TOK_JOIN (TOK_SUBQUERY (TOK_QUERY (TOK_FROM (TOK_TABREF (TOK_TABNAME src))) (TOK_INSERT (TOK_DESTINATION (TOK_DIR TOK_TMP_FILE)) (TOK_SELECT (TOK_SELEXPR (TOK_ALLCOLREF (TOK_TABNAME src)))) (TOK_SORTBY (TOK_TABSORTCOLNAMEASC (TOK_TABLE_OR_COL key))))) x) (TOK_SUBQUERY (TOK_QUERY (TOK_FROM (TOK_TABREF (TOK_TABNAME src))) (TOK_INSERT (TOK_DESTINATION (TOK_DIR TOK_TMP_FILE)) (TOK_SELECT (TOK_SELEXPR (TOK_ALLCOLREF (TOK_TABNAME src)))) (TOK_SORTBY (TOK_TABSORTCOLNAMEASC (TOK_TABLE_OR_COL value))))) Y) (= (. (TOK_TABLE_OR_COL x) key) (. (TOK_TABLE_OR_COL Y) key))) (TOK_SUBQUERY (TOK_QUERY (TOK_FROM (TOK_TABREF (TOK_TABNAME src))) (TOK_INSERT (TOK_DESTINATION (TOK_DIR TOK_TMP_FILE)) (TOK_SELECT (TOK_SELEXPR (TOK_ALLCOLREF (TOK_TABNAME src)))) (TOK_SORTBY (TOK_TABSORTCOLNAMEASC (TOK_TABLE_OR_COL value))))) Z) (= (. (TOK_TABLE_OR_COL x) key) (. (TOK_TABLE_OR_COL Z) key)))) (TOK_INSERT (TOK_DESTINATION (TOK_DIR TOK_TMP_FILE)) (TOK_SELECT (TOK_SELEXPR (TOK_FUNCTION sum (TOK_FUNCTION hash (. (TOK_TABLE_OR_COL Y) key) (. (TOK_TABLE_OR_COL Y) value)))))))
  1326. STAGE DEPENDENCIES:
  1327. Stage-1 is a root stage
  1328. Stage-8 depends on stages: Stage-1, Stage-4, Stage-5 , consists of Stage-9, Stage-10, Stage-2
  1329. Stage-9 has a backup stage: Stage-2
  1330. Stage-6 depends on stages: Stage-9
  1331. Stage-3 depends on stages: Stage-2, Stage-6, Stage-7
  1332. Stage-10 has a backup stage: Stage-2
  1333. Stage-7 depends on stages: Stage-10
  1334. Stage-2
  1335. Stage-4 is a root stage
  1336. Stage-5 is a root stage
  1337. Stage-0 is a root stage
  1338. STAGE PLANS:
  1339. Stage: Stage-1
  1340. Map Reduce
  1341. Alias -> Map Operator Tree:
  1342. z:src
  1343. TableScan
  1344. alias: src
  1345. Select Operator
  1346. expressions:
  1347. expr: key
  1348. type: string
  1349. expr: value
  1350. type: string
  1351. outputColumnNames: _col0, _col1
  1352. Reduce Output Operator
  1353. key expressions:
  1354. expr: _col1
  1355. type: string
  1356. sort order: +
  1357. tag: -1
  1358. value expressions:
  1359. expr: _col0
  1360. type: string
  1361. expr: _col1
  1362. type: string
  1363. Reduce Operator Tree:
  1364. Extract
  1365. File Output Operator
  1366. compressed: false
  1367. GlobalTableId: 0
  1368. table:
  1369. input format: org.apache.hadoop.mapred.SequenceFileInputFormat
  1370. output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat
  1371. Stage: Stage-8
  1372. Conditional Operator
  1373. Stage: Stage-9
  1374. Map Reduce Local Work
  1375. Alias -> Map Local Tables:
  1376. $INTNAME
  1377. Fetch Operator
  1378. limit: -1
  1379. $INTNAME2
  1380. Fetch Operator
  1381. limit: -1
  1382. Alias -> Map Local Operator Tree:
  1383. $INTNAME
  1384. HashTable Sink Operator
  1385. condition expressions:
  1386. 0
  1387. 1 {_col0} {_col1}
  1388. 2
  1389. handleSkewJoin: false
  1390. keys:
  1391. 0 [Column[_col0]]
  1392. 1 [Column[_col0]]
  1393. 2 [Column[_col0]]
  1394. Position of Big Table: 0
  1395. $INTNAME2
  1396. HashTable Sink Operator
  1397. condition expressions:
  1398. 0
  1399. 1 {_col0} {_col1}
  1400. 2
  1401. handleSkewJoin: false
  1402. keys:
  1403. 0 [Column[_col0]]
  1404. 1 [Column[_col0]]
  1405. 2 [Column[_col0]]
  1406. Position of Big Table: 0
  1407. Stage: Stage-6
  1408. Map Reduce
  1409. Alias -> Map Operator Tree:
  1410. $INTNAME1
  1411. Map Join Operator
  1412. condition map:
  1413. Inner Join 0 to 1
  1414. Left Outer Join0 to 2
  1415. condition expressions:
  1416. 0
  1417. 1 {_col0} {_col1}
  1418. 2
  1419. handleSkewJoin: false
  1420. keys:
  1421. 0 [Column[_col0]]
  1422. 1 [Column[_col0]]
  1423. 2 [Column[_col0]]
  1424. outputColumnNames: _col2, _col3
  1425. Position of Big Table: 0
  1426. Select Operator
  1427. expressions:
  1428. expr: _col2
  1429. type: string
  1430. expr: _col3
  1431. type: string
  1432. outputColumnNames: _col2, _col3
  1433. Group By Operator
  1434. aggregations:
  1435. expr: sum(hash(_col2,_col3))
  1436. bucketGroup: false
  1437. mode: hash
  1438. outputColumnNames: _col0
  1439. File Output Operator
  1440. compressed: false
  1441. GlobalTableId: 0
  1442. table:
  1443. input format: org.apache.hadoop.mapred.SequenceFileInputFormat
  1444. output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat
  1445. Local Work:
  1446. Map Reduce Local Work
  1447. Stage: Stage-3
  1448. Map Reduce
  1449. Alias -> Map Operator Tree:
  1450. file:/var/folders/6g/6grtCwPMEf4sqHUPpy6xQG9ByHg/-Tmp-/heyongqiang/hive_2011-04-07_01-31-51_136_1396644593331730058/-mr-10003
  1451. Reduce Output Operator
  1452. sort order:
  1453. tag: -1
  1454. value expressions:
  1455. expr: _col0
  1456. type: bigint
  1457. Reduce Operator Tree:
  1458. Group By Operator
  1459. aggregations:
  1460. expr: sum(VALUE._col0)
  1461. bucketGroup: false
  1462. mode: mergepartial
  1463. outputColumnNames: _col0
  1464. Select Operator
  1465. expressions:
  1466. expr: _col0
  1467. type: bigint
  1468. outputColumnNames: _col0
  1469. File Output Operator
  1470. compressed: false
  1471. GlobalTableId: 0
  1472. table:
  1473. input format: org.apache.hadoop.mapred.TextInputFormat
  1474. output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
  1475. Stage: Stage-10
  1476. Map Reduce Local Work
  1477. Alias -> Map Local Tables:
  1478. $INTNAME
  1479. Fetch Operator
  1480. limit: -1
  1481. $INTNAME1
  1482. Fetch Operator
  1483. limit: -1
  1484. Alias -> Map Local Operator Tree:
  1485. $INTNAME
  1486. HashTable Sink Operator
  1487. condition expressions:
  1488. 0
  1489. 1 {_col0} {_col1}
  1490. 2
  1491. handleSkewJoin: false
  1492. keys:
  1493. 0 [Column[_col0]]
  1494. 1 [Column[_col0]]
  1495. 2 [Column[_col0]]
  1496. Position of Big Table: 1
  1497. $INTNAME1
  1498. HashTable Sink Operator
  1499. condition expressions:
  1500. 0
  1501. 1 {_col0} {_col1}
  1502. 2
  1503. handleSkewJoin: false
  1504. keys:
  1505. 0 [Column[_col0]]
  1506. 1 [Column[_col0]]
  1507. 2 [Column[_col0]]
  1508. Position of Big Table: 1
  1509. Stage: Stage-7
  1510. Map Reduce
  1511. Alias -> Map Operator Tree:
  1512. $INTNAME2
  1513. Map Join Operator
  1514. condition map:
  1515. Inner Join 0 to 1
  1516. Left Outer Join0 to 2
  1517. condition expressions:
  1518. 0
  1519. 1 {_col0} {_col1}
  1520. 2
  1521. handleSkewJoin: false
  1522. keys:
  1523. 0 [Column[_col0]]
  1524. 1 [Column[_col0]]
  1525. 2 [Column[_col0]]
  1526. outputColumnNames: _col2, _col3
  1527. Position of Big Table: 1
  1528. Select Operator
  1529. expressions:
  1530. expr: _col2
  1531. type: string
  1532. expr: _col3
  1533. type: string
  1534. outputColumnNames: _col2, _col3
  1535. Group By Operator
  1536. aggregations:
  1537. expr: sum(hash(_col2,_col3))
  1538. bucketGroup: false
  1539. mode: hash
  1540. outputColumnNames: _col0
  1541. File Output Operator
  1542. compressed: false
  1543. GlobalTableId: 0
  1544. table:
  1545. input format: org.apache.hadoop.mapred.SequenceFileInputFormat
  1546. output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat
  1547. Local Work:
  1548. Map Reduce Local Work
  1549. Stage: Stage-2
  1550. Map Reduce
  1551. Alias -> Map Operator Tree:
  1552. $INTNAME
  1553. Reduce Output Operator
  1554. key expressions:
  1555. expr: _col0
  1556. type: string
  1557. sort order: +
  1558. Map-reduce partition columns:
  1559. expr: _col0
  1560. type: string
  1561. tag: 2
  1562. $INTNAME1
  1563. Reduce Output Operator
  1564. key expressions:
  1565. expr: _col0
  1566. type: string
  1567. sort order: +
  1568. Map-reduce partition columns:
  1569. expr: _col0
  1570. type: string
  1571. tag: 0
  1572. $INTNAME2
  1573. Reduce Output Operator
  1574. key expressions:
  1575. expr: _col0
  1576. type: string
  1577. sort order: +
  1578. Map-reduce partition columns:
  1579. expr: _col0
  1580. type: string
  1581. tag: 1
  1582. value expressions:
  1583. expr: _col0
  1584. type: string
  1585. expr: _col1
  1586. type: string
  1587. Reduce Operator Tree:
  1588. Join Operator
  1589. condition map:
  1590. Inner Join 0 to 1
  1591. Left Outer Join0 to 2
  1592. condition expressions:
  1593. 0
  1594. 1 {VALUE._col0} {VALUE._col1}
  1595. 2
  1596. handleSkewJoin: false
  1597. outputColumnNames: _col2, _col3
  1598. Select Operator
  1599. expressions:
  1600. expr: _col2
  1601. type: string
  1602. expr: _col3
  1603. type: string
  1604. outputColumnNames: _col2, _col3
  1605. Group By Operator
  1606. aggregations:
  1607. expr: sum(hash(_col2,_col3))
  1608. bucketGroup: false
  1609. mode: hash
  1610. outputColumnNames: _col0
  1611. File Output Operator
  1612. compressed: false
  1613. GlobalTableId: 0
  1614. table:
  1615. input format: org.apache.hadoop.mapred.SequenceFileInputFormat
  1616. output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat
  1617. Stage: Stage-4
  1618. Map Reduce
  1619. Alias -> Map Operator Tree:
  1620. x:src
  1621. TableScan
  1622. alias: src
  1623. Select Operator
  1624. expressions:
  1625. expr: key
  1626. type: string
  1627. expr: value
  1628. type: string
  1629. outputColumnNames: _col0, _col1
  1630. Reduce Output Operator
  1631. key expressions:
  1632. expr: _col0
  1633. type: string
  1634. sort order: +
  1635. tag: -1
  1636. value expressions:
  1637. expr: _col0
  1638. type: string
  1639. expr: _col1
  1640. type: string
  1641. Reduce Operator Tree:
  1642. Extract
  1643. File Output Operator
  1644. compressed: false
  1645. GlobalTableId: 0
  1646. table:
  1647. input format: org.apache.hadoop.mapred.SequenceFileInputFormat
  1648. output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat
  1649. Stage: Stage-5
  1650. Map Reduce
  1651. Alias -> Map Operator Tree:
  1652. y:src
  1653. TableScan
  1654. alias: src
  1655. Select Operator
  1656. expressions:
  1657. expr: key
  1658. type: string
  1659. expr: value
  1660. type: string
  1661. outputColumnNames: _col0, _col1
  1662. Reduce Output Operator
  1663. key expressions:
  1664. expr: _col1
  1665. type: string
  1666. sort order: +
  1667. tag: -1
  1668. value expressions:
  1669. expr: _col0
  1670. type: string
  1671. expr: _col1
  1672. type: string
  1673. Reduce Operator Tree:
  1674. Extract
  1675. File Output Operator
  1676. compressed: false
  1677. GlobalTableId: 0
  1678. table:
  1679. input format: org.apache.hadoop.mapred.SequenceFileInputFormat
  1680. output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat
  1681. Stage: Stage-0
  1682. Fetch Operator
  1683. limit: -1
  1684. PREHOOK: query: FROM
  1685. (SELECT src.* FROM src sort by key) x
  1686. JOIN
  1687. (SELECT src.* FROM src sort by value) Y
  1688. ON (x.key = Y.key)
  1689. LEFT OUTER JOIN
  1690. (SELECT src.* FROM src sort by value) Z
  1691. ON (x.key = Z.key)
  1692. select sum(hash(Y.key,Y.value))
  1693. PREHOOK: type: QUERY
  1694. PREHOOK: Input: default@src
  1695. PREHOOK: Output: file:/var/folders/6g/6grtCwPMEf4sqHUPpy6xQG9ByHg/-Tmp-/heyongqiang/hive_2011-04-07_01-31-51_734_4658432184476577096/-mr-10000
  1696. POSTHOOK: query: FROM
  1697. (SELECT src.* FROM src sort by key) x
  1698. JOIN
  1699. (SELECT src.* FROM src sort by value) Y
  1700. ON (x.key = Y.key)
  1701. LEFT OUTER JOIN
  1702. (SELECT src.* FROM src sort by value) Z
  1703. ON (x.key = Z.key)
  1704. select sum(hash(Y.key,Y.value))
  1705. POSTHOOK: type: QUERY
  1706. POSTHOOK: Input: default@src
  1707. POSTHOOK: Output: file:/var/folders/6g/6grtCwPMEf4sqHUPpy6xQG9ByHg/-Tmp-/heyongqiang/hive_2011-04-07_01-31-51_734_4658432184476577096/-mr-10000
  1708. 348019368476
  1709. PREHOOK: query: explain
  1710. FROM
  1711. (SELECT src.* FROM src sort by key) x
  1712. LEFT OUTER JOIN
  1713. (SELECT src.* FROM src sort by value) Y
  1714. ON (x.key = Y.key)
  1715. LEFT OUTER JOIN
  1716. (SELECT src.* FROM src sort by value) Z
  1717. ON (x.key = Z.key)
  1718. select sum(hash(Y.key,Y.value))
  1719. PREHOOK: type: QUERY
  1720. POSTHOOK: query: explain
  1721. FROM
  1722. (SELECT src.* FROM src sort by key) x
  1723. LEFT OUTER JOIN
  1724. (SELECT src.* FROM src sort by value) Y
  1725. ON (x.key = Y.key)
  1726. LEFT OUTER JOIN
  1727. (SELECT src.* FROM src sort by value) Z
  1728. ON (x.key = Z.key)
  1729. select sum(hash(Y.key,Y.value))
  1730. POSTHOOK: type: QUERY
  1731. ABSTRACT SYNTAX TREE:
  1732. (TOK_QUERY (TOK_FROM (TOK_LEFTOUTERJOIN (TOK_LEFTOUTERJOIN (TOK_SUBQUERY (TOK_QUERY (TOK_FROM (TOK_TABREF (TOK_TABNAME src))) (TOK_INSERT (TOK_DESTINATION (TOK_DIR TOK_TMP_FILE)) (TOK_SELECT (TOK_SELEXPR (TOK_ALLCOLREF (TOK_TABNAME src)))) (TOK_SORTBY (TOK_TABSORTCOLNAMEASC (TOK_TABLE_OR_COL key))))) x) (TOK_SUBQUERY (TOK_QUERY (TOK_FROM (TOK_TABREF (TOK_TABNAME src))) (TOK_INSERT (TOK_DESTINATION (TOK_DIR TOK_TMP_FILE)) (TOK_SELECT (TOK_SELEXPR (TOK_ALLCOLREF (TOK_TABNAME src)))) (TOK_SORTBY (TOK_TABSORTCOLNAMEASC (TOK_TABLE_OR_COL value))))) Y) (= (. (TOK_TABLE_OR_COL x) key) (. (TOK_TABLE_OR_COL Y) key))) (TOK_SUBQUERY (TOK_QUERY (TOK_FROM (TOK_TABREF (TOK_TABNAME src))) (TOK_INSERT (TOK_DESTINATION (TOK_DIR TOK_TMP_FILE)) (TOK_SELECT (TOK_SELEXPR (TOK_ALLCOLREF (TOK_TABNAME src)))) (TOK_SORTBY (TOK_TABSORTCOLNAMEASC (TOK_TABLE_OR_COL value))))) Z) (= (. (TOK_TABLE_OR_COL x) key) (. (TOK_TABLE_OR_COL Z) key)))) (TOK_INSERT (TOK_DESTINATION (TOK_DIR TOK_TMP_FILE)) (TOK_SELECT (TOK_SELEXPR (TOK_FUNCTION sum (TOK_FUNCTION hash (. (TOK_TABLE_OR_COL Y) key) (. (TOK_TABLE_OR_COL Y) value)))))))
  1733. STAGE DEPENDENCIES:
  1734. Stage-1 is a root stage
  1735. Stage-7 depends on stages: Stage-1, Stage-4, Stage-5 , consists of Stage-8, Stage-2
  1736. Stage-8 has a backup stage: Stage-2
  1737. Stage-6 depends on stages: Stage-8
  1738. Stage-3 depends on stages: Stage-2, Stage-6
  1739. Stage-2
  1740. Stage-4 is a root stage
  1741. Stage-5 is a root stage
  1742. Stage-0 is a root stage
  1743. STAGE PLANS:
  1744. Stage: Stage-1
  1745. Map Reduce
  1746. Alias -> Map Operator Tree:
  1747. z:src
  1748. TableScan
  1749. alias: src
  1750. Select Operator
  1751. expressions:
  1752. expr: key
  1753. type: string
  1754. expr: value
  1755. type: string
  1756. outputColumnNames: _col0, _col1
  1757. Reduce Output Operator
  1758. key expressions:
  1759. expr: _col1
  1760. type: string
  1761. sort order: +
  1762. tag: -1
  1763. value expressions:
  1764. expr: _col0
  1765. type: string
  1766. expr: _col1
  1767. type: string
  1768. Reduce Operator Tree:
  1769. Extract
  1770. File Output Operator
  1771. compressed: false
  1772. GlobalTableId: 0
  1773. table:
  1774. input format: org.apache.hadoop.mapred.SequenceFileInputFormat
  1775. output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat
  1776. Stage: Stage-7
  1777. Conditional Operator
  1778. Stage: Stage-8
  1779. Map Reduce Local Work
  1780. Alias -> Map Local Tables:
  1781. $INTNAME
  1782. Fetch Operator
  1783. limit: -1
  1784. $INTNAME2
  1785. Fetch Operator
  1786. limit: -1
  1787. Alias -> Map Local Operator Tree:
  1788. $INTNAME
  1789. HashTable Sink Operator
  1790. condition expressions:
  1791. 0
  1792. 1 {_col0} {_col1}
  1793. 2
  1794. handleSkewJoin: false
  1795. keys:
  1796. 0 [Column[_col0]]
  1797. 1 [Column[_col0]]
  1798. 2 [Column[_col0]]
  1799. Position of Big Table: 0
  1800. $INTNAME2
  1801. HashTable Sink Operator
  1802. condition expressions:
  1803. 0
  1804. 1 {_col0} {_col1}
  1805. 2
  1806. handleSkewJoin: false
  1807. keys:
  1808. 0 [Column[_col0]]
  1809. 1 [Column[_col0]]
  1810. 2 [Column[_col0]]
  1811. Position of Big Table: 0
  1812. Stage: Stage-6
  1813. Map Reduce
  1814. Alias -> Map Operator Tree:
  1815. $INTNAME1
  1816. Map Join Operator
  1817. condition map:
  1818. Left Outer Join0 to 1
  1819. Left Outer Join0 to 2
  1820. condition expressions:
  1821. 0
  1822. 1 {_col0} {_col1}
  1823. 2
  1824. handleSkewJoin: false
  1825. keys:
  1826. 0 [Column[_col0]]
  1827. 1 [Column[_col0]]
  1828. 2 [Column[_col0]]
  1829. outputColumnNames: _col2, _col3
  1830. Position of Big Table: 0
  1831. Select Operator
  1832. expressions:
  1833. expr: _col2
  1834. type: string
  1835. expr: _col3
  1836. type: string
  1837. outputColumnNames: _col2, _col3
  1838. Group By Operator
  1839. aggregations:
  1840. expr: sum(hash(_col2,_col3))
  1841. bucketGroup: false
  1842. mode: hash
  1843. outputColumnNames: _col0
  1844. File Output Operator
  1845. compressed: false
  1846. GlobalTableId: 0
  1847. table:
  1848. input format: org.apache.hadoop.mapred.SequenceFileInputFormat
  1849. output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat
  1850. Local Work:
  1851. Map Reduce Local Work
  1852. Stage: Stage-3
  1853. Map Reduce
  1854. Alias -> Map Operator Tree:
  1855. file:/var/folders/6g/6grtCwPMEf4sqHUPpy6xQG9ByHg/-Tmp-/heyongqiang/hive_2011-04-07_01-32-27_283_8537497135418357852/-mr-10003
  1856. Reduce Output Operator
  1857. sort order:
  1858. tag: -1
  1859. value expressions:
  1860. expr: _col0
  1861. type: bigint
  1862. Reduce Operator Tree:
  1863. Group By Operator
  1864. aggregations:
  1865. expr: sum(VALUE._col0)
  1866. bucketGroup: false
  1867. mode: mergepartial
  1868. outputColumnNames: _col0
  1869. Select Operator
  1870. expressions:
  1871. expr: _col0
  1872. type: bigint
  1873. outputColumnNames: _col0
  1874. File Output Operator
  1875. compressed: false
  1876. GlobalTableId: 0
  1877. table:
  1878. input format: org.apache.hadoop.mapred.TextInputFormat
  1879. output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
  1880. Stage: Stage-2
  1881. Map Reduce
  1882. Alias -> Map Operator Tree:
  1883. $INTNAME
  1884. Reduce Output Operator
  1885. key expressions:
  1886. expr: _col0
  1887. type: string
  1888. sort order: +
  1889. Map-reduce partition columns:
  1890. expr: _col0
  1891. type: string
  1892. tag: 2
  1893. $INTNAME1
  1894. Reduce Output Operator
  1895. key expressions:
  1896. expr: _col0
  1897. type: string
  1898. sort order: +
  1899. Map-reduce partition columns:
  1900. expr: _col0
  1901. type: string
  1902. tag: 0
  1903. $INTNAME2
  1904. Reduce Output Operator
  1905. key expressions:
  1906. expr: _col0
  1907. type: string
  1908. sort order: +
  1909. Map-reduce partition columns:
  1910. expr: _col0
  1911. type: string
  1912. tag: 1
  1913. value expressions:
  1914. expr: _col0
  1915. type: string
  1916. expr: _col1
  1917. type: string
  1918. Reduce Operator Tree:
  1919. Join Operator
  1920. condition map:
  1921. Left Outer Join0 to 1
  1922. Left Outer Join0 to 2
  1923. condition expressions:
  1924. 0
  1925. 1 {VALUE._col0} {VALUE._col1}
  1926. 2
  1927. handleSkewJoin: false
  1928. outputColumnNames: _col2, _col3
  1929. Select Operator
  1930. expressions:
  1931. expr: _col2
  1932. type: string
  1933. expr: _col3
  1934. type: string
  1935. outputColumnNames: _col2, _col3
  1936. Group By Operator
  1937. aggregations:
  1938. expr: sum(hash(_col2,_col3))
  1939. bucketGroup: false
  1940. mode: hash
  1941. outputColumnNames: _col0
  1942. File Output Operator
  1943. compressed: false
  1944. GlobalTableId: 0
  1945. table:
  1946. input format: org.apache.hadoop.mapred.SequenceFileInputFormat
  1947. output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat
  1948. Stage: Stage-4
  1949. Map Reduce
  1950. Alias -> Map Operator Tree:
  1951. x:src
  1952. TableScan
  1953. alias: src
  1954. Select Operator
  1955. expressions:
  1956. expr: key
  1957. type: string
  1958. expr: value
  1959. type: string
  1960. outputColumnNames: _col0, _col1
  1961. Reduce Output Operator
  1962. key expressions:
  1963. expr: _col0
  1964. type: string
  1965. sort order: +
  1966. tag: -1
  1967. value expressions:
  1968. expr: _col0
  1969. type: string
  1970. expr: _col1
  1971. type: string
  1972. Reduce Operator Tree:
  1973. Extract
  1974. File Output Operator
  1975. compressed: false
  1976. GlobalTableId: 0
  1977. table:
  1978. input format: org.apache.hadoop.mapred.SequenceFileInputFormat
  1979. output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat
  1980. Stage: Stage-5
  1981. Map Reduce
  1982. Alias -> Map Operator Tree:
  1983. y:src
  1984. TableScan
  1985. alias: src
  1986. Select Operator
  1987. expressions:
  1988. expr: key
  1989. type: string
  1990. expr: value
  1991. type: string
  1992. outputColumnNames: _col0, _col1
  1993. Reduce Output Operator
  1994. key expressions:
  1995. expr: _col1
  1996. type: string
  1997. sort order: +
  1998. tag: -1
  1999. value expressions:
  2000. expr: _col0
  2001. type: string
  2002. expr: _col1
  2003. type: string
  2004. Reduce Operator Tree:
  2005. Extract
  2006. File Output Operator
  2007. compressed: false
  2008. GlobalTableId: 0
  2009. table:
  2010. input format: org.apache.hadoop.mapred.SequenceFileInputFormat
  2011. output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat
  2012. Stage: Stage-0
  2013. Fetch Operator
  2014. limit: -1
  2015. PREHOOK: query: FROM
  2016. (SELECT src.* FROM src sort by key) x
  2017. LEFT OUTER JOIN
  2018. (SELECT src.* FROM src sort by value) Y
  2019. ON (x.key = Y.key)
  2020. LEFT OUTER JOIN
  2021. (SELECT src.* FROM src sort by value) Z
  2022. ON (x.key = Z.key)
  2023. select sum(hash(Y.key,Y.value))
  2024. PREHOOK: type: QUERY
  2025. PREHOOK: Input: default@src
  2026. PREHOOK: Output: file:/var/folders/6g/6grtCwPMEf4sqHUPpy6xQG9ByHg/-Tmp-/heyongqiang/hive_2011-04-07_01-32-27_678_1160688634274021101/-mr-10000
  2027. POSTHOOK: query: FROM
  2028. (SELECT src.* FROM src sort by key) x
  2029. LEFT OUTER JOIN
  2030. (SELECT src.* FROM src sort by value) Y
  2031. ON (x.key = Y.key)
  2032. LEFT OUTER JOIN
  2033. (SELECT src.* FROM src sort by value) Z
  2034. ON (x.key = Z.key)
  2035. select sum(hash(Y.key,Y.value))
  2036. POSTHOOK: type: QUERY
  2037. POSTHOOK: Input: default@src
  2038. POSTHOOK: Output: file:/var/folders/6g/6grtCwPMEf4sqHUPpy6xQG9ByHg/-Tmp-/heyongqiang/hive_2011-04-07_01-32-27_678_1160688634274021101/-mr-10000
  2039. 348019368476
  2040. PREHOOK: query: explain
  2041. FROM
  2042. (SELECT src.* FROM src sort by key) x
  2043. LEFT OUTER JOIN
  2044. (SELECT src.* FROM src sort by value) Y
  2045. ON (x.key = Y.key)
  2046. RIGHT OUTER JOIN
  2047. (SELECT src.* FROM src sort by value) Z
  2048. ON (x.key = Z.key)
  2049. select sum(hash(Y.key,Y.value))
  2050. PREHOOK: type: QUERY
  2051. POSTHOOK: query: explain
  2052. FROM
  2053. (SELECT src.* FROM src sort by key) x
  2054. LEFT OUTER JOIN
  2055. (SELECT src.* FROM src sort by value) Y
  2056. ON (x.key = Y.key)
  2057. RIGHT OUTER JOIN
  2058. (SELECT src.* FROM src sort by value) Z
  2059. ON (x.key = Z.key)
  2060. select sum(hash(Y.key,Y.value))
  2061. POSTHOOK: type: QUERY
  2062. ABSTRACT SYNTAX TREE:
  2063. (TOK_QUERY (TOK_FROM (TOK_RIGHTOUTERJOIN (TOK_LEFTOUTERJOIN (TOK_SUBQUERY (TOK_QUERY (TOK_FROM (TOK_TABREF (TOK_TABNAME src))) (TOK_INSERT (TOK_DESTINATION (TOK_DIR TOK_TMP_FILE)) (TOK_SELECT (TOK_SELEXPR (TOK_ALLCOLREF (TOK_TABNAME src)))) (TOK_SORTBY (TOK_TABSORTCOLNAMEASC (TOK_TABLE_OR_COL key))))) x) (TOK_SUBQUERY (TOK_QUERY (TOK_FROM (TOK_TABREF (TOK_TABNAME src))) (TOK_INSERT (TOK_DESTINATION (TOK_DIR TOK_TMP_FILE)) (TOK_SELECT (TOK_SELEXPR (TOK_ALLCOLREF (TOK_TABNAME src)))) (TOK_SORTBY (TOK_TABSORTCOLNAMEASC (TOK_TABLE_OR_COL value))))) Y) (= (. (TOK_TABLE_OR_COL x) key) (. (TOK_TABLE_OR_COL Y) key))) (TOK_SUBQUERY (TOK_QUERY (TOK_FROM (TOK_TABREF (TOK_TABNAME src))) (TOK_INSERT (TOK_DESTINATION (TOK_DIR TOK_TMP_FILE)) (TOK_SELECT (TOK_SELEXPR (TOK_ALLCOLREF (TOK_TABNAME src)))) (TOK_SORTBY (TOK_TABSORTCOLNAMEASC (TOK_TABLE_OR_COL value))))) Z) (= (. (TOK_TABLE_OR_COL x) key) (. (TOK_TABLE_OR_COL Z) key)))) (TOK_INSERT (TOK_DESTINATION (TOK_DIR TOK_TMP_FILE)) (TOK_SELECT (TOK_SELEXPR (TOK_FUNCTION sum (TOK_FUNCTION hash (. (TOK_TABLE_OR_COL Y) key) (. (TOK_TABLE_OR_COL Y) value)))))))
  2064. STAGE DEPENDENCIES:
  2065. Stage-1 is a root stage
  2066. Stage-7 depends on stages: Stage-1, Stage-4, Stage-5 , consists of Stage-8, Stage-2
  2067. Stage-8 has a backup stage: Stage-2
  2068. Stage-6 depends on stages: Stage-8
  2069. Stage-3 depends on stages: Stage-2, Stage-6
  2070. Stage-2
  2071. Stage-4 is a root stage
  2072. Stage-5 is a root stage
  2073. Stage-0 is a root stage
  2074. STAGE PLANS:
  2075. Stage: Stage-1
  2076. Map Reduce
  2077. Alias -> Map Operator Tree:
  2078. z:src
  2079. TableScan
  2080. alias: src
  2081. Select Operator
  2082. expressions:
  2083. expr: key
  2084. type: string
  2085. expr: value
  2086. type: string
  2087. outputColumnNames: _col0, _col1
  2088. Reduce Output Operator
  2089. key expressions:
  2090. expr: _col1
  2091. type: string
  2092. sort order: +
  2093. tag: -1
  2094. value expressions:
  2095. expr: _col0
  2096. type: string
  2097. expr: _col1
  2098. type: string
  2099. Reduce Operator Tree:
  2100. Extract
  2101. File Output Operator
  2102. compressed: false
  2103. GlobalTableId: 0
  2104. table:
  2105. input format: org.apache.hadoop.mapred.SequenceFileInputFormat
  2106. output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat
  2107. Stage: Stage-7
  2108. Conditional Operator
  2109. Stage: Stage-8
  2110. Map Reduce Local Work
  2111. Alias -> Map Local Tables:
  2112. $INTNAME1
  2113. Fetch Operator
  2114. limit: -1
  2115. $INTNAME2
  2116. Fetch Operator
  2117. limit: -1
  2118. Alias -> Map Local Operator Tree:
  2119. $INTNAME1
  2120. HashTable Sink Operator
  2121. condition expressions:
  2122. 0
  2123. 1 {_col0} {_col1}
  2124. 2
  2125. handleSkewJoin: false
  2126. keys:
  2127. 0 [Column[_col0]]
  2128. 1 [Column[_col0]]
  2129. 2 [Column[_col0]]
  2130. Position of Big Table: 2
  2131. $INTNAME2
  2132. HashTable Sink Operator
  2133. condition expressions:
  2134. 0
  2135. 1 {_col0} {_col1}
  2136. 2
  2137. handleSkewJoin: false
  2138. keys:
  2139. 0 [Column[_col0]]
  2140. 1 [Column[_col0]]
  2141. 2 [Column[_col0]]
  2142. Position of Big Table: 2
  2143. Stage: Stage-6
  2144. Map Reduce
  2145. Alias -> Map Operator Tree:
  2146. $INTNAME
  2147. Map Join Operator
  2148. condition map:
  2149. Left Outer Join0 to 1
  2150. Right Outer Join0 to 2
  2151. condition expressions:
  2152. 0
  2153. 1 {_col0} {_col1}
  2154. 2
  2155. handleSkewJoin: false
  2156. keys:
  2157. 0 [Column[_col0]]
  2158. 1 [Column[_col0]]
  2159. 2 [Column[_col0]]
  2160. outputColumnNames: _col2, _col3
  2161. Position of Big Table: 2
  2162. Select Operator
  2163. expressions:
  2164. expr: _col2
  2165. type: string
  2166. expr: _col3
  2167. type: string
  2168. outputColumnNames: _col2, _col3
  2169. Group By Operator
  2170. aggregations:
  2171. expr: sum(hash(_col2,_col3))
  2172. bucketGroup: false
  2173. mode: hash
  2174. outputColumnNames: _col0
  2175. File Output Operator
  2176. compressed: false
  2177. GlobalTableId: 0
  2178. table:
  2179. input format: org.apache.hadoop.mapred.SequenceFileInputFormat
  2180. output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat
  2181. Local Work:
  2182. Map Reduce Local Work
  2183. Stage: Stage-3
  2184. Map Reduce
  2185. Alias -> Map Operator Tree:
  2186. file:/var/folders/6g/6grtCwPMEf4sqHUPpy6xQG9ByHg/-Tmp-/heyongqiang/hive_2011-04-07_01-33-03_110_2221229728249467440/-mr-10003
  2187. Reduce Output Operator
  2188. sort order:
  2189. tag: -1
  2190. value expressions:
  2191. expr: _col0
  2192. type: bigint
  2193. Reduce Operator Tree:
  2194. Group By Operator
  2195. aggregations:
  2196. expr: sum(VALUE._col0)
  2197. bucketGroup: false
  2198. mode: mergepartial
  2199. outputColumnNames: _col0
  2200. Select Operator
  2201. expressions:
  2202. expr: _col0
  2203. type: bigint
  2204. outputColumnNames: _col0
  2205. File Output Operator
  2206. compressed: false
  2207. GlobalTableId: 0
  2208. table:
  2209. input format: org.apache.hadoop.mapred.TextInputFormat
  2210. output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
  2211. Stage: Stage-2
  2212. Map Reduce
  2213. Alias -> Map Operator Tree:
  2214. $INTNAME
  2215. Reduce Output Operator
  2216. key expressions:
  2217. expr: _col0
  2218. type: string
  2219. sort order: +
  2220. Map-reduce partition columns:
  2221. expr: _col0
  2222. type: string
  2223. tag: 2
  2224. $INTNAME1
  2225. Reduce Output Operator
  2226. key expressions:
  2227. expr: _col0
  2228. type: string
  2229. sort order: +
  2230. Map-reduce partition columns:
  2231. expr: _col0
  2232. type: string
  2233. tag: 0
  2234. $INTNAME2
  2235. Reduce Output Operator
  2236. key expressions:
  2237. expr: _col0
  2238. type: string
  2239. sort order: +
  2240. Map-reduce partition columns:
  2241. expr: _col0
  2242. type: string
  2243. tag: 1
  2244. value expressions:
  2245. expr: _col0
  2246. type: string
  2247. expr: _col1
  2248. type: string
  2249. Reduce Operator Tree:
  2250. Join Operator
  2251. condition map:
  2252. Left Outer Join0 to 1
  2253. Right Outer Join0 to 2
  2254. condition expressions:
  2255. 0
  2256. 1 {VALUE._col0} {VALUE._col1}
  2257. 2
  2258. handleSkewJoin: false
  2259. outputColumnNames: _col2, _col3
  2260. Select Operator
  2261. expressions:
  2262. expr: _col2
  2263. type: string
  2264. expr: _col3
  2265. type: string
  2266. outputColumnNames: _col2, _col3
  2267. Group By Operator
  2268. aggregations:
  2269. expr: sum(hash(_col2,_col3))
  2270. bucketGroup: false
  2271. mode: hash
  2272. outputColumnNames: _col0
  2273. File Output Operator
  2274. compressed: false
  2275. GlobalTableId: 0
  2276. table:
  2277. input format: org.apache.hadoop.mapred.SequenceFileInputFormat
  2278. output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat
  2279. Stage: Stage-4
  2280. Map Reduce
  2281. Alias -> Map Operator Tree:
  2282. x:src
  2283. TableScan
  2284. alias: src
  2285. Select Operator
  2286. expressions:
  2287. expr: key
  2288. type: string
  2289. expr: value
  2290. type: string
  2291. outputColumnNames: _col0, _col1
  2292. Reduce Output Operator
  2293. key expressions:
  2294. expr: _col0
  2295. type: string
  2296. sort order: +
  2297. tag: -1
  2298. value expressions:
  2299. expr: _col0
  2300. type: string
  2301. expr: _col1
  2302. type: string
  2303. Reduce Operator Tree:
  2304. Extract
  2305. File Output Operator
  2306. compressed: false
  2307. GlobalTableId: 0
  2308. table:
  2309. input format: org.apache.hadoop.mapred.SequenceFileInputFormat
  2310. output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat
  2311. Stage: Stage-5
  2312. Map Reduce
  2313. Alias -> Map Operator Tree:
  2314. y:src
  2315. TableScan
  2316. alias: src
  2317. Select Operator
  2318. expressions:
  2319. expr: key
  2320. type: string
  2321. expr: value
  2322. type: string
  2323. outputColumnNames: _col0, _col1
  2324. Reduce Output Operator
  2325. key expressions:
  2326. expr: _col1
  2327. type: string
  2328. sort order: +
  2329. tag: -1
  2330. value expressions:
  2331. expr: _col0
  2332. type: string
  2333. expr: _col1
  2334. type: string
  2335. Reduce Operator Tree:
  2336. Extract
  2337. File Output Operator
  2338. compressed: false
  2339. GlobalTableId: 0
  2340. table:
  2341. input format: org.apache.hadoop.mapred.SequenceFileInputFormat
  2342. output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat
  2343. Stage: Stage-0
  2344. Fetch Operator
  2345. limit: -1
  2346. PREHOOK: query: FROM
  2347. (SELECT src.* FROM src sort by key) x
  2348. LEFT OUTER JOIN
  2349. (SELECT src.* FROM src sort by value) Y
  2350. ON (x.key = Y.key)
  2351. RIGHT OUTER JOIN
  2352. (SELECT src.* FROM src sort by value) Z
  2353. ON (x.key = Z.key)
  2354. select sum(hash(Y.key,Y.value))
  2355. PREHOOK: type: QUERY
  2356. PREHOOK: Input: default@src
  2357. PREHOOK: Output: file:/var/folders/6g/6grtCwPMEf4sqHUPpy6xQG9ByHg/-Tmp-/heyongqiang/hive_2011-04-07_01-33-03_471_7630997145926057936/-mr-10000
  2358. POSTHOOK: query: FROM
  2359. (SELECT src.* FROM src sort by key) x
  2360. LEFT OUTER JOIN
  2361. (SELECT src.* FROM src sort by value) Y
  2362. ON (x.key = Y.key)
  2363. RIGHT OUTER JOIN
  2364. (SELECT src.* FROM src sort by value) Z
  2365. ON (x.key = Z.key)
  2366. select sum(hash(Y.key,Y.value))
  2367. POSTHOOK: type: QUERY
  2368. POSTHOOK: Input: default@src
  2369. POSTHOOK: Output: file:/var/folders/6g/6grtCwPMEf4sqHUPpy6xQG9ByHg/-Tmp-/heyongqiang/hive_2011-04-07_01-33-03_471_7630997145926057936/-mr-10000
  2370. 348019368476
  2371. PREHOOK: query: explain
  2372. FROM
  2373. (SELECT src.* FROM src sort by key) x
  2374. RIGHT OUTER JOIN
  2375. (SELECT src.* FROM src sort by value) Y
  2376. ON (x.key = Y.key)
  2377. RIGHT OUTER JOIN
  2378. (SELECT src.* FROM src sort by value) Z
  2379. ON (x.key = Z.key)
  2380. select sum(hash(Y.key,Y.value))
  2381. PREHOOK: type: QUERY
  2382. POSTHOOK: query: explain
  2383. FROM
  2384. (SELECT src.* FROM src sort by key) x
  2385. RIGHT OUTER JOIN
  2386. (SELECT src.* FROM src sort by value) Y
  2387. ON (x.key = Y.key)
  2388. RIGHT OUTER JOIN
  2389. (SELECT src.* FROM src sort by value) Z
  2390. ON (x.key = Z.key)
  2391. select sum(hash(Y.key,Y.value))
  2392. POSTHOOK: type: QUERY
  2393. ABSTRACT SYNTAX TREE:
  2394. (TOK_QUERY (TOK_FROM (TOK_RIGHTOUTERJOIN (TOK_RIGHTOUTERJOIN (TOK_SUBQUERY (TOK_QUERY (TOK_FROM (TOK_TABREF (TOK_TABNAME src))) (TOK_INSERT (TOK_DESTINATION (TOK_DIR TOK_TMP_FILE)) (TOK_SELECT (TOK_SELEXPR (TOK_ALLCOLREF (TOK_TABNAME src)))) (TOK_SORTBY (TOK_TABSORTCOLNAMEASC (TOK_TABLE_OR_COL key))))) x) (TOK_SUBQUERY (TOK_QUERY (TOK_FROM (TOK_TABREF (TOK_TABNAME src))) (TOK_INSERT (TOK_DESTINATION (TOK_DIR TOK_TMP_FILE)) (TOK_SELECT (TOK_SELEXPR (TOK_ALLCOLREF (TOK_TABNAME src)))) (TOK_SORTBY (TOK_TABSORTCOLNAMEASC (TOK_TABLE_OR_COL value))))) Y) (= (. (TOK_TABLE_OR_COL x) key) (. (TOK_TABLE_OR_COL Y) key))) (TOK_SUBQUERY (TOK_QUERY (TOK_FROM (TOK_TABREF (TOK_TABNAME src))) (TOK_INSERT (TOK_DESTINATION (TOK_DIR TOK_TMP_FILE)) (TOK_SELECT (TOK_SELEXPR (TOK_ALLCOLREF (TOK_TABNAME src)))) (TOK_SORTBY (TOK_TABSORTCOLNAMEASC (TOK_TABLE_OR_COL value))))) Z) (= (. (TOK_TABLE_OR_COL x) key) (. (TOK_TABLE_OR_COL Z) key)))) (TOK_INSERT (TOK_DESTINATION (TOK_DIR TOK_TMP_FILE)) (TOK_SELECT (TOK_SELEXPR (TOK_FUNCTION sum (TOK_FUNCTION hash (. (TOK_TABLE_OR_COL Y) key) (. (TOK_TABLE_OR_COL Y) value)))))))
  2395. STAGE DEPENDENCIES:
  2396. Stage-1 is a root stage
  2397. Stage-7 depends on stages: Stage-1, Stage-4, Stage-5 , consists of Stage-8, Stage-2
  2398. Stage-8 has a backup stage: Stage-2
  2399. Stage-6 depends on stages: Stage-8
  2400. Stage-3 depends on stages: Stage-2, Stage-6
  2401. Stage-2
  2402. Stage-4 is a root stage
  2403. Stage-5 is a root stage
  2404. Stage-0 is a root stage
  2405. STAGE PLANS:
  2406. Stage: Stage-1
  2407. Map Reduce
  2408. Alias -> Map Operator Tree:
  2409. z:src
  2410. TableScan
  2411. alias: src
  2412. Select Operator
  2413. expressions:
  2414. expr: key
  2415. type: string
  2416. expr: value
  2417. type: string
  2418. outputColumnNames: _col0, _col1
  2419. Reduce Output Operator
  2420. key expressions:
  2421. expr: _col1
  2422. type: string
  2423. sort order: +
  2424. tag: -1
  2425. value expressions:
  2426. expr: _col0
  2427. type: string
  2428. expr: _col1
  2429. type: string
  2430. Reduce Operator Tree:
  2431. Extract
  2432. File Output Operator
  2433. compressed: false
  2434. GlobalTableId: 0
  2435. table:
  2436. input format: org.apache.hadoop.mapred.SequenceFileInputFormat
  2437. output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat
  2438. Stage: Stage-7
  2439. Conditional Operator
  2440. Stage: Stage-8
  2441. Map Reduce Local Work
  2442. Alias -> Map Local Tables:
  2443. $INTNAME1
  2444. Fetch Operator
  2445. limit: -1
  2446. $INTNAME2
  2447. Fetch Operator
  2448. limit: -1
  2449. Alias -> Map Local Operator Tree:
  2450. $INTNAME1
  2451. HashTable Sink Operator
  2452. condition expressions:
  2453. 0
  2454. 1 {_col0} {_col1}
  2455. 2
  2456. handleSkewJoin: false
  2457. keys:
  2458. 0 [Column[_col0]]
  2459. 1 [Column[_col0]]
  2460. 2 [Column[_col0]]
  2461. Position of Big Table: 2
  2462. $INTNAME2
  2463. HashTable Sink Operator
  2464. condition expressions:
  2465. 0
  2466. 1 {_col0} {_col1}
  2467. 2
  2468. handleSkewJoin: false
  2469. keys:
  2470. 0 [Column[_col0]]
  2471. 1 [Column[_col0]]
  2472. 2 [Column[_col0]]
  2473. Position of Big Table: 2
  2474. Stage: Stage-6
  2475. Map Reduce
  2476. Alias -> Map Operator Tree:
  2477. $INTNAME
  2478. Map Join Operator
  2479. condition map:
  2480. Right Outer Join0 to 1
  2481. Right Outer Join0 to 2
  2482. condition expressions:
  2483. 0
  2484. 1 {_col0} {_col1}
  2485. 2
  2486. handleSkewJoin: false
  2487. keys:
  2488. 0 [Column[_col0]]
  2489. 1 [Column[_col0]]
  2490. 2 [Column[_col0]]
  2491. outputColumnNames: _col2, _col3
  2492. Position of Big Table: 2
  2493. Select Operator
  2494. expressions:
  2495. expr: _col2
  2496. type: string
  2497. expr: _col3
  2498. type: string
  2499. outputColumnNames: _col2, _col3
  2500. Group By Operator
  2501. aggregations:
  2502. expr: sum(hash(_col2,_col3))
  2503. bucketGroup: false
  2504. mode: hash
  2505. outputColumnNames: _col0
  2506. File Output Operator
  2507. compressed: false
  2508. GlobalTableId: 0
  2509. table:
  2510. input format: org.apache.hadoop.mapred.SequenceFileInputFormat
  2511. output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat
  2512. Local Work:
  2513. Map Reduce Local Work
  2514. Stage: Stage-3
  2515. Map Reduce
  2516. Alias -> Map Operator Tree:
  2517. file:/var/folders/6g/6grtCwPMEf4sqHUPpy6xQG9ByHg/-Tmp-/heyongqiang/hive_2011-04-07_01-33-42_607_62391823355353921/-mr-10003
  2518. Reduce Output Operator
  2519. sort order:
  2520. tag: -1
  2521. value expressions:
  2522. expr: _col0
  2523. type: bigint
  2524. Reduce Operator Tree:
  2525. Group By Operator
  2526. aggregations:
  2527. expr: sum(VALUE._col0)
  2528. bucketGroup: false
  2529. mode: mergepartial
  2530. outputColumnNames: _col0
  2531. Select Operator
  2532. expressions:
  2533. expr: _col0
  2534. type: bigint
  2535. outputColumnNames: _col0
  2536. File Output Operator
  2537. compressed: false
  2538. GlobalTableId: 0
  2539. table:
  2540. input format: org.apache.hadoop.mapred.TextInputFormat
  2541. output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
  2542. Stage: Stage-2
  2543. Map Reduce
  2544. Alias -> Map Operator Tree:
  2545. $INTNAME
  2546. Reduce Output Operator
  2547. key expressions:
  2548. expr: _col0
  2549. type: string
  2550. sort order: +
  2551. Map-reduce partition columns:
  2552. expr: _col0
  2553. type: string
  2554. tag: 2
  2555. $INTNAME1
  2556. Reduce Output Operator
  2557. key expressions:
  2558. expr: _col0
  2559. type: string
  2560. sort order: +
  2561. Map-reduce partition columns:
  2562. expr: _col0
  2563. type: string
  2564. tag: 0
  2565. $INTNAME2
  2566. Reduce Output Operator
  2567. key expressions:
  2568. expr: _col0
  2569. type: string
  2570. sort order: +
  2571. Map-reduce partition columns:
  2572. expr: _col0
  2573. type: string
  2574. tag: 1
  2575. value expressions:
  2576. expr: _col0
  2577. type: string
  2578. expr: _col1
  2579. type: string
  2580. Reduce Operator Tree:
  2581. Join Operator
  2582. condition map:
  2583. Right Outer Join0 to 1
  2584. Right Outer Join0 to 2
  2585. condition expressions:
  2586. 0
  2587. 1 {VALUE._col0} {VALUE._col1}
  2588. 2
  2589. handleSkewJoin: false
  2590. outputColumnNames: _col2, _col3
  2591. Select Operator
  2592. expressions:
  2593. expr: _col2
  2594. type: string
  2595. expr: _col3
  2596. type: string
  2597. outputColumnNames: _col2, _col3
  2598. Group By Operator
  2599. aggregations:
  2600. expr: sum(hash(_col2,_col3))
  2601. bucketGroup: false
  2602. mode: hash
  2603. outputColumnNames: _col0
  2604. File Output Operator
  2605. compressed: false
  2606. GlobalTableId: 0
  2607. table:
  2608. input format: org.apache.hadoop.mapred.SequenceFileInputFormat
  2609. output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat
  2610. Stage: Stage-4
  2611. Map Reduce
  2612. Alias -> Map Operator Tree:
  2613. x:src
  2614. TableScan
  2615. alias: src
  2616. Select Operator
  2617. expressions:
  2618. expr: key
  2619. type: string
  2620. expr: value
  2621. type: string
  2622. outputColumnNames: _col0, _col1
  2623. Reduce Output Operator
  2624. key expressions:
  2625. expr: _col0
  2626. type: string
  2627. sort order: +
  2628. tag: -1
  2629. value expressions:
  2630. expr: _col0
  2631. type: string
  2632. expr: _col1
  2633. type: string
  2634. Reduce Operator Tree:
  2635. Extract
  2636. File Output Operator
  2637. compressed: false
  2638. GlobalTableId: 0
  2639. table:
  2640. input format: org.apache.hadoop.mapred.SequenceFileInputFormat
  2641. output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat
  2642. Stage: Stage-5
  2643. Map Reduce
  2644. Alias -> Map Operator Tree:
  2645. y:src
  2646. TableScan
  2647. alias: src
  2648. Select Operator
  2649. expressions:
  2650. expr: key
  2651. type: string
  2652. expr: value
  2653. type: string
  2654. outputColumnNames: _col0, _col1
  2655. Reduce Output Operator
  2656. key expressions:
  2657. expr: _col1
  2658. type: string
  2659. sort order: +
  2660. tag: -1
  2661. value expressions:
  2662. expr: _col0
  2663. type: string
  2664. expr: _col1
  2665. type: string
  2666. Reduce Operator Tree:
  2667. Extract
  2668. File Output Operator
  2669. compressed: false
  2670. GlobalTableId: 0
  2671. table:
  2672. input format: org.apache.hadoop.mapred.SequenceFileInputFormat
  2673. output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat
  2674. Stage: Stage-0
  2675. Fetch Operator
  2676. limit: -1
  2677. PREHOOK: query: FROM
  2678. (SELECT src.* FROM src sort by key) x
  2679. RIGHT OUTER JOIN
  2680. (SELECT src.* FROM src sort by value) Y
  2681. ON (x.key = Y.key)
  2682. RIGHT OUTER JOIN
  2683. (SELECT src.* FROM src sort by value) Z
  2684. ON (x.key = Z.key)
  2685. select sum(hash(Y.key,Y.value))
  2686. PREHOOK: type: QUERY
  2687. PREHOOK: Input: default@src
  2688. PREHOOK: Output: file:/var/folders/6g/6grtCwPMEf4sqHUPpy6xQG9ByHg/-Tmp-/heyongqiang/hive_2011-04-07_01-33-42_972_7012061714979161777/-mr-10000
  2689. POSTHOOK: query: FROM
  2690. (SELECT src.* FROM src sort by key) x
  2691. RIGHT OUTER JOIN
  2692. (SELECT src.* FROM src sort by value) Y
  2693. ON (x.key = Y.key)
  2694. RIGHT OUTER JOIN
  2695. (SELECT src.* FROM src sort by value) Z
  2696. ON (x.key = Z.key)
  2697. select sum(hash(Y.key,Y.value))
  2698. POSTHOOK: type: QUERY
  2699. POSTHOOK: Input: default@src
  2700. POSTHOOK: Output: file:/var/folders/6g/6grtCwPMEf4sqHUPpy6xQG9ByHg/-Tmp-/heyongqiang/hive_2011-04-07_01-33-42_972_7012061714979161777/-mr-10000
  2701. 348019368476