PageRenderTime 18ms CodeModel.GetById 15ms app.highlight 1ms RepoModel.GetById 0ms app.codeStats 0ms

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

#
text | 126 lines | 117 code | 9 blank | 0 comment | 0 complexity | 5ff490b5a49195b00a7881cbb5a97382 MD5 | raw file
  1PREHOOK: query: CREATE TABLE dest1(c1 INT, c2 DOUBLE, c3 DOUBLE, c4 DOUBLE, c5 INT, c6 STRING, c7 INT) STORED AS TEXTFILE
  2PREHOOK: type: CREATETABLE
  3POSTHOOK: query: CREATE TABLE dest1(c1 INT, c2 DOUBLE, c3 DOUBLE, c4 DOUBLE, c5 INT, c6 STRING, c7 INT) STORED AS TEXTFILE
  4POSTHOOK: type: CREATETABLE
  5POSTHOOK: Output: default@dest1
  6PREHOOK: query: EXPLAIN
  7FROM src INSERT OVERWRITE TABLE dest1 SELECT 3 + 2, 3.0 + 2, 3 + 2.0, 3.0 + 2.0, 3 + CAST(2.0 AS INT) + CAST(CAST(0 AS SMALLINT) AS INT), CAST(1 AS BOOLEAN), CAST(TRUE AS INT) WHERE src.key = 86
  8PREHOOK: type: QUERY
  9POSTHOOK: query: EXPLAIN
 10FROM src INSERT OVERWRITE TABLE dest1 SELECT 3 + 2, 3.0 + 2, 3 + 2.0, 3.0 + 2.0, 3 + CAST(2.0 AS INT) + CAST(CAST(0 AS SMALLINT) AS INT), CAST(1 AS BOOLEAN), CAST(TRUE AS INT) WHERE src.key = 86
 11POSTHOOK: type: QUERY
 12ABSTRACT SYNTAX TREE:
 13  (TOK_QUERY (TOK_FROM (TOK_TABREF (TOK_TABNAME src))) (TOK_INSERT (TOK_DESTINATION (TOK_TAB (TOK_TABNAME dest1))) (TOK_SELECT (TOK_SELEXPR (+ 3 2)) (TOK_SELEXPR (+ 3.0 2)) (TOK_SELEXPR (+ 3 2.0)) (TOK_SELEXPR (+ 3.0 2.0)) (TOK_SELEXPR (+ (+ 3 (TOK_FUNCTION TOK_INT 2.0)) (TOK_FUNCTION TOK_INT (TOK_FUNCTION TOK_SMALLINT 0)))) (TOK_SELEXPR (TOK_FUNCTION TOK_BOOLEAN 1)) (TOK_SELEXPR (TOK_FUNCTION TOK_INT TRUE))) (TOK_WHERE (= (. (TOK_TABLE_OR_COL src) key) 86))))
 14
 15STAGE DEPENDENCIES:
 16  Stage-1 is a root stage
 17  Stage-5 depends on stages: Stage-1 , consists of Stage-4, Stage-3
 18  Stage-4
 19  Stage-0 depends on stages: Stage-4, Stage-3
 20  Stage-2 depends on stages: Stage-0
 21  Stage-3
 22
 23STAGE PLANS:
 24  Stage: Stage-1
 25    Map Reduce
 26      Alias -> Map Operator Tree:
 27        src 
 28          TableScan
 29            alias: src
 30            Filter Operator
 31              predicate:
 32                  expr: (key = 86)
 33                  type: boolean
 34              Select Operator
 35                expressions:
 36                      expr: (3 + 2)
 37                      type: int
 38                      expr: (3.0 + 2)
 39                      type: double
 40                      expr: (3 + 2.0)
 41                      type: double
 42                      expr: (3.0 + 2.0)
 43                      type: double
 44                      expr: ((3 + UDFToInteger(2.0)) + UDFToInteger(UDFToShort(0)))
 45                      type: int
 46                      expr: UDFToBoolean(1)
 47                      type: boolean
 48                      expr: UDFToInteger(true)
 49                      type: int
 50                outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6
 51                File Output Operator
 52                  compressed: false
 53                  GlobalTableId: 1
 54                  table:
 55                      input format: org.apache.hadoop.mapred.TextInputFormat
 56                      output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
 57                      serde: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe
 58                      name: default.dest1
 59
 60  Stage: Stage-5
 61    Conditional Operator
 62
 63  Stage: Stage-4
 64    Move Operator
 65      files:
 66          hdfs directory: true
 67          destination: pfile:/data/users/sdong/www/open-source-hive1/build/ql/scratchdir/hive_2011-02-10_01-38-54_938_5912405912327837002/-ext-10000
 68
 69  Stage: Stage-0
 70    Move Operator
 71      tables:
 72          replace: true
 73          table:
 74              input format: org.apache.hadoop.mapred.TextInputFormat
 75              output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
 76              serde: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe
 77              name: default.dest1
 78
 79  Stage: Stage-2
 80    Stats-Aggr Operator
 81
 82  Stage: Stage-3
 83    Map Reduce
 84      Alias -> Map Operator Tree:
 85        pfile:/data/users/sdong/www/open-source-hive1/build/ql/scratchdir/hive_2011-02-10_01-38-54_938_5912405912327837002/-ext-10002 
 86            File Output Operator
 87              compressed: false
 88              GlobalTableId: 0
 89              table:
 90                  input format: org.apache.hadoop.mapred.TextInputFormat
 91                  output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
 92                  serde: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe
 93                  name: default.dest1
 94
 95
 96PREHOOK: query: FROM src INSERT OVERWRITE TABLE dest1 SELECT 3 + 2, 3.0 + 2, 3 + 2.0, 3.0 + 2.0, 3 + CAST(2.0 AS INT) + CAST(CAST(0 AS SMALLINT) AS INT), CAST(1 AS BOOLEAN), CAST(TRUE AS INT) WHERE src.key = 86
 97PREHOOK: type: QUERY
 98PREHOOK: Input: default@src
 99PREHOOK: Output: default@dest1
100POSTHOOK: query: FROM src INSERT OVERWRITE TABLE dest1 SELECT 3 + 2, 3.0 + 2, 3 + 2.0, 3.0 + 2.0, 3 + CAST(2.0 AS INT) + CAST(CAST(0 AS SMALLINT) AS INT), CAST(1 AS BOOLEAN), CAST(TRUE AS INT) WHERE src.key = 86
101POSTHOOK: type: QUERY
102POSTHOOK: Input: default@src
103POSTHOOK: Output: default@dest1
104POSTHOOK: Lineage: dest1.c1 EXPRESSION []
105POSTHOOK: Lineage: dest1.c2 EXPRESSION []
106POSTHOOK: Lineage: dest1.c3 EXPRESSION []
107POSTHOOK: Lineage: dest1.c4 EXPRESSION []
108POSTHOOK: Lineage: dest1.c5 EXPRESSION []
109POSTHOOK: Lineage: dest1.c6 EXPRESSION []
110POSTHOOK: Lineage: dest1.c7 EXPRESSION []
111PREHOOK: query: select dest1.* FROM dest1
112PREHOOK: type: QUERY
113PREHOOK: Input: default@dest1
114PREHOOK: Output: file:/tmp/sdong/hive_2011-02-10_01-38-59_759_61484658803136536/-mr-10000
115POSTHOOK: query: select dest1.* FROM dest1
116POSTHOOK: type: QUERY
117POSTHOOK: Input: default@dest1
118POSTHOOK: Output: file:/tmp/sdong/hive_2011-02-10_01-38-59_759_61484658803136536/-mr-10000
119POSTHOOK: Lineage: dest1.c1 EXPRESSION []
120POSTHOOK: Lineage: dest1.c2 EXPRESSION []
121POSTHOOK: Lineage: dest1.c3 EXPRESSION []
122POSTHOOK: Lineage: dest1.c4 EXPRESSION []
123POSTHOOK: Lineage: dest1.c5 EXPRESSION []
124POSTHOOK: Lineage: dest1.c6 EXPRESSION []
125POSTHOOK: Lineage: dest1.c7 EXPRESSION []
1265	5.0	5.0	5.0	5	true	1