PageRenderTime 90ms CodeModel.GetById 5ms RepoModel.GetById 0ms app.codeStats 0ms

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

#
text | 390 lines | 383 code | 7 blank | 0 comment | 0 complexity | 05e0d492b36b22e8e6efbc8f4eb7a3a3 MD5 | raw file
Possible License(s): Apache-2.0, BSD-3-Clause, JSON, CPL-1.0
  1. PREHOOK: query: EXPLAIN EXTENDED
  2. FROM (
  3. FROM srcpart src
  4. SELECT TRANSFORM(src.ds, src.key, src.value)
  5. USING '/bin/cat' AS (ds, tkey, tvalue)
  6. WHERE src.ds = '2008-04-08'
  7. CLUSTER BY tkey
  8. ) tmap
  9. SELECT tmap.tkey, tmap.tvalue WHERE tmap.tkey < 100
  10. PREHOOK: type: QUERY
  11. POSTHOOK: query: EXPLAIN EXTENDED
  12. FROM (
  13. FROM srcpart src
  14. SELECT TRANSFORM(src.ds, src.key, src.value)
  15. USING '/bin/cat' AS (ds, tkey, tvalue)
  16. WHERE src.ds = '2008-04-08'
  17. CLUSTER BY tkey
  18. ) tmap
  19. SELECT tmap.tkey, tmap.tvalue WHERE tmap.tkey < 100
  20. POSTHOOK: type: QUERY
  21. ABSTRACT SYNTAX TREE:
  22. (TOK_QUERY (TOK_FROM (TOK_SUBQUERY (TOK_QUERY (TOK_FROM (TOK_TABREF (TOK_TABNAME srcpart) src)) (TOK_INSERT (TOK_DESTINATION (TOK_DIR TOK_TMP_FILE)) (TOK_SELECT (TOK_SELEXPR (TOK_TRANSFORM (TOK_EXPLIST (. (TOK_TABLE_OR_COL src) ds) (. (TOK_TABLE_OR_COL src) key) (. (TOK_TABLE_OR_COL src) value)) TOK_SERDE TOK_RECORDWRITER '/bin/cat' TOK_SERDE TOK_RECORDREADER (TOK_ALIASLIST ds tkey tvalue)))) (TOK_WHERE (= (. (TOK_TABLE_OR_COL src) ds) '2008-04-08')) (TOK_CLUSTERBY (TOK_TABLE_OR_COL tkey)))) tmap)) (TOK_INSERT (TOK_DESTINATION (TOK_DIR TOK_TMP_FILE)) (TOK_SELECT (TOK_SELEXPR (. (TOK_TABLE_OR_COL tmap) tkey)) (TOK_SELEXPR (. (TOK_TABLE_OR_COL tmap) tvalue))) (TOK_WHERE (< (. (TOK_TABLE_OR_COL tmap) tkey) 100))))
  23. STAGE DEPENDENCIES:
  24. Stage-1 is a root stage
  25. Stage-0 is a root stage
  26. STAGE PLANS:
  27. Stage: Stage-1
  28. Map Reduce
  29. Alias -> Map Operator Tree:
  30. tmap:src
  31. TableScan
  32. alias: src
  33. GatherStats: false
  34. Filter Operator
  35. isSamplingPred: false
  36. predicate:
  37. expr: (ds = '2008-04-08')
  38. type: boolean
  39. Select Operator
  40. expressions:
  41. expr: ds
  42. type: string
  43. expr: key
  44. type: string
  45. expr: value
  46. type: string
  47. outputColumnNames: _col0, _col1, _col2
  48. Transform Operator
  49. command: /bin/cat
  50. output info:
  51. input format: org.apache.hadoop.mapred.TextInputFormat
  52. output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
  53. properties:
  54. columns _col0,_col1,_col2
  55. columns.types string,string,string
  56. field.delim 9
  57. serialization.format 9
  58. Reduce Output Operator
  59. key expressions:
  60. expr: _col1
  61. type: string
  62. sort order: +
  63. Map-reduce partition columns:
  64. expr: _col1
  65. type: string
  66. tag: -1
  67. value expressions:
  68. expr: _col0
  69. type: string
  70. expr: _col1
  71. type: string
  72. expr: _col2
  73. type: string
  74. Needs Tagging: false
  75. Path -> Alias:
  76. pfile:/data/users/sdong/www/open-source-hive1/build/ql/test/data/warehouse/srcpart/ds=2008-04-08/hr=11 [tmap:src]
  77. pfile:/data/users/sdong/www/open-source-hive1/build/ql/test/data/warehouse/srcpart/ds=2008-04-08/hr=12 [tmap:src]
  78. Path -> Partition:
  79. pfile:/data/users/sdong/www/open-source-hive1/build/ql/test/data/warehouse/srcpart/ds=2008-04-08/hr=11
  80. Partition
  81. base file name: hr=11
  82. input format: org.apache.hadoop.mapred.TextInputFormat
  83. output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
  84. partition values:
  85. ds 2008-04-08
  86. hr 11
  87. properties:
  88. bucket_count -1
  89. columns key,value
  90. columns.types string:string
  91. file.inputformat org.apache.hadoop.mapred.TextInputFormat
  92. file.outputformat org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
  93. location pfile:/data/users/sdong/www/open-source-hive1/build/ql/test/data/warehouse/srcpart/ds=2008-04-08/hr=11
  94. name default.srcpart
  95. partition_columns ds/hr
  96. serialization.ddl struct srcpart { string key, string value}
  97. serialization.format 1
  98. serialization.lib org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe
  99. transient_lastDdlTime 1297386140
  100. serde: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe
  101. input format: org.apache.hadoop.mapred.TextInputFormat
  102. output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
  103. properties:
  104. bucket_count -1
  105. columns key,value
  106. columns.types string:string
  107. file.inputformat org.apache.hadoop.mapred.TextInputFormat
  108. file.outputformat org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
  109. location pfile:/data/users/sdong/www/open-source-hive1/build/ql/test/data/warehouse/srcpart
  110. name default.srcpart
  111. partition_columns ds/hr
  112. serialization.ddl struct srcpart { string key, string value}
  113. serialization.format 1
  114. serialization.lib org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe
  115. transient_lastDdlTime 1297386140
  116. serde: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe
  117. name: default.srcpart
  118. name: default.srcpart
  119. pfile:/data/users/sdong/www/open-source-hive1/build/ql/test/data/warehouse/srcpart/ds=2008-04-08/hr=12
  120. Partition
  121. base file name: hr=12
  122. input format: org.apache.hadoop.mapred.TextInputFormat
  123. output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
  124. partition values:
  125. ds 2008-04-08
  126. hr 12
  127. properties:
  128. bucket_count -1
  129. columns key,value
  130. columns.types string:string
  131. file.inputformat org.apache.hadoop.mapred.TextInputFormat
  132. file.outputformat org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
  133. location pfile:/data/users/sdong/www/open-source-hive1/build/ql/test/data/warehouse/srcpart/ds=2008-04-08/hr=12
  134. name default.srcpart
  135. partition_columns ds/hr
  136. serialization.ddl struct srcpart { string key, string value}
  137. serialization.format 1
  138. serialization.lib org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe
  139. transient_lastDdlTime 1297386140
  140. serde: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe
  141. input format: org.apache.hadoop.mapred.TextInputFormat
  142. output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
  143. properties:
  144. bucket_count -1
  145. columns key,value
  146. columns.types string:string
  147. file.inputformat org.apache.hadoop.mapred.TextInputFormat
  148. file.outputformat org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
  149. location pfile:/data/users/sdong/www/open-source-hive1/build/ql/test/data/warehouse/srcpart
  150. name default.srcpart
  151. partition_columns ds/hr
  152. serialization.ddl struct srcpart { string key, string value}
  153. serialization.format 1
  154. serialization.lib org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe
  155. transient_lastDdlTime 1297386140
  156. serde: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe
  157. name: default.srcpart
  158. name: default.srcpart
  159. Reduce Operator Tree:
  160. Extract
  161. Filter Operator
  162. isSamplingPred: false
  163. predicate:
  164. expr: (_col1 < 100)
  165. type: boolean
  166. Select Operator
  167. expressions:
  168. expr: _col1
  169. type: string
  170. expr: _col2
  171. type: string
  172. outputColumnNames: _col0, _col1
  173. File Output Operator
  174. compressed: false
  175. GlobalTableId: 0
  176. directory: file:/tmp/sdong/hive_2011-02-10_17-24-59_315_262991000601799738/-ext-10001
  177. NumFilesPerFileSink: 1
  178. Stats Publishing Key Prefix: file:/tmp/sdong/hive_2011-02-10_17-24-59_315_262991000601799738/-ext-10001/
  179. table:
  180. input format: org.apache.hadoop.mapred.TextInputFormat
  181. output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
  182. properties:
  183. columns _col0,_col1
  184. columns.types string:string
  185. serialization.format 1
  186. TotalFiles: 1
  187. GatherStats: false
  188. MultiFileSpray: false
  189. Stage: Stage-0
  190. Fetch Operator
  191. limit: -1
  192. PREHOOK: query: FROM (
  193. FROM srcpart src
  194. SELECT TRANSFORM(src.ds, src.key, src.value)
  195. USING '/bin/cat' AS (ds, tkey, tvalue)
  196. WHERE src.ds = '2008-04-08'
  197. CLUSTER BY tkey
  198. ) tmap
  199. SELECT tmap.tkey, tmap.tvalue WHERE tmap.tkey < 100
  200. PREHOOK: type: QUERY
  201. PREHOOK: Input: default@srcpart@ds=2008-04-08/hr=11
  202. PREHOOK: Input: default@srcpart@ds=2008-04-08/hr=12
  203. PREHOOK: Output: file:/tmp/sdong/hive_2011-02-10_17-24-59_452_6247089005584219853/-mr-10000
  204. POSTHOOK: query: FROM (
  205. FROM srcpart src
  206. SELECT TRANSFORM(src.ds, src.key, src.value)
  207. USING '/bin/cat' AS (ds, tkey, tvalue)
  208. WHERE src.ds = '2008-04-08'
  209. CLUSTER BY tkey
  210. ) tmap
  211. SELECT tmap.tkey, tmap.tvalue WHERE tmap.tkey < 100
  212. POSTHOOK: type: QUERY
  213. POSTHOOK: Input: default@srcpart@ds=2008-04-08/hr=11
  214. POSTHOOK: Input: default@srcpart@ds=2008-04-08/hr=12
  215. POSTHOOK: Output: file:/tmp/sdong/hive_2011-02-10_17-24-59_452_6247089005584219853/-mr-10000
  216. 0 val_0
  217. 0 val_0
  218. 0 val_0
  219. 0 val_0
  220. 0 val_0
  221. 0 val_0
  222. 10 val_10
  223. 10 val_10
  224. 11 val_11
  225. 11 val_11
  226. 12 val_12
  227. 12 val_12
  228. 12 val_12
  229. 12 val_12
  230. 15 val_15
  231. 15 val_15
  232. 15 val_15
  233. 15 val_15
  234. 17 val_17
  235. 17 val_17
  236. 18 val_18
  237. 18 val_18
  238. 18 val_18
  239. 18 val_18
  240. 19 val_19
  241. 19 val_19
  242. 2 val_2
  243. 2 val_2
  244. 20 val_20
  245. 20 val_20
  246. 24 val_24
  247. 24 val_24
  248. 24 val_24
  249. 24 val_24
  250. 26 val_26
  251. 26 val_26
  252. 26 val_26
  253. 26 val_26
  254. 27 val_27
  255. 27 val_27
  256. 28 val_28
  257. 28 val_28
  258. 30 val_30
  259. 30 val_30
  260. 33 val_33
  261. 33 val_33
  262. 34 val_34
  263. 34 val_34
  264. 35 val_35
  265. 35 val_35
  266. 35 val_35
  267. 35 val_35
  268. 35 val_35
  269. 35 val_35
  270. 37 val_37
  271. 37 val_37
  272. 37 val_37
  273. 37 val_37
  274. 4 val_4
  275. 4 val_4
  276. 41 val_41
  277. 41 val_41
  278. 42 val_42
  279. 42 val_42
  280. 42 val_42
  281. 42 val_42
  282. 43 val_43
  283. 43 val_43
  284. 44 val_44
  285. 44 val_44
  286. 47 val_47
  287. 47 val_47
  288. 5 val_5
  289. 5 val_5
  290. 5 val_5
  291. 5 val_5
  292. 5 val_5
  293. 5 val_5
  294. 51 val_51
  295. 51 val_51
  296. 51 val_51
  297. 51 val_51
  298. 53 val_53
  299. 53 val_53
  300. 54 val_54
  301. 54 val_54
  302. 57 val_57
  303. 57 val_57
  304. 58 val_58
  305. 58 val_58
  306. 58 val_58
  307. 58 val_58
  308. 64 val_64
  309. 64 val_64
  310. 65 val_65
  311. 65 val_65
  312. 66 val_66
  313. 66 val_66
  314. 67 val_67
  315. 67 val_67
  316. 67 val_67
  317. 67 val_67
  318. 69 val_69
  319. 69 val_69
  320. 70 val_70
  321. 70 val_70
  322. 70 val_70
  323. 70 val_70
  324. 70 val_70
  325. 70 val_70
  326. 72 val_72
  327. 72 val_72
  328. 72 val_72
  329. 72 val_72
  330. 74 val_74
  331. 74 val_74
  332. 76 val_76
  333. 76 val_76
  334. 76 val_76
  335. 76 val_76
  336. 77 val_77
  337. 77 val_77
  338. 78 val_78
  339. 78 val_78
  340. 8 val_8
  341. 8 val_8
  342. 80 val_80
  343. 80 val_80
  344. 82 val_82
  345. 82 val_82
  346. 83 val_83
  347. 83 val_83
  348. 83 val_83
  349. 83 val_83
  350. 84 val_84
  351. 84 val_84
  352. 84 val_84
  353. 84 val_84
  354. 85 val_85
  355. 85 val_85
  356. 86 val_86
  357. 86 val_86
  358. 87 val_87
  359. 87 val_87
  360. 9 val_9
  361. 9 val_9
  362. 90 val_90
  363. 90 val_90
  364. 90 val_90
  365. 90 val_90
  366. 90 val_90
  367. 90 val_90
  368. 92 val_92
  369. 92 val_92
  370. 95 val_95
  371. 95 val_95
  372. 95 val_95
  373. 95 val_95
  374. 96 val_96
  375. 96 val_96
  376. 97 val_97
  377. 97 val_97
  378. 97 val_97
  379. 97 val_97
  380. 98 val_98
  381. 98 val_98
  382. 98 val_98
  383. 98 val_98