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

# · text · 262 lines · 248 code · 14 blank · 0 comment · 0 complexity · ca402a215cc70b1eb35da80c67c549fa MD5 · raw file

  1. PREHOOK: query: -- complex predicates in the where clause
  2. explain extended select a.* from srcpart a where rand(1) < 0.1 and a.ds = '2008-04-08' and not(key > 50 or key < 10) and a.hr like '%2'
  3. PREHOOK: type: QUERY
  4. POSTHOOK: query: -- complex predicates in the where clause
  5. explain extended select a.* from srcpart a where rand(1) < 0.1 and a.ds = '2008-04-08' and not(key > 50 or key < 10) and a.hr like '%2'
  6. POSTHOOK: type: QUERY
  7. ABSTRACT SYNTAX TREE:
  8. (TOK_QUERY (TOK_FROM (TOK_TABREF (TOK_TABNAME srcpart) a)) (TOK_INSERT (TOK_DESTINATION (TOK_DIR TOK_TMP_FILE)) (TOK_SELECT (TOK_SELEXPR (TOK_ALLCOLREF (TOK_TABNAME a)))) (TOK_WHERE (and (and (and (< (TOK_FUNCTION rand 1) 0.1) (= (. (TOK_TABLE_OR_COL a) ds) '2008-04-08')) (not (or (> (TOK_TABLE_OR_COL key) 50) (< (TOK_TABLE_OR_COL key) 10)))) (like (. (TOK_TABLE_OR_COL a) hr) '%2')))))
  9. STAGE DEPENDENCIES:
  10. Stage-1 is a root stage
  11. Stage-0 is a root stage
  12. STAGE PLANS:
  13. Stage: Stage-1
  14. Map Reduce
  15. Alias -> Map Operator Tree:
  16. a
  17. TableScan
  18. alias: a
  19. GatherStats: false
  20. Filter Operator
  21. isSamplingPred: false
  22. predicate:
  23. expr: ((rand(1) < 0.1) and (not ((key > 50) or (key < 10))))
  24. type: boolean
  25. Select Operator
  26. expressions:
  27. expr: key
  28. type: string
  29. expr: value
  30. type: string
  31. expr: ds
  32. type: string
  33. expr: hr
  34. type: string
  35. outputColumnNames: _col0, _col1, _col2, _col3
  36. File Output Operator
  37. compressed: false
  38. GlobalTableId: 0
  39. directory: file:/tmp/sdong/hive_2011-02-10_16-59-27_535_6604454435367976682/-ext-10001
  40. NumFilesPerFileSink: 1
  41. Stats Publishing Key Prefix: file:/tmp/sdong/hive_2011-02-10_16-59-27_535_6604454435367976682/-ext-10001/
  42. table:
  43. input format: org.apache.hadoop.mapred.TextInputFormat
  44. output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
  45. properties:
  46. columns _col0,_col1,_col2,_col3
  47. columns.types string:string:string:string
  48. serialization.format 1
  49. TotalFiles: 1
  50. GatherStats: false
  51. MultiFileSpray: false
  52. Needs Tagging: false
  53. Path -> Alias:
  54. pfile:/data/users/sdong/www/open-source-hive1/build/ql/test/data/warehouse/srcpart/ds=2008-04-08/hr=12 [a]
  55. Path -> Partition:
  56. pfile:/data/users/sdong/www/open-source-hive1/build/ql/test/data/warehouse/srcpart/ds=2008-04-08/hr=12
  57. Partition
  58. base file name: hr=12
  59. input format: org.apache.hadoop.mapred.TextInputFormat
  60. output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
  61. partition values:
  62. ds 2008-04-08
  63. hr 12
  64. properties:
  65. bucket_count -1
  66. columns key,value
  67. columns.types string:string
  68. file.inputformat org.apache.hadoop.mapred.TextInputFormat
  69. file.outputformat org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
  70. location pfile:/data/users/sdong/www/open-source-hive1/build/ql/test/data/warehouse/srcpart/ds=2008-04-08/hr=12
  71. name default.srcpart
  72. partition_columns ds/hr
  73. serialization.ddl struct srcpart { string key, string value}
  74. serialization.format 1
  75. serialization.lib org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe
  76. transient_lastDdlTime 1297378962
  77. serde: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe
  78. input format: org.apache.hadoop.mapred.TextInputFormat
  79. output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
  80. properties:
  81. bucket_count -1
  82. columns key,value
  83. columns.types string:string
  84. file.inputformat org.apache.hadoop.mapred.TextInputFormat
  85. file.outputformat org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
  86. location pfile:/data/users/sdong/www/open-source-hive1/build/ql/test/data/warehouse/srcpart
  87. name default.srcpart
  88. partition_columns ds/hr
  89. serialization.ddl struct srcpart { string key, string value}
  90. serialization.format 1
  91. serialization.lib org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe
  92. transient_lastDdlTime 1297378962
  93. serde: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe
  94. name: default.srcpart
  95. name: default.srcpart
  96. Stage: Stage-0
  97. Fetch Operator
  98. limit: -1
  99. PREHOOK: query: select a.* from srcpart a where rand(1) < 0.1 and a.ds = '2008-04-08' and not(key > 50 or key < 10) and a.hr like '%2'
  100. PREHOOK: type: QUERY
  101. PREHOOK: Input: default@srcpart@ds=2008-04-08/hr=12
  102. PREHOOK: Output: file:/tmp/sdong/hive_2011-02-10_16-59-27_647_2525111975441270364/-mr-10000
  103. POSTHOOK: query: select a.* from srcpart a where rand(1) < 0.1 and a.ds = '2008-04-08' and not(key > 50 or key < 10) and a.hr like '%2'
  104. POSTHOOK: type: QUERY
  105. POSTHOOK: Input: default@srcpart@ds=2008-04-08/hr=12
  106. POSTHOOK: Output: file:/tmp/sdong/hive_2011-02-10_16-59-27_647_2525111975441270364/-mr-10000
  107. 42 val_42 2008-04-08 12
  108. 44 val_44 2008-04-08 12
  109. 26 val_26 2008-04-08 12
  110. 18 val_18 2008-04-08 12
  111. 37 val_37 2008-04-08 12
  112. PREHOOK: query: -- without rand for comparison
  113. explain extended select a.* from srcpart a where a.ds = '2008-04-08' and not(key > 50 or key < 10) and a.hr like '%2'
  114. PREHOOK: type: QUERY
  115. POSTHOOK: query: -- without rand for comparison
  116. explain extended select a.* from srcpart a where a.ds = '2008-04-08' and not(key > 50 or key < 10) and a.hr like '%2'
  117. POSTHOOK: type: QUERY
  118. ABSTRACT SYNTAX TREE:
  119. (TOK_QUERY (TOK_FROM (TOK_TABREF (TOK_TABNAME srcpart) a)) (TOK_INSERT (TOK_DESTINATION (TOK_DIR TOK_TMP_FILE)) (TOK_SELECT (TOK_SELEXPR (TOK_ALLCOLREF (TOK_TABNAME a)))) (TOK_WHERE (and (and (= (. (TOK_TABLE_OR_COL a) ds) '2008-04-08') (not (or (> (TOK_TABLE_OR_COL key) 50) (< (TOK_TABLE_OR_COL key) 10)))) (like (. (TOK_TABLE_OR_COL a) hr) '%2')))))
  120. STAGE DEPENDENCIES:
  121. Stage-1 is a root stage
  122. Stage-0 is a root stage
  123. STAGE PLANS:
  124. Stage: Stage-1
  125. Map Reduce
  126. Alias -> Map Operator Tree:
  127. a
  128. TableScan
  129. alias: a
  130. GatherStats: false
  131. Filter Operator
  132. isSamplingPred: false
  133. predicate:
  134. expr: (not ((key > 50) or (key < 10)))
  135. type: boolean
  136. Select Operator
  137. expressions:
  138. expr: key
  139. type: string
  140. expr: value
  141. type: string
  142. expr: ds
  143. type: string
  144. expr: hr
  145. type: string
  146. outputColumnNames: _col0, _col1, _col2, _col3
  147. File Output Operator
  148. compressed: false
  149. GlobalTableId: 0
  150. directory: file:/var/folders/uc/ucuNeMAVGQGzy3459D8z2+++Z0Q/-Tmp-/amarsri/hive_2011-03-17_11-41-58_245_7085869776801424539/-ext-10001
  151. NumFilesPerFileSink: 1
  152. Stats Publishing Key Prefix: file:/var/folders/uc/ucuNeMAVGQGzy3459D8z2+++Z0Q/-Tmp-/amarsri/hive_2011-03-17_11-41-58_245_7085869776801424539/-ext-10001/
  153. table:
  154. input format: org.apache.hadoop.mapred.TextInputFormat
  155. output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
  156. properties:
  157. columns _col0,_col1,_col2,_col3
  158. columns.types string:string:string:string
  159. serialization.format 1
  160. TotalFiles: 1
  161. GatherStats: false
  162. MultiFileSpray: false
  163. Needs Tagging: false
  164. Path -> Alias:
  165. pfile:/data/users/sdong/www/open-source-hive1/build/ql/test/data/warehouse/srcpart/ds=2008-04-08/hr=12 [a]
  166. Path -> Partition:
  167. pfile:/data/users/sdong/www/open-source-hive1/build/ql/test/data/warehouse/srcpart/ds=2008-04-08/hr=12
  168. Partition
  169. base file name: hr=12
  170. input format: org.apache.hadoop.mapred.TextInputFormat
  171. output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
  172. partition values:
  173. ds 2008-04-08
  174. hr 12
  175. properties:
  176. bucket_count -1
  177. columns key,value
  178. columns.types string:string
  179. file.inputformat org.apache.hadoop.mapred.TextInputFormat
  180. file.outputformat org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
  181. location pfile:/data/users/sdong/www/open-source-hive1/build/ql/test/data/warehouse/srcpart/ds=2008-04-08/hr=12
  182. name default.srcpart
  183. partition_columns ds/hr
  184. serialization.ddl struct srcpart { string key, string value}
  185. serialization.format 1
  186. serialization.lib org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe
  187. transient_lastDdlTime 1297378962
  188. serde: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe
  189. input format: org.apache.hadoop.mapred.TextInputFormat
  190. output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
  191. properties:
  192. bucket_count -1
  193. columns key,value
  194. columns.types string:string
  195. file.inputformat org.apache.hadoop.mapred.TextInputFormat
  196. file.outputformat org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
  197. location pfile:/data/users/sdong/www/open-source-hive1/build/ql/test/data/warehouse/srcpart
  198. name default.srcpart
  199. partition_columns ds/hr
  200. serialization.ddl struct srcpart { string key, string value}
  201. serialization.format 1
  202. serialization.lib org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe
  203. transient_lastDdlTime 1297378962
  204. serde: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe
  205. name: default.srcpart
  206. name: default.srcpart
  207. Stage: Stage-0
  208. Fetch Operator
  209. limit: -1
  210. PREHOOK: query: select a.* from srcpart a where a.ds = '2008-04-08' and not(key > 50 or key < 10) and a.hr like '%2'
  211. PREHOOK: type: QUERY
  212. PREHOOK: Input: default@srcpart@ds=2008-04-08/hr=12
  213. PREHOOK: Output: file:/tmp/sdong/hive_2011-02-10_16-59-31_209_851281034628868825/-mr-10000
  214. POSTHOOK: query: select a.* from srcpart a where a.ds = '2008-04-08' and not(key > 50 or key < 10) and a.hr like '%2'
  215. POSTHOOK: type: QUERY
  216. POSTHOOK: Input: default@srcpart@ds=2008-04-08/hr=12
  217. POSTHOOK: Output: file:/tmp/sdong/hive_2011-02-10_16-59-31_209_851281034628868825/-mr-10000
  218. 27 val_27 2008-04-08 12
  219. 37 val_37 2008-04-08 12
  220. 15 val_15 2008-04-08 12
  221. 17 val_17 2008-04-08 12
  222. 20 val_20 2008-04-08 12
  223. 47 val_47 2008-04-08 12
  224. 35 val_35 2008-04-08 12
  225. 12 val_12 2008-04-08 12
  226. 24 val_24 2008-04-08 12
  227. 42 val_42 2008-04-08 12
  228. 26 val_26 2008-04-08 12
  229. 43 val_43 2008-04-08 12
  230. 15 val_15 2008-04-08 12
  231. 19 val_19 2008-04-08 12
  232. 10 val_10 2008-04-08 12
  233. 35 val_35 2008-04-08 12
  234. 11 val_11 2008-04-08 12
  235. 34 val_34 2008-04-08 12
  236. 42 val_42 2008-04-08 12
  237. 41 val_41 2008-04-08 12
  238. 30 val_30 2008-04-08 12
  239. 33 val_33 2008-04-08 12
  240. 35 val_35 2008-04-08 12
  241. 44 val_44 2008-04-08 12
  242. 12 val_12 2008-04-08 12
  243. 24 val_24 2008-04-08 12
  244. 26 val_26 2008-04-08 12
  245. 18 val_18 2008-04-08 12
  246. 18 val_18 2008-04-08 12
  247. 28 val_28 2008-04-08 12
  248. 37 val_37 2008-04-08 12