PageRenderTime 55ms CodeModel.GetById 16ms 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

Large files files are truncated, but you can click here to view the full file

  1. PREHOOK: query: create table t1 as select cast(key as int) key, value from src where key <= 10
  2. PREHOOK: type: CREATETABLE_AS_SELECT
  3. PREHOOK: Input: default@src
  4. POSTHOOK: query: create table t1 as select cast(key as int) key, value from src where key <= 10
  5. POSTHOOK: type: CREATETABLE_AS_SELECT
  6. POSTHOOK: Input: default@src
  7. POSTHOOK: Output: default@t1
  8. PREHOOK: query: select * from t1 sort by key
  9. PREHOOK: type: QUERY
  10. PREHOOK: Input: default@t1
  11. PREHOOK: Output: file:/tmp/sdong/hive_2011-02-10_17-04-47_886_705452503633658789/-mr-10000
  12. POSTHOOK: query: select * from t1 sort by key
  13. POSTHOOK: type: QUERY
  14. POSTHOOK: Input: default@t1
  15. POSTHOOK: Output: file:/tmp/sdong/hive_2011-02-10_17-04-47_886_705452503633658789/-mr-10000
  16. 0 val_0
  17. 0 val_0
  18. 0 val_0
  19. 2 val_2
  20. 4 val_4
  21. 5 val_5
  22. 5 val_5
  23. 5 val_5
  24. 8 val_8
  25. 9 val_9
  26. 10 val_10
  27. PREHOOK: query: create table t2 as select cast(2*key as int) key, value from t1
  28. PREHOOK: type: CREATETABLE_AS_SELECT
  29. PREHOOK: Input: default@t1
  30. POSTHOOK: query: create table t2 as select cast(2*key as int) key, value from t1
  31. POSTHOOK: type: CREATETABLE_AS_SELECT
  32. POSTHOOK: Input: default@t1
  33. POSTHOOK: Output: default@t2
  34. PREHOOK: query: select * from t2 sort by key
  35. PREHOOK: type: QUERY
  36. PREHOOK: Input: default@t2
  37. PREHOOK: Output: file:/tmp/sdong/hive_2011-02-10_17-04-54_794_6115178750654470118/-mr-10000
  38. POSTHOOK: query: select * from t2 sort by key
  39. POSTHOOK: type: QUERY
  40. POSTHOOK: Input: default@t2
  41. POSTHOOK: Output: file:/tmp/sdong/hive_2011-02-10_17-04-54_794_6115178750654470118/-mr-10000
  42. 0 val_0
  43. 0 val_0
  44. 0 val_0
  45. 4 val_2
  46. 8 val_4
  47. 10 val_5
  48. 10 val_5
  49. 10 val_5
  50. 16 val_8
  51. 18 val_9
  52. 20 val_10
  53. PREHOOK: query: create table t3 as select * from (select * from t1 union all select * from t2) b
  54. PREHOOK: type: CREATETABLE_AS_SELECT
  55. PREHOOK: Input: default@t1
  56. PREHOOK: Input: default@t2
  57. POSTHOOK: query: create table t3 as select * from (select * from t1 union all select * from t2) b
  58. POSTHOOK: type: CREATETABLE_AS_SELECT
  59. POSTHOOK: Input: default@t1
  60. POSTHOOK: Input: default@t2
  61. POSTHOOK: Output: default@t3
  62. PREHOOK: query: select * from t3 sort by key, value
  63. PREHOOK: type: QUERY
  64. PREHOOK: Input: default@t3
  65. PREHOOK: Output: file:/tmp/sdong/hive_2011-02-10_17-05-05_418_8784955403393483239/-mr-10000
  66. POSTHOOK: query: select * from t3 sort by key, value
  67. POSTHOOK: type: QUERY
  68. POSTHOOK: Input: default@t3
  69. POSTHOOK: Output: file:/tmp/sdong/hive_2011-02-10_17-05-05_418_8784955403393483239/-mr-10000
  70. 0 val_0
  71. 0 val_0
  72. 0 val_0
  73. 0 val_0
  74. 0 val_0
  75. 0 val_0
  76. 2 val_2
  77. 4 val_2
  78. 4 val_4
  79. 5 val_5
  80. 5 val_5
  81. 5 val_5
  82. 8 val_4
  83. 8 val_8
  84. 9 val_9
  85. 10 val_10
  86. 10 val_5
  87. 10 val_5
  88. 10 val_5
  89. 16 val_8
  90. 18 val_9
  91. 20 val_10
  92. PREHOOK: query: create table t4 (key int, value string)
  93. PREHOOK: type: CREATETABLE
  94. POSTHOOK: query: create table t4 (key int, value string)
  95. POSTHOOK: type: CREATETABLE
  96. POSTHOOK: Output: default@t4
  97. PREHOOK: query: select * from t4
  98. PREHOOK: type: QUERY
  99. PREHOOK: Input: default@t4
  100. PREHOOK: Output: file:/tmp/sdong/hive_2011-02-10_17-05-08_875_8263284626120887909/-mr-10000
  101. POSTHOOK: query: select * from t4
  102. POSTHOOK: type: QUERY
  103. POSTHOOK: Input: default@t4
  104. POSTHOOK: Output: file:/tmp/sdong/hive_2011-02-10_17-05-08_875_8263284626120887909/-mr-10000
  105. PREHOOK: query: explain select * from t1 a left semi join t2 b on a.key=b.key sort by a.key, a.value
  106. PREHOOK: type: QUERY
  107. POSTHOOK: query: explain select * from t1 a left semi join t2 b on a.key=b.key sort by a.key, a.value
  108. POSTHOOK: type: QUERY
  109. ABSTRACT SYNTAX TREE:
  110. (TOK_QUERY (TOK_FROM (TOK_LEFTSEMIJOIN (TOK_TABREF (TOK_TABNAME t1) a) (TOK_TABREF (TOK_TABNAME t2) b) (= (. (TOK_TABLE_OR_COL a) key) (. (TOK_TABLE_OR_COL b) key)))) (TOK_INSERT (TOK_DESTINATION (TOK_DIR TOK_TMP_FILE)) (TOK_SELECT (TOK_SELEXPR TOK_ALLCOLREF)) (TOK_SORTBY (TOK_TABSORTCOLNAMEASC (. (TOK_TABLE_OR_COL a) key)) (TOK_TABSORTCOLNAMEASC (. (TOK_TABLE_OR_COL a) value)))))
  111. STAGE DEPENDENCIES:
  112. Stage-1 is a root stage
  113. Stage-2 depends on stages: Stage-1
  114. Stage-0 is a root stage
  115. STAGE PLANS:
  116. Stage: Stage-1
  117. Map Reduce
  118. Alias -> Map Operator Tree:
  119. a
  120. TableScan
  121. alias: a
  122. Reduce Output Operator
  123. key expressions:
  124. expr: key
  125. type: int
  126. sort order: +
  127. Map-reduce partition columns:
  128. expr: key
  129. type: int
  130. tag: 0
  131. value expressions:
  132. expr: key
  133. type: int
  134. expr: value
  135. type: string
  136. b
  137. TableScan
  138. alias: b
  139. Select Operator
  140. expressions:
  141. expr: key
  142. type: int
  143. outputColumnNames: key
  144. Group By Operator
  145. bucketGroup: false
  146. keys:
  147. expr: key
  148. type: int
  149. mode: hash
  150. outputColumnNames: _col0
  151. Reduce Output Operator
  152. key expressions:
  153. expr: _col0
  154. type: int
  155. sort order: +
  156. Map-reduce partition columns:
  157. expr: _col0
  158. type: int
  159. tag: 1
  160. Reduce Operator Tree:
  161. Join Operator
  162. condition map:
  163. Left Semi Join 0 to 1
  164. condition expressions:
  165. 0 {VALUE._col0} {VALUE._col1}
  166. 1
  167. handleSkewJoin: false
  168. outputColumnNames: _col0, _col1
  169. Select Operator
  170. expressions:
  171. expr: _col0
  172. type: int
  173. expr: _col1
  174. type: string
  175. outputColumnNames: _col0, _col1
  176. File Output Operator
  177. compressed: false
  178. GlobalTableId: 0
  179. table:
  180. input format: org.apache.hadoop.mapred.SequenceFileInputFormat
  181. output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat
  182. Stage: Stage-2
  183. Map Reduce
  184. Alias -> Map Operator Tree:
  185. file:/tmp/sdong/hive_2011-02-10_17-05-09_005_502081017578523829/-mr-10002
  186. Reduce Output Operator
  187. key expressions:
  188. expr: _col0
  189. type: int
  190. expr: _col1
  191. type: string
  192. sort order: ++
  193. tag: -1
  194. value expressions:
  195. expr: _col0
  196. type: int
  197. expr: _col1
  198. type: string
  199. Reduce Operator Tree:
  200. Extract
  201. File Output Operator
  202. compressed: false
  203. GlobalTableId: 0
  204. table:
  205. input format: org.apache.hadoop.mapred.TextInputFormat
  206. output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
  207. Stage: Stage-0
  208. Fetch Operator
  209. limit: -1
  210. PREHOOK: query: select * from t1 a left semi join t2 b on a.key=b.key sort by a.key, a.value
  211. PREHOOK: type: QUERY
  212. PREHOOK: Input: default@t1
  213. PREHOOK: Input: default@t2
  214. PREHOOK: Output: file:/tmp/sdong/hive_2011-02-10_17-05-09_098_1588087013512926695/-mr-10000
  215. POSTHOOK: query: select * from t1 a left semi join t2 b on a.key=b.key sort by a.key, a.value
  216. POSTHOOK: type: QUERY
  217. POSTHOOK: Input: default@t1
  218. POSTHOOK: Input: default@t2
  219. POSTHOOK: Output: file:/tmp/sdong/hive_2011-02-10_17-05-09_098_1588087013512926695/-mr-10000
  220. 0 val_0
  221. 0 val_0
  222. 0 val_0
  223. 4 val_4
  224. 8 val_8
  225. 10 val_10
  226. PREHOOK: query: explain select * from t2 a left semi join t1 b on b.key=a.key sort by a.key, a.value
  227. PREHOOK: type: QUERY
  228. POSTHOOK: query: explain select * from t2 a left semi join t1 b on b.key=a.key sort by a.key, a.value
  229. POSTHOOK: type: QUERY
  230. ABSTRACT SYNTAX TREE:
  231. (TOK_QUERY (TOK_FROM (TOK_LEFTSEMIJOIN (TOK_TABREF (TOK_TABNAME t2) a) (TOK_TABREF (TOK_TABNAME t1) b) (= (. (TOK_TABLE_OR_COL b) key) (. (TOK_TABLE_OR_COL a) key)))) (TOK_INSERT (TOK_DESTINATION (TOK_DIR TOK_TMP_FILE)) (TOK_SELECT (TOK_SELEXPR TOK_ALLCOLREF)) (TOK_SORTBY (TOK_TABSORTCOLNAMEASC (. (TOK_TABLE_OR_COL a) key)) (TOK_TABSORTCOLNAMEASC (. (TOK_TABLE_OR_COL a) value)))))
  232. STAGE DEPENDENCIES:
  233. Stage-1 is a root stage
  234. Stage-2 depends on stages: Stage-1
  235. Stage-0 is a root stage
  236. STAGE PLANS:
  237. Stage: Stage-1
  238. Map Reduce
  239. Alias -> Map Operator Tree:
  240. a
  241. TableScan
  242. alias: a
  243. Reduce Output Operator
  244. key expressions:
  245. expr: key
  246. type: int
  247. sort order: +
  248. Map-reduce partition columns:
  249. expr: key
  250. type: int
  251. tag: 0
  252. value expressions:
  253. expr: key
  254. type: int
  255. expr: value
  256. type: string
  257. b
  258. TableScan
  259. alias: b
  260. Select Operator
  261. expressions:
  262. expr: key
  263. type: int
  264. outputColumnNames: key
  265. Group By Operator
  266. bucketGroup: false
  267. keys:
  268. expr: key
  269. type: int
  270. mode: hash
  271. outputColumnNames: _col0
  272. Reduce Output Operator
  273. key expressions:
  274. expr: _col0
  275. type: int
  276. sort order: +
  277. Map-reduce partition columns:
  278. expr: _col0
  279. type: int
  280. tag: 1
  281. Reduce Operator Tree:
  282. Join Operator
  283. condition map:
  284. Left Semi Join 0 to 1
  285. condition expressions:
  286. 0 {VALUE._col0} {VALUE._col1}
  287. 1
  288. handleSkewJoin: false
  289. outputColumnNames: _col0, _col1
  290. Select Operator
  291. expressions:
  292. expr: _col0
  293. type: int
  294. expr: _col1
  295. type: string
  296. outputColumnNames: _col0, _col1
  297. File Output Operator
  298. compressed: false
  299. GlobalTableId: 0
  300. table:
  301. input format: org.apache.hadoop.mapred.SequenceFileInputFormat
  302. output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat
  303. Stage: Stage-2
  304. Map Reduce
  305. Alias -> Map Operator Tree:
  306. file:/tmp/sdong/hive_2011-02-10_17-05-15_949_4211046763459932826/-mr-10002
  307. Reduce Output Operator
  308. key expressions:
  309. expr: _col0
  310. type: int
  311. expr: _col1
  312. type: string
  313. sort order: ++
  314. tag: -1
  315. value expressions:
  316. expr: _col0
  317. type: int
  318. expr: _col1
  319. type: string
  320. Reduce Operator Tree:
  321. Extract
  322. File Output Operator
  323. compressed: false
  324. GlobalTableId: 0
  325. table:
  326. input format: org.apache.hadoop.mapred.TextInputFormat
  327. output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
  328. Stage: Stage-0
  329. Fetch Operator
  330. limit: -1
  331. PREHOOK: query: select * from t2 a left semi join t1 b on b.key=a.key sort by a.key, a.value
  332. PREHOOK: type: QUERY
  333. PREHOOK: Input: default@t1
  334. PREHOOK: Input: default@t2
  335. PREHOOK: Output: file:/tmp/sdong/hive_2011-02-10_17-05-16_042_8329878039830895731/-mr-10000
  336. POSTHOOK: query: select * from t2 a left semi join t1 b on b.key=a.key sort by a.key, a.value
  337. POSTHOOK: type: QUERY
  338. POSTHOOK: Input: default@t1
  339. POSTHOOK: Input: default@t2
  340. POSTHOOK: Output: file:/tmp/sdong/hive_2011-02-10_17-05-16_042_8329878039830895731/-mr-10000
  341. 0 val_0
  342. 0 val_0
  343. 0 val_0
  344. 4 val_2
  345. 8 val_4
  346. 10 val_5
  347. 10 val_5
  348. 10 val_5
  349. PREHOOK: query: explain select * from t1 a left semi join t4 b on b.key=a.key sort by a.key, a.value
  350. PREHOOK: type: QUERY
  351. POSTHOOK: query: explain select * from t1 a left semi join t4 b on b.key=a.key sort by a.key, a.value
  352. POSTHOOK: type: QUERY
  353. ABSTRACT SYNTAX TREE:
  354. (TOK_QUERY (TOK_FROM (TOK_LEFTSEMIJOIN (TOK_TABREF (TOK_TABNAME t1) a) (TOK_TABREF (TOK_TABNAME t4) b) (= (. (TOK_TABLE_OR_COL b) key) (. (TOK_TABLE_OR_COL a) key)))) (TOK_INSERT (TOK_DESTINATION (TOK_DIR TOK_TMP_FILE)) (TOK_SELECT (TOK_SELEXPR TOK_ALLCOLREF)) (TOK_SORTBY (TOK_TABSORTCOLNAMEASC (. (TOK_TABLE_OR_COL a) key)) (TOK_TABSORTCOLNAMEASC (. (TOK_TABLE_OR_COL a) value)))))
  355. STAGE DEPENDENCIES:
  356. Stage-1 is a root stage
  357. Stage-2 depends on stages: Stage-1
  358. Stage-0 is a root stage
  359. STAGE PLANS:
  360. Stage: Stage-1
  361. Map Reduce
  362. Alias -> Map Operator Tree:
  363. a
  364. TableScan
  365. alias: a
  366. Reduce Output Operator
  367. key expressions:
  368. expr: key
  369. type: int
  370. sort order: +
  371. Map-reduce partition columns:
  372. expr: key
  373. type: int
  374. tag: 0
  375. value expressions:
  376. expr: key
  377. type: int
  378. expr: value
  379. type: string
  380. b
  381. TableScan
  382. alias: b
  383. Select Operator
  384. expressions:
  385. expr: key
  386. type: int
  387. outputColumnNames: key
  388. Group By Operator
  389. bucketGroup: false
  390. keys:
  391. expr: key
  392. type: int
  393. mode: hash
  394. outputColumnNames: _col0
  395. Reduce Output Operator
  396. key expressions:
  397. expr: _col0
  398. type: int
  399. sort order: +
  400. Map-reduce partition columns:
  401. expr: _col0
  402. type: int
  403. tag: 1
  404. Reduce Operator Tree:
  405. Join Operator
  406. condition map:
  407. Left Semi Join 0 to 1
  408. condition expressions:
  409. 0 {VALUE._col0} {VALUE._col1}
  410. 1
  411. handleSkewJoin: false
  412. outputColumnNames: _col0, _col1
  413. Select Operator
  414. expressions:
  415. expr: _col0
  416. type: int
  417. expr: _col1
  418. type: string
  419. outputColumnNames: _col0, _col1
  420. File Output Operator
  421. compressed: false
  422. GlobalTableId: 0
  423. table:
  424. input format: org.apache.hadoop.mapred.SequenceFileInputFormat
  425. output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat
  426. Stage: Stage-2
  427. Map Reduce
  428. Alias -> Map Operator Tree:
  429. file:/tmp/sdong/hive_2011-02-10_17-05-22_786_6856730491579709518/-mr-10002
  430. Reduce Output Operator
  431. key expressions:
  432. expr: _col0
  433. type: int
  434. expr: _col1
  435. type: string
  436. sort order: ++
  437. tag: -1
  438. value expressions:
  439. expr: _col0
  440. type: int
  441. expr: _col1
  442. type: string
  443. Reduce Operator Tree:
  444. Extract
  445. File Output Operator
  446. compressed: false
  447. GlobalTableId: 0
  448. table:
  449. input format: org.apache.hadoop.mapred.TextInputFormat
  450. output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
  451. Stage: Stage-0
  452. Fetch Operator
  453. limit: -1
  454. PREHOOK: query: select * from t1 a left semi join t4 b on b.key=a.key sort by a.key, a.value
  455. PREHOOK: type: QUERY
  456. PREHOOK: Input: default@t1
  457. PREHOOK: Input: default@t4
  458. PREHOOK: Output: file:/tmp/sdong/hive_2011-02-10_17-05-22_880_1665353720432910838/-mr-10000
  459. POSTHOOK: query: select * from t1 a left semi join t4 b on b.key=a.key sort by a.key, a.value
  460. POSTHOOK: type: QUERY
  461. POSTHOOK: Input: default@t1
  462. POSTHOOK: Input: default@t4
  463. POSTHOOK: Output: file:/tmp/sdong/hive_2011-02-10_17-05-22_880_1665353720432910838/-mr-10000
  464. PREHOOK: query: explain select a.value from t1 a left semi join t3 b on (b.key = a.key and b.key < '15') sort by a.value
  465. PREHOOK: type: QUERY
  466. POSTHOOK: query: explain select a.value from t1 a left semi join t3 b on (b.key = a.key and b.key < '15') sort by a.value
  467. POSTHOOK: type: QUERY
  468. ABSTRACT SYNTAX TREE:
  469. (TOK_QUERY (TOK_FROM (TOK_LEFTSEMIJOIN (TOK_TABREF (TOK_TABNAME t1) a) (TOK_TABREF (TOK_TABNAME t3) b) (and (= (. (TOK_TABLE_OR_COL b) key) (. (TOK_TABLE_OR_COL a) key)) (< (. (TOK_TABLE_OR_COL b) key) '15')))) (TOK_INSERT (TOK_DESTINATION (TOK_DIR TOK_TMP_FILE)) (TOK_SELECT (TOK_SELEXPR (. (TOK_TABLE_OR_COL a) value))) (TOK_SORTBY (TOK_TABSORTCOLNAMEASC (. (TOK_TABLE_OR_COL a) value)))))
  470. STAGE DEPENDENCIES:
  471. Stage-1 is a root stage
  472. Stage-2 depends on stages: Stage-1
  473. Stage-0 is a root stage
  474. STAGE PLANS:
  475. Stage: Stage-1
  476. Map Reduce
  477. Alias -> Map Operator Tree:
  478. a
  479. TableScan
  480. alias: a
  481. Reduce Output Operator
  482. key expressions:
  483. expr: key
  484. type: int
  485. sort order: +
  486. Map-reduce partition columns:
  487. expr: key
  488. type: int
  489. tag: 0
  490. value expressions:
  491. expr: value
  492. type: string
  493. b
  494. TableScan
  495. alias: b
  496. Filter Operator
  497. predicate:
  498. expr: (key < '15')
  499. type: boolean
  500. 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

Large files files are truncated, but you can click here to view the full file