/branches/branch-0.2/hive/external/ql/src/test/results/clientpositive/semijoin.q.out

# · text · 3033 lines · 2910 code · 123 blank · 0 comment · 0 complexity · 0b0cff1fa9013fa5149d29c9c4992b92 MD5 · raw file

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