PageRenderTime 54ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

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

#
text | 578 lines | 558 code | 20 blank | 0 comment | 0 complexity | e4c18b94fe7a0fdf73e050a48b434b74 MD5 | raw file
Possible License(s): Apache-2.0, BSD-3-Clause, JSON, CPL-1.0
  1. PREHOOK: query: create table abcd (a int, b int, c int, d int)
  2. PREHOOK: type: CREATETABLE
  3. POSTHOOK: query: create table abcd (a int, b int, c int, d int)
  4. POSTHOOK: type: CREATETABLE
  5. POSTHOOK: Output: default@abcd
  6. PREHOOK: query: LOAD DATA LOCAL INPATH '../data/files/in4.txt' INTO TABLE abcd
  7. PREHOOK: type: LOAD
  8. PREHOOK: Output: default@abcd
  9. POSTHOOK: query: LOAD DATA LOCAL INPATH '../data/files/in4.txt' INTO TABLE abcd
  10. POSTHOOK: type: LOAD
  11. POSTHOOK: Output: default@abcd
  12. PREHOOK: query: select * from abcd
  13. PREHOOK: type: QUERY
  14. PREHOOK: Input: default@abcd
  15. PREHOOK: Output: file:/var/folders/67/67R3POPtF90VG63KSmCbcU++F0U/-Tmp-/krishnak/hive_2011-03-20_22-46-53_458_612862284528268304/-mr-10000
  16. POSTHOOK: query: select * from abcd
  17. POSTHOOK: type: QUERY
  18. POSTHOOK: Input: default@abcd
  19. POSTHOOK: Output: file:/var/folders/67/67R3POPtF90VG63KSmCbcU++F0U/-Tmp-/krishnak/hive_2011-03-20_22-46-53_458_612862284528268304/-mr-10000
  20. NULL 35 23 6
  21. 10 1000 50 1
  22. 100 100 10 3
  23. 12 NULL 80 2
  24. 10 100 NULL 5
  25. 10 100 45 4
  26. 12 100 75 7
  27. PREHOOK: query: explain select a, count(distinct b), count(distinct c), sum(d) from abcd group by a
  28. PREHOOK: type: QUERY
  29. POSTHOOK: query: explain select a, count(distinct b), count(distinct c), sum(d) from abcd group by a
  30. POSTHOOK: type: QUERY
  31. ABSTRACT SYNTAX TREE:
  32. (TOK_QUERY (TOK_FROM (TOK_TABREF (TOK_TABNAME abcd))) (TOK_INSERT (TOK_DESTINATION (TOK_DIR TOK_TMP_FILE)) (TOK_SELECT (TOK_SELEXPR (TOK_TABLE_OR_COL a)) (TOK_SELEXPR (TOK_FUNCTIONDI count (TOK_TABLE_OR_COL b))) (TOK_SELEXPR (TOK_FUNCTIONDI count (TOK_TABLE_OR_COL c))) (TOK_SELEXPR (TOK_FUNCTION sum (TOK_TABLE_OR_COL d)))) (TOK_GROUPBY (TOK_TABLE_OR_COL a))))
  33. STAGE DEPENDENCIES:
  34. Stage-1 is a root stage
  35. Stage-0 is a root stage
  36. STAGE PLANS:
  37. Stage: Stage-1
  38. Map Reduce
  39. Alias -> Map Operator Tree:
  40. abcd
  41. TableScan
  42. alias: abcd
  43. Select Operator
  44. expressions:
  45. expr: a
  46. type: int
  47. expr: b
  48. type: int
  49. expr: c
  50. type: int
  51. expr: d
  52. type: int
  53. outputColumnNames: a, b, c, d
  54. Group By Operator
  55. aggregations:
  56. expr: count(DISTINCT b)
  57. expr: count(DISTINCT c)
  58. expr: sum(d)
  59. bucketGroup: false
  60. keys:
  61. expr: a
  62. type: int
  63. expr: b
  64. type: int
  65. expr: c
  66. type: int
  67. mode: hash
  68. outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5
  69. Reduce Output Operator
  70. key expressions:
  71. expr: _col0
  72. type: int
  73. expr: _col1
  74. type: int
  75. expr: _col2
  76. type: int
  77. sort order: +++
  78. Map-reduce partition columns:
  79. expr: _col0
  80. type: int
  81. tag: -1
  82. value expressions:
  83. expr: _col3
  84. type: bigint
  85. expr: _col4
  86. type: bigint
  87. expr: _col5
  88. type: bigint
  89. Reduce Operator Tree:
  90. Group By Operator
  91. aggregations:
  92. expr: count(DISTINCT KEY._col1:0._col0)
  93. expr: count(DISTINCT KEY._col1:1._col0)
  94. expr: sum(VALUE._col2)
  95. bucketGroup: false
  96. keys:
  97. expr: KEY._col0
  98. type: int
  99. mode: mergepartial
  100. outputColumnNames: _col0, _col1, _col2, _col3
  101. Select Operator
  102. expressions:
  103. expr: _col0
  104. type: int
  105. expr: _col1
  106. type: bigint
  107. expr: _col2
  108. type: bigint
  109. expr: _col3
  110. type: bigint
  111. outputColumnNames: _col0, _col1, _col2, _col3
  112. File Output Operator
  113. compressed: false
  114. GlobalTableId: 0
  115. table:
  116. input format: org.apache.hadoop.mapred.TextInputFormat
  117. output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
  118. Stage: Stage-0
  119. Fetch Operator
  120. limit: -1
  121. PREHOOK: query: select a, count(distinct b), count(distinct c), sum(d) from abcd group by a
  122. PREHOOK: type: QUERY
  123. PREHOOK: Input: default@abcd
  124. PREHOOK: Output: file:/var/folders/67/67R3POPtF90VG63KSmCbcU++F0U/-Tmp-/krishnak/hive_2011-03-20_22-46-54_530_5497111678274590113/-mr-10000
  125. POSTHOOK: query: select a, count(distinct b), count(distinct c), sum(d) from abcd group by a
  126. POSTHOOK: type: QUERY
  127. POSTHOOK: Input: default@abcd
  128. POSTHOOK: Output: file:/var/folders/67/67R3POPtF90VG63KSmCbcU++F0U/-Tmp-/krishnak/hive_2011-03-20_22-46-54_530_5497111678274590113/-mr-10000
  129. NULL 1 1 6
  130. 10 2 2 10
  131. 12 1 2 9
  132. 100 1 1 3
  133. PREHOOK: query: explain select count(1), count(*), count(a), count(b), count(c), count(d), count(distinct a), count(distinct b), count(distinct c), count(distinct d), count(distinct a,b), count(distinct b,c), count(distinct c,d), count(distinct a,d), count(distinct a,c), count(distinct b,d), count(distinct a,b,c), count(distinct b,c,d), count(distinct a,c,d), count(distinct a,b,d), count(distinct a,b,c,d) from abcd
  134. PREHOOK: type: QUERY
  135. POSTHOOK: query: explain select count(1), count(*), count(a), count(b), count(c), count(d), count(distinct a), count(distinct b), count(distinct c), count(distinct d), count(distinct a,b), count(distinct b,c), count(distinct c,d), count(distinct a,d), count(distinct a,c), count(distinct b,d), count(distinct a,b,c), count(distinct b,c,d), count(distinct a,c,d), count(distinct a,b,d), count(distinct a,b,c,d) from abcd
  136. POSTHOOK: type: QUERY
  137. ABSTRACT SYNTAX TREE:
  138. (TOK_QUERY (TOK_FROM (TOK_TABREF (TOK_TABNAME abcd))) (TOK_INSERT (TOK_DESTINATION (TOK_DIR TOK_TMP_FILE)) (TOK_SELECT (TOK_SELEXPR (TOK_FUNCTION count 1)) (TOK_SELEXPR (TOK_FUNCTIONSTAR count)) (TOK_SELEXPR (TOK_FUNCTION count (TOK_TABLE_OR_COL a))) (TOK_SELEXPR (TOK_FUNCTION count (TOK_TABLE_OR_COL b))) (TOK_SELEXPR (TOK_FUNCTION count (TOK_TABLE_OR_COL c))) (TOK_SELEXPR (TOK_FUNCTION count (TOK_TABLE_OR_COL d))) (TOK_SELEXPR (TOK_FUNCTIONDI count (TOK_TABLE_OR_COL a))) (TOK_SELEXPR (TOK_FUNCTIONDI count (TOK_TABLE_OR_COL b))) (TOK_SELEXPR (TOK_FUNCTIONDI count (TOK_TABLE_OR_COL c))) (TOK_SELEXPR (TOK_FUNCTIONDI count (TOK_TABLE_OR_COL d))) (TOK_SELEXPR (TOK_FUNCTIONDI count (TOK_TABLE_OR_COL a) (TOK_TABLE_OR_COL b))) (TOK_SELEXPR (TOK_FUNCTIONDI count (TOK_TABLE_OR_COL b) (TOK_TABLE_OR_COL c))) (TOK_SELEXPR (TOK_FUNCTIONDI count (TOK_TABLE_OR_COL c) (TOK_TABLE_OR_COL d))) (TOK_SELEXPR (TOK_FUNCTIONDI count (TOK_TABLE_OR_COL a) (TOK_TABLE_OR_COL d))) (TOK_SELEXPR (TOK_FUNCTIONDI count (TOK_TABLE_OR_COL a) (TOK_TABLE_OR_COL c))) (TOK_SELEXPR (TOK_FUNCTIONDI count (TOK_TABLE_OR_COL b) (TOK_TABLE_OR_COL d))) (TOK_SELEXPR (TOK_FUNCTIONDI count (TOK_TABLE_OR_COL a) (TOK_TABLE_OR_COL b) (TOK_TABLE_OR_COL c))) (TOK_SELEXPR (TOK_FUNCTIONDI count (TOK_TABLE_OR_COL b) (TOK_TABLE_OR_COL c) (TOK_TABLE_OR_COL d))) (TOK_SELEXPR (TOK_FUNCTIONDI count (TOK_TABLE_OR_COL a) (TOK_TABLE_OR_COL c) (TOK_TABLE_OR_COL d))) (TOK_SELEXPR (TOK_FUNCTIONDI count (TOK_TABLE_OR_COL a) (TOK_TABLE_OR_COL b) (TOK_TABLE_OR_COL d))) (TOK_SELEXPR (TOK_FUNCTIONDI count (TOK_TABLE_OR_COL a) (TOK_TABLE_OR_COL b) (TOK_TABLE_OR_COL c) (TOK_TABLE_OR_COL d))))))
  139. STAGE DEPENDENCIES:
  140. Stage-1 is a root stage
  141. Stage-0 is a root stage
  142. STAGE PLANS:
  143. Stage: Stage-1
  144. Map Reduce
  145. Alias -> Map Operator Tree:
  146. abcd
  147. TableScan
  148. alias: abcd
  149. Select Operator
  150. expressions:
  151. expr: a
  152. type: int
  153. expr: b
  154. type: int
  155. expr: c
  156. type: int
  157. expr: d
  158. type: int
  159. outputColumnNames: a, b, c, d
  160. Group By Operator
  161. aggregations:
  162. expr: count(1)
  163. expr: count()
  164. expr: count(a)
  165. expr: count(b)
  166. expr: count(c)
  167. expr: count(d)
  168. expr: count(DISTINCT a)
  169. expr: count(DISTINCT b)
  170. expr: count(DISTINCT c)
  171. expr: count(DISTINCT d)
  172. expr: count(DISTINCT a, b)
  173. expr: count(DISTINCT b, c)
  174. expr: count(DISTINCT c, d)
  175. expr: count(DISTINCT a, d)
  176. expr: count(DISTINCT a, c)
  177. expr: count(DISTINCT b, d)
  178. expr: count(DISTINCT a, b, c)
  179. expr: count(DISTINCT b, c, d)
  180. expr: count(DISTINCT a, c, d)
  181. expr: count(DISTINCT a, b, d)
  182. expr: count(DISTINCT a, b, c, d)
  183. bucketGroup: false
  184. keys:
  185. expr: a
  186. type: int
  187. expr: b
  188. type: int
  189. expr: c
  190. type: int
  191. expr: d
  192. type: int
  193. mode: hash
  194. outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13, _col14, _col15, _col16, _col17, _col18, _col19, _col20, _col21, _col22, _col23, _col24
  195. Reduce Output Operator
  196. key expressions:
  197. expr: _col0
  198. type: int
  199. expr: _col1
  200. type: int
  201. expr: _col2
  202. type: int
  203. expr: _col3
  204. type: int
  205. sort order: ++++
  206. tag: -1
  207. value expressions:
  208. expr: _col4
  209. type: bigint
  210. expr: _col5
  211. type: bigint
  212. expr: _col6
  213. type: bigint
  214. expr: _col7
  215. type: bigint
  216. expr: _col8
  217. type: bigint
  218. expr: _col9
  219. type: bigint
  220. expr: _col10
  221. type: bigint
  222. expr: _col11
  223. type: bigint
  224. expr: _col12
  225. type: bigint
  226. expr: _col13
  227. type: bigint
  228. expr: _col14
  229. type: bigint
  230. expr: _col15
  231. type: bigint
  232. expr: _col16
  233. type: bigint
  234. expr: _col17
  235. type: bigint
  236. expr: _col18
  237. type: bigint
  238. expr: _col19
  239. type: bigint
  240. expr: _col20
  241. type: bigint
  242. expr: _col21
  243. type: bigint
  244. expr: _col22
  245. type: bigint
  246. expr: _col23
  247. type: bigint
  248. expr: _col24
  249. type: bigint
  250. Reduce Operator Tree:
  251. Group By Operator
  252. aggregations:
  253. expr: count(VALUE._col0)
  254. expr: count(VALUE._col1)
  255. expr: count(VALUE._col2)
  256. expr: count(VALUE._col3)
  257. expr: count(VALUE._col4)
  258. expr: count(VALUE._col5)
  259. expr: count(DISTINCT KEY._col0:0._col0)
  260. expr: count(DISTINCT KEY._col0:1._col0)
  261. expr: count(DISTINCT KEY._col0:2._col0)
  262. expr: count(DISTINCT KEY._col0:3._col0)
  263. expr: count(DISTINCT KEY._col0:4._col0, KEY._col0:4._col1)
  264. expr: count(DISTINCT KEY._col0:5._col0, KEY._col0:5._col1)
  265. expr: count(DISTINCT KEY._col0:6._col0, KEY._col0:6._col1)
  266. expr: count(DISTINCT KEY._col0:7._col0, KEY._col0:7._col1)
  267. expr: count(DISTINCT KEY._col0:8._col0, KEY._col0:8._col1)
  268. expr: count(DISTINCT KEY._col0:9._col0, KEY._col0:9._col1)
  269. expr: count(DISTINCT KEY._col0:10._col0, KEY._col0:10._col1, KEY._col0:10._col2)
  270. expr: count(DISTINCT KEY._col0:11._col0, KEY._col0:11._col1, KEY._col0:11._col2)
  271. expr: count(DISTINCT KEY._col0:12._col0, KEY._col0:12._col1, KEY._col0:12._col2)
  272. expr: count(DISTINCT KEY._col0:13._col0, KEY._col0:13._col1, KEY._col0:13._col2)
  273. expr: count(DISTINCT KEY._col0:14._col0, KEY._col0:14._col1, KEY._col0:14._col2, KEY._col0:14._col3)
  274. bucketGroup: false
  275. mode: mergepartial
  276. outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13, _col14, _col15, _col16, _col17, _col18, _col19, _col20
  277. Select Operator
  278. expressions:
  279. expr: _col0
  280. type: bigint
  281. expr: _col1
  282. type: bigint
  283. expr: _col2
  284. type: bigint
  285. expr: _col3
  286. type: bigint
  287. expr: _col4
  288. type: bigint
  289. expr: _col5
  290. type: bigint
  291. expr: _col6
  292. type: bigint
  293. expr: _col7
  294. type: bigint
  295. expr: _col8
  296. type: bigint
  297. expr: _col9
  298. type: bigint
  299. expr: _col10
  300. type: bigint
  301. expr: _col11
  302. type: bigint
  303. expr: _col12
  304. type: bigint
  305. expr: _col13
  306. type: bigint
  307. expr: _col14
  308. type: bigint
  309. expr: _col15
  310. type: bigint
  311. expr: _col16
  312. type: bigint
  313. expr: _col17
  314. type: bigint
  315. expr: _col18
  316. type: bigint
  317. expr: _col19
  318. type: bigint
  319. expr: _col20
  320. type: bigint
  321. outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13, _col14, _col15, _col16, _col17, _col18, _col19, _col20
  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 count(1), count(*), count(a), count(b), count(c), count(d), count(distinct a), count(distinct b), count(distinct c), count(distinct d), count(distinct a,b), count(distinct b,c), count(distinct c,d), count(distinct a,d), count(distinct a,c), count(distinct b,d), count(distinct a,b,c), count(distinct b,c,d), count(distinct a,c,d), count(distinct a,b,d), count(distinct a,b,c,d) from abcd
  332. PREHOOK: type: QUERY
  333. PREHOOK: Input: default@abcd
  334. PREHOOK: Output: file:/var/folders/67/67R3POPtF90VG63KSmCbcU++F0U/-Tmp-/krishnak/hive_2011-03-20_22-47-01_430_3407527654800696294/-mr-10000
  335. POSTHOOK: query: select count(1), count(*), count(a), count(b), count(c), count(d), count(distinct a), count(distinct b), count(distinct c), count(distinct d), count(distinct a,b), count(distinct b,c), count(distinct c,d), count(distinct a,d), count(distinct a,c), count(distinct b,d), count(distinct a,b,c), count(distinct b,c,d), count(distinct a,c,d), count(distinct a,b,d), count(distinct a,b,c,d) from abcd
  336. POSTHOOK: type: QUERY
  337. POSTHOOK: Input: default@abcd
  338. POSTHOOK: Output: file:/var/folders/67/67R3POPtF90VG63KSmCbcU++F0U/-Tmp-/krishnak/hive_2011-03-20_22-47-01_430_3407527654800696294/-mr-10000
  339. 7 7 6 6 6 7 3 3 6 7 4 5 6 6 5 6 4 5 5 5 4
  340. PREHOOK: query: explain select a, count(distinct b), count(distinct c), sum(d) from abcd group by a
  341. PREHOOK: type: QUERY
  342. POSTHOOK: query: explain select a, count(distinct b), count(distinct c), sum(d) from abcd group by a
  343. POSTHOOK: type: QUERY
  344. ABSTRACT SYNTAX TREE:
  345. (TOK_QUERY (TOK_FROM (TOK_TABREF (TOK_TABNAME abcd))) (TOK_INSERT (TOK_DESTINATION (TOK_DIR TOK_TMP_FILE)) (TOK_SELECT (TOK_SELEXPR (TOK_TABLE_OR_COL a)) (TOK_SELEXPR (TOK_FUNCTIONDI count (TOK_TABLE_OR_COL b))) (TOK_SELEXPR (TOK_FUNCTIONDI count (TOK_TABLE_OR_COL c))) (TOK_SELEXPR (TOK_FUNCTION sum (TOK_TABLE_OR_COL d)))) (TOK_GROUPBY (TOK_TABLE_OR_COL a))))
  346. STAGE DEPENDENCIES:
  347. Stage-1 is a root stage
  348. Stage-0 is a root stage
  349. STAGE PLANS:
  350. Stage: Stage-1
  351. Map Reduce
  352. Alias -> Map Operator Tree:
  353. abcd
  354. TableScan
  355. alias: abcd
  356. Select Operator
  357. expressions:
  358. expr: a
  359. type: int
  360. expr: b
  361. type: int
  362. expr: c
  363. type: int
  364. expr: d
  365. type: int
  366. outputColumnNames: a, b, c, d
  367. Reduce Output Operator
  368. key expressions:
  369. expr: a
  370. type: int
  371. expr: b
  372. type: int
  373. expr: c
  374. type: int
  375. sort order: +++
  376. Map-reduce partition columns:
  377. expr: a
  378. type: int
  379. tag: -1
  380. value expressions:
  381. expr: d
  382. type: int
  383. Reduce Operator Tree:
  384. Group By Operator
  385. aggregations:
  386. expr: count(DISTINCT KEY._col1:0._col0)
  387. expr: count(DISTINCT KEY._col1:1._col0)
  388. expr: sum(VALUE._col0)
  389. bucketGroup: false
  390. keys:
  391. expr: KEY._col0
  392. type: int
  393. mode: complete
  394. outputColumnNames: _col0, _col1, _col2, _col3
  395. Select Operator
  396. expressions:
  397. expr: _col0
  398. type: int
  399. expr: _col1
  400. type: bigint
  401. expr: _col2
  402. type: bigint
  403. expr: _col3
  404. type: bigint
  405. outputColumnNames: _col0, _col1, _col2, _col3
  406. File Output Operator
  407. compressed: false
  408. GlobalTableId: 0
  409. table:
  410. input format: org.apache.hadoop.mapred.TextInputFormat
  411. output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
  412. Stage: Stage-0
  413. Fetch Operator
  414. limit: -1
  415. PREHOOK: query: select a, count(distinct b), count(distinct c), sum(d) from abcd group by a
  416. PREHOOK: type: QUERY
  417. PREHOOK: Input: default@abcd
  418. PREHOOK: Output: file:/var/folders/67/67R3POPtF90VG63KSmCbcU++F0U/-Tmp-/krishnak/hive_2011-03-20_22-47-10_928_4191678549398242821/-mr-10000
  419. POSTHOOK: query: select a, count(distinct b), count(distinct c), sum(d) from abcd group by a
  420. POSTHOOK: type: QUERY
  421. POSTHOOK: Input: default@abcd
  422. POSTHOOK: Output: file:/var/folders/67/67R3POPtF90VG63KSmCbcU++F0U/-Tmp-/krishnak/hive_2011-03-20_22-47-10_928_4191678549398242821/-mr-10000
  423. NULL 1 1 6
  424. 10 2 2 10
  425. 12 1 2 9
  426. 100 1 1 3
  427. PREHOOK: query: explain select count(1), count(*), count(a), count(b), count(c), count(d), count(distinct a), count(distinct b), count(distinct c), count(distinct d), count(distinct a,b), count(distinct b,c), count(distinct c,d), count(distinct a,d), count(distinct a,c), count(distinct b,d), count(distinct a,b,c), count(distinct b,c,d), count(distinct a,c,d), count(distinct a,b,d), count(distinct a,b,c,d) from abcd
  428. PREHOOK: type: QUERY
  429. POSTHOOK: query: explain select count(1), count(*), count(a), count(b), count(c), count(d), count(distinct a), count(distinct b), count(distinct c), count(distinct d), count(distinct a,b), count(distinct b,c), count(distinct c,d), count(distinct a,d), count(distinct a,c), count(distinct b,d), count(distinct a,b,c), count(distinct b,c,d), count(distinct a,c,d), count(distinct a,b,d), count(distinct a,b,c,d) from abcd
  430. POSTHOOK: type: QUERY
  431. ABSTRACT SYNTAX TREE:
  432. (TOK_QUERY (TOK_FROM (TOK_TABREF (TOK_TABNAME abcd))) (TOK_INSERT (TOK_DESTINATION (TOK_DIR TOK_TMP_FILE)) (TOK_SELECT (TOK_SELEXPR (TOK_FUNCTION count 1)) (TOK_SELEXPR (TOK_FUNCTIONSTAR count)) (TOK_SELEXPR (TOK_FUNCTION count (TOK_TABLE_OR_COL a))) (TOK_SELEXPR (TOK_FUNCTION count (TOK_TABLE_OR_COL b))) (TOK_SELEXPR (TOK_FUNCTION count (TOK_TABLE_OR_COL c))) (TOK_SELEXPR (TOK_FUNCTION count (TOK_TABLE_OR_COL d))) (TOK_SELEXPR (TOK_FUNCTIONDI count (TOK_TABLE_OR_COL a))) (TOK_SELEXPR (TOK_FUNCTIONDI count (TOK_TABLE_OR_COL b))) (TOK_SELEXPR (TOK_FUNCTIONDI count (TOK_TABLE_OR_COL c))) (TOK_SELEXPR (TOK_FUNCTIONDI count (TOK_TABLE_OR_COL d))) (TOK_SELEXPR (TOK_FUNCTIONDI count (TOK_TABLE_OR_COL a) (TOK_TABLE_OR_COL b))) (TOK_SELEXPR (TOK_FUNCTIONDI count (TOK_TABLE_OR_COL b) (TOK_TABLE_OR_COL c))) (TOK_SELEXPR (TOK_FUNCTIONDI count (TOK_TABLE_OR_COL c) (TOK_TABLE_OR_COL d))) (TOK_SELEXPR (TOK_FUNCTIONDI count (TOK_TABLE_OR_COL a) (TOK_TABLE_OR_COL d))) (TOK_SELEXPR (TOK_FUNCTIONDI count (TOK_TABLE_OR_COL a) (TOK_TABLE_OR_COL c))) (TOK_SELEXPR (TOK_FUNCTIONDI count (TOK_TABLE_OR_COL b) (TOK_TABLE_OR_COL d))) (TOK_SELEXPR (TOK_FUNCTIONDI count (TOK_TABLE_OR_COL a) (TOK_TABLE_OR_COL b) (TOK_TABLE_OR_COL c))) (TOK_SELEXPR (TOK_FUNCTIONDI count (TOK_TABLE_OR_COL b) (TOK_TABLE_OR_COL c) (TOK_TABLE_OR_COL d))) (TOK_SELEXPR (TOK_FUNCTIONDI count (TOK_TABLE_OR_COL a) (TOK_TABLE_OR_COL c) (TOK_TABLE_OR_COL d))) (TOK_SELEXPR (TOK_FUNCTIONDI count (TOK_TABLE_OR_COL a) (TOK_TABLE_OR_COL b) (TOK_TABLE_OR_COL d))) (TOK_SELEXPR (TOK_FUNCTIONDI count (TOK_TABLE_OR_COL a) (TOK_TABLE_OR_COL b) (TOK_TABLE_OR_COL c) (TOK_TABLE_OR_COL d))))))
  433. STAGE DEPENDENCIES:
  434. Stage-1 is a root stage
  435. Stage-0 is a root stage
  436. STAGE PLANS:
  437. Stage: Stage-1
  438. Map Reduce
  439. Alias -> Map Operator Tree:
  440. abcd
  441. TableScan
  442. alias: abcd
  443. Select Operator
  444. expressions:
  445. expr: a
  446. type: int
  447. expr: b
  448. type: int
  449. expr: c
  450. type: int
  451. expr: d
  452. type: int
  453. outputColumnNames: a, b, c, d
  454. Reduce Output Operator
  455. key expressions:
  456. expr: a
  457. type: int
  458. expr: b
  459. type: int
  460. expr: c
  461. type: int
  462. expr: d
  463. type: int
  464. sort order: ++++
  465. tag: -1
  466. value expressions:
  467. expr: 1
  468. type: int
  469. Reduce Operator Tree:
  470. Group By Operator
  471. aggregations:
  472. expr: count(VALUE._col0)
  473. expr: count()
  474. expr: count(KEY._col0:14._col0)
  475. expr: count(KEY._col0:14._col1)
  476. expr: count(KEY._col0:14._col2)
  477. expr: count(KEY._col0:14._col3)
  478. expr: count(DISTINCT KEY._col0:0._col0)
  479. expr: count(DISTINCT KEY._col0:1._col0)
  480. expr: count(DISTINCT KEY._col0:2._col0)
  481. expr: count(DISTINCT KEY._col0:3._col0)
  482. expr: count(DISTINCT KEY._col0:4._col0, KEY._col0:4._col1)
  483. expr: count(DISTINCT KEY._col0:5._col0, KEY._col0:5._col1)
  484. expr: count(DISTINCT KEY._col0:6._col0, KEY._col0:6._col1)
  485. expr: count(DISTINCT KEY._col0:7._col0, KEY._col0:7._col1)
  486. expr: count(DISTINCT KEY._col0:8._col0, KEY._col0:8._col1)
  487. expr: count(DISTINCT KEY._col0:9._col0, KEY._col0:9._col1)
  488. expr: count(DISTINCT KEY._col0:10._col0, KEY._col0:10._col1, KEY._col0:10._col2)
  489. expr: count(DISTINCT KEY._col0:11._col0, KEY._col0:11._col1, KEY._col0:11._col2)
  490. expr: count(DISTINCT KEY._col0:12._col0, KEY._col0:12._col1, KEY._col0:12._col2)
  491. expr: count(DISTINCT KEY._col0:13._col0, KEY._col0:13._col1, KEY._col0:13._col2)
  492. expr: count(DISTINCT KEY._col0:14._col0, KEY._col0:14._col1, KEY._col0:14._col2, KEY._col0:14._col3)
  493. bucketGroup: false
  494. mode: complete
  495. outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13, _col14, _col15, _col16, _col17, _col18, _col19, _col20
  496. Select Operator
  497. expressions:
  498. expr: _col0
  499. type: bigint
  500. expr: _col1
  501. type: bigint
  502. expr: _col2
  503. type: bigint
  504. expr: _col3
  505. type: bigint
  506. expr: _col4
  507. type: bigint
  508. expr: _col5
  509. type: bigint
  510. expr: _col6
  511. type: bigint
  512. expr: _col7
  513. type: bigint
  514. expr: _col8
  515. type: bigint
  516. expr: _col9
  517. type: bigint
  518. expr: _col10
  519. type: bigint
  520. expr: _col11
  521. type: bigint
  522. expr: _col12
  523. type: bigint
  524. expr: _col13
  525. type: bigint
  526. expr: _col14
  527. type: bigint
  528. expr: _col15
  529. type: bigint
  530. expr: _col16
  531. type: bigint
  532. expr: _col17
  533. type: bigint
  534. expr: _col18
  535. type: bigint
  536. expr: _col19
  537. type: bigint
  538. expr: _col20
  539. type: bigint
  540. outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13, _col14, _col15, _col16, _col17, _col18, _col19, _col20
  541. File Output Operator
  542. compressed: false
  543. GlobalTableId: 0
  544. table:
  545. input format: org.apache.hadoop.mapred.TextInputFormat
  546. output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
  547. Stage: Stage-0
  548. Fetch Operator
  549. limit: -1
  550. PREHOOK: query: select count(1), count(*), count(a), count(b), count(c), count(d), count(distinct a), count(distinct b), count(distinct c), count(distinct d), count(distinct a,b), count(distinct b,c), count(distinct c,d), count(distinct a,d), count(distinct a,c), count(distinct b,d), count(distinct a,b,c), count(distinct b,c,d), count(distinct a,c,d), count(distinct a,b,d), count(distinct a,b,c,d) from abcd
  551. PREHOOK: type: QUERY
  552. PREHOOK: Input: default@abcd
  553. PREHOOK: Output: file:/var/folders/67/67R3POPtF90VG63KSmCbcU++F0U/-Tmp-/krishnak/hive_2011-03-20_22-47-23_137_2355783462946349645/-mr-10000
  554. POSTHOOK: query: select count(1), count(*), count(a), count(b), count(c), count(d), count(distinct a), count(distinct b), count(distinct c), count(distinct d), count(distinct a,b), count(distinct b,c), count(distinct c,d), count(distinct a,d), count(distinct a,c), count(distinct b,d), count(distinct a,b,c), count(distinct b,c,d), count(distinct a,c,d), count(distinct a,b,d), count(distinct a,b,c,d) from abcd
  555. POSTHOOK: type: QUERY
  556. POSTHOOK: Input: default@abcd
  557. POSTHOOK: Output: file:/var/folders/67/67R3POPtF90VG63KSmCbcU++F0U/-Tmp-/krishnak/hive_2011-03-20_22-47-23_137_2355783462946349645/-mr-10000
  558. 7 7 6 6 6 7 3 3 6 7 4 5 6 6 5 6 4 5 5 5 4