PageRenderTime 67ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 0ms

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

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