PageRenderTime 40ms CodeModel.GetById 15ms RepoModel.GetById 0ms app.codeStats 0ms

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

#
text | 93 lines | 91 code | 2 blank | 0 comment | 0 complexity | 689975107c5f8da2b4ed801f11594744 MD5 | raw file
Possible License(s): Apache-2.0, BSD-3-Clause, JSON, CPL-1.0
  1. PREHOOK: query: CREATE TABLE mytable(key STRING, value STRING)
  2. ROW FORMAT DELIMITED
  3. FIELDS TERMINATED BY '9'
  4. STORED AS TEXTFILE
  5. PREHOOK: type: CREATETABLE
  6. POSTHOOK: query: CREATE TABLE mytable(key STRING, value STRING)
  7. ROW FORMAT DELIMITED
  8. FIELDS TERMINATED BY '9'
  9. STORED AS TEXTFILE
  10. POSTHOOK: type: CREATETABLE
  11. POSTHOOK: Output: default@mytable
  12. PREHOOK: query: LOAD DATA LOCAL INPATH '../data/files/string.txt' INTO TABLE mytable
  13. PREHOOK: type: LOAD
  14. POSTHOOK: query: LOAD DATA LOCAL INPATH '../data/files/string.txt' INTO TABLE mytable
  15. POSTHOOK: type: LOAD
  16. POSTHOOK: Output: default@mytable
  17. PREHOOK: query: EXPLAIN
  18. SELECT REGEXP_REPLACE(REGEXP_REPLACE(REGEXP_REPLACE(key, '\001', '^A'), '\0', '^@'), '\002', '^B'), value
  19. FROM (
  20. SELECT key, sum(value) as value
  21. FROM mytable
  22. GROUP BY key
  23. ) a
  24. PREHOOK: type: QUERY
  25. POSTHOOK: query: EXPLAIN
  26. SELECT REGEXP_REPLACE(REGEXP_REPLACE(REGEXP_REPLACE(key, '\001', '^A'), '\0', '^@'), '\002', '^B'), value
  27. FROM (
  28. SELECT key, sum(value) as value
  29. FROM mytable
  30. GROUP BY key
  31. ) a
  32. POSTHOOK: type: QUERY
  33. ABSTRACT SYNTAX TREE:
  34. (TOK_QUERY (TOK_FROM (TOK_SUBQUERY (TOK_QUERY (TOK_FROM (TOK_TABREF (TOK_TABNAME mytable))) (TOK_INSERT (TOK_DESTINATION (TOK_DIR TOK_TMP_FILE)) (TOK_SELECT (TOK_SELEXPR (TOK_TABLE_OR_COL key)) (TOK_SELEXPR (TOK_FUNCTION sum (TOK_TABLE_OR_COL value)) value)) (TOK_GROUPBY (TOK_TABLE_OR_COL key)))) a)) (TOK_INSERT (TOK_DESTINATION (TOK_DIR TOK_TMP_FILE)) (TOK_SELECT (TOK_SELEXPR (TOK_FUNCTION REGEXP_REPLACE (TOK_FUNCTION REGEXP_REPLACE (TOK_FUNCTION REGEXP_REPLACE (TOK_TABLE_OR_COL key) '\001' '^A') '\0' '^@') '\002' '^B')) (TOK_SELEXPR (TOK_TABLE_OR_COL value)))))
  35. STAGE DEPENDENCIES:
  36. Stage-1 is a root stage
  37. Stage-0 is a root stage
  38. STAGE PLANS:
  39. Stage: Stage-1
  40. Map Reduce
  41. Alias -> Map Operator Tree:
  42. a:mytable
  43. TableScan
  44. alias: mytable
  45. Select Operator
  46. expressions:
  47. expr: key
  48. type: string
  49. expr: value
  50. type: string
  51. outputColumnNames: key, value
  52. Group By Operator
  53. aggregations:
  54. expr: sum(value)
  55. bucketGroup: false
  56. keys:
  57. expr: key
  58. type: string
  59. mode: hash
  60. outputColumnNames: _col0, _col1
  61. Reduce Output Operator
  62. key expressions:
  63. expr: _col0
  64. type: string
  65. sort order: +
  66. Map-reduce partition columns:
  67. expr: _col0
  68. type: string
  69. tag: -1
  70. value expressions:
  71. expr: _col1
  72. type: double
  73. Reduce Operator Tree:
  74. Group By Operator
  75. aggregations:
  76. expr: sum(VALUE._col0)
  77. bucketGroup: false
  78. keys:
  79. expr: KEY._col0
  80. type: string
  81. mode: mergepartial
  82. outputColumnNames: _col0, _col1
  83. Select Operator
  84. expressions:
  85. expr: _col0
  86. type: string
  87. expr: _col1
  88. type: double
  89. outputColumnNames: _col0, _col1
  90. Select Operator
  91. expressions:
  92. expr: regexp_replace(regexp_replace(regexp_replace(_col0, '', '^A'), '�', '^@'), '', '^B')
  93. type: string
  94. expr: _col1
  95. type: double
  96. outputColumnNames: _col0, _col1
  97. File Output Operator
  98. compressed: false
  99. GlobalTableId: 0
  100. table:
  101. input format: org.apache.hadoop.mapred.TextInputFormat
  102. output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
  103. Stage: Stage-0
  104. Fetch Operator
  105. limit: -1
  106. PREHOOK: query: SELECT REGEXP_REPLACE(REGEXP_REPLACE(REGEXP_REPLACE(key, '\001', '^A'), '\0', '^@'), '\002', '^B'), value
  107. FROM (
  108. SELECT key, sum(value) as value
  109. FROM mytable
  110. GROUP BY key
  111. ) a
  112. PREHOOK: type: QUERY
  113. PREHOOK: Input: default@mytable
  114. PREHOOK: Output: file:/tmp/sdong/hive_2011-02-10_01-30-28_845_3405263601759137587/-mr-10000
  115. POSTHOOK: query: SELECT REGEXP_REPLACE(REGEXP_REPLACE(REGEXP_REPLACE(key, '\001', '^A'), '\0', '^@'), '\002', '^B'), value
  116. FROM (
  117. SELECT key, sum(value) as value
  118. FROM mytable
  119. GROUP BY key
  120. ) a
  121. POSTHOOK: type: QUERY
  122. POSTHOOK: Input: default@mytable
  123. POSTHOOK: Output: file:/tmp/sdong/hive_2011-02-10_01-30-28_845_3405263601759137587/-mr-10000
  124. ^@^@^@ 7.0
  125. ^@^A^@ 9.0
  126. ^@test^@ 2.0
  127. ^A^@^A 10.0
  128. ^A^A^A 8.0
  129. ^Atest^A 3.0
  130. a^@bc^A^B^A^@ 1.0
  131. test^@^@^A^Atest 6.0
  132. test^@test 4.0
  133. test^Atest 5.0