PageRenderTime 44ms CodeModel.GetById 18ms RepoModel.GetById 1ms app.codeStats 0ms

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

#
text | 183 lines | 173 code | 10 blank | 0 comment | 0 complexity | e8d16ede587d9e4639bf2a019fb814ab MD5 | raw file
Possible License(s): Apache-2.0, BSD-3-Clause, JSON, CPL-1.0
  1. PREHOOK: query: explain
  2. select count(1), count(distinct x.value), count(distinct substr(x.value, 5)) from src x where x.key = 9999
  3. PREHOOK: type: QUERY
  4. POSTHOOK: query: explain
  5. select count(1), count(distinct x.value), count(distinct substr(x.value, 5)) from src x where x.key = 9999
  6. POSTHOOK: type: QUERY
  7. ABSTRACT SYNTAX TREE:
  8. (TOK_QUERY (TOK_FROM (TOK_TABREF (TOK_TABNAME src) x)) (TOK_INSERT (TOK_DESTINATION (TOK_DIR TOK_TMP_FILE)) (TOK_SELECT (TOK_SELEXPR (TOK_FUNCTION count 1)) (TOK_SELEXPR (TOK_FUNCTIONDI count (. (TOK_TABLE_OR_COL x) value))) (TOK_SELEXPR (TOK_FUNCTIONDI count (TOK_FUNCTION substr (. (TOK_TABLE_OR_COL x) value) 5)))) (TOK_WHERE (= (. (TOK_TABLE_OR_COL x) key) 9999))))
  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. x
  17. TableScan
  18. alias: x
  19. Filter Operator
  20. predicate:
  21. expr: (key = 9999)
  22. type: boolean
  23. Filter Operator
  24. predicate:
  25. expr: (key = 9999)
  26. type: boolean
  27. Select Operator
  28. expressions:
  29. expr: value
  30. type: string
  31. outputColumnNames: value
  32. Group By Operator
  33. aggregations:
  34. expr: count(1)
  35. expr: count(DISTINCT value)
  36. expr: count(DISTINCT substr(value, 5))
  37. bucketGroup: false
  38. keys:
  39. expr: value
  40. type: string
  41. expr: substr(value, 5)
  42. type: string
  43. mode: hash
  44. outputColumnNames: _col0, _col1, _col2, _col3, _col4
  45. Reduce Output Operator
  46. key expressions:
  47. expr: _col0
  48. type: string
  49. expr: _col1
  50. type: string
  51. sort order: ++
  52. tag: -1
  53. value expressions:
  54. expr: _col2
  55. type: bigint
  56. expr: _col3
  57. type: bigint
  58. expr: _col4
  59. type: bigint
  60. Reduce Operator Tree:
  61. Group By Operator
  62. aggregations:
  63. expr: count(VALUE._col0)
  64. expr: count(DISTINCT KEY._col0:0._col0)
  65. expr: count(DISTINCT KEY._col0:1._col0)
  66. bucketGroup: false
  67. mode: mergepartial
  68. outputColumnNames: _col0, _col1, _col2
  69. Select Operator
  70. expressions:
  71. expr: _col0
  72. type: bigint
  73. expr: _col1
  74. type: bigint
  75. expr: _col2
  76. type: bigint
  77. outputColumnNames: _col0, _col1, _col2
  78. File Output Operator
  79. compressed: false
  80. GlobalTableId: 0
  81. table:
  82. input format: org.apache.hadoop.mapred.TextInputFormat
  83. output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
  84. Stage: Stage-0
  85. Fetch Operator
  86. limit: -1
  87. PREHOOK: query: select count(1), count(distinct x.value), count(distinct substr(x.value, 5)) from src x where x.key = 9999
  88. PREHOOK: type: QUERY
  89. PREHOOK: Input: default@src
  90. PREHOOK: Output: file:/tmp/sdong/hive_2011-02-10_16-48-27_281_6261349366093864618/-mr-10000
  91. POSTHOOK: query: select count(1), count(distinct x.value), count(distinct substr(x.value, 5)) from src x where x.key = 9999
  92. POSTHOOK: type: QUERY
  93. POSTHOOK: Input: default@src
  94. POSTHOOK: Output: file:/tmp/sdong/hive_2011-02-10_16-48-27_281_6261349366093864618/-mr-10000
  95. 0 0 0
  96. PREHOOK: query: explain
  97. select count(1), count(distinct x.value), count(distinct substr(x.value, 5)) from src x where x.key = 9999
  98. PREHOOK: type: QUERY
  99. POSTHOOK: query: explain
  100. select count(1), count(distinct x.value), count(distinct substr(x.value, 5)) from src x where x.key = 9999
  101. POSTHOOK: type: QUERY
  102. ABSTRACT SYNTAX TREE:
  103. (TOK_QUERY (TOK_FROM (TOK_TABREF (TOK_TABNAME src) x)) (TOK_INSERT (TOK_DESTINATION (TOK_DIR TOK_TMP_FILE)) (TOK_SELECT (TOK_SELEXPR (TOK_FUNCTION count 1)) (TOK_SELEXPR (TOK_FUNCTIONDI count (. (TOK_TABLE_OR_COL x) value))) (TOK_SELEXPR (TOK_FUNCTIONDI count (TOK_FUNCTION substr (. (TOK_TABLE_OR_COL x) value) 5)))) (TOK_WHERE (= (. (TOK_TABLE_OR_COL x) key) 9999))))
  104. STAGE DEPENDENCIES:
  105. Stage-1 is a root stage
  106. Stage-0 is a root stage
  107. STAGE PLANS:
  108. Stage: Stage-1
  109. Map Reduce
  110. Alias -> Map Operator Tree:
  111. x
  112. TableScan
  113. alias: x
  114. Filter Operator
  115. predicate:
  116. expr: (key = 9999)
  117. type: boolean
  118. Filter Operator
  119. predicate:
  120. expr: (key = 9999)
  121. type: boolean
  122. Select Operator
  123. expressions:
  124. expr: value
  125. type: string
  126. outputColumnNames: value
  127. Reduce Output Operator
  128. key expressions:
  129. expr: value
  130. type: string
  131. expr: substr(value, 5)
  132. type: string
  133. sort order: ++
  134. tag: -1
  135. value expressions:
  136. expr: 1
  137. type: int
  138. Reduce Operator Tree:
  139. Group By Operator
  140. aggregations:
  141. expr: count(VALUE._col0)
  142. expr: count(DISTINCT KEY._col0:0._col0)
  143. expr: count(DISTINCT KEY._col0:1._col0)
  144. bucketGroup: false
  145. mode: complete
  146. outputColumnNames: _col0, _col1, _col2
  147. Select Operator
  148. expressions:
  149. expr: _col0
  150. type: bigint
  151. expr: _col1
  152. type: bigint
  153. expr: _col2
  154. type: bigint
  155. outputColumnNames: _col0, _col1, _col2
  156. File Output Operator
  157. compressed: false
  158. GlobalTableId: 0
  159. table:
  160. input format: org.apache.hadoop.mapred.TextInputFormat
  161. output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
  162. Stage: Stage-0
  163. Fetch Operator
  164. limit: -1
  165. PREHOOK: query: select count(1), count(distinct x.value), count(distinct substr(x.value, 5)) from src x where x.key = 9999
  166. PREHOOK: type: QUERY
  167. PREHOOK: Input: default@src
  168. PREHOOK: Output: file:/tmp/sdong/hive_2011-02-10_16-48-30_870_1082986772406527025/-mr-10000
  169. POSTHOOK: query: select count(1), count(distinct x.value), count(distinct substr(x.value, 5)) from src x where x.key = 9999
  170. POSTHOOK: type: QUERY
  171. POSTHOOK: Input: default@src
  172. POSTHOOK: Output: file:/tmp/sdong/hive_2011-02-10_16-48-30_870_1082986772406527025/-mr-10000
  173. 0 0 0