/tags/release-0.0.0-rc0/hive/external/ql/src/test/results/clientpositive/input26.q.out
text | 186 lines | 179 code | 7 blank | 0 comment | 0 complexity | 5c9175917d151f629ad4fc6258a086d2 MD5 | raw file
Possible License(s): Apache-2.0, BSD-3-Clause, JSON, CPL-1.0
- PREHOOK: query: explain
- select * from (
- select * from srcpart a where a.ds = '2008-04-08' and a.hr = '11' order by a.key limit 5
- union all
- select * from srcpart b where b.ds = '2008-04-08' and b.hr = '14' limit 5
- )subq
- PREHOOK: type: QUERY
- POSTHOOK: query: explain
- select * from (
- select * from srcpart a where a.ds = '2008-04-08' and a.hr = '11' order by a.key limit 5
- union all
- select * from srcpart b where b.ds = '2008-04-08' and b.hr = '14' limit 5
- )subq
- POSTHOOK: type: QUERY
- ABSTRACT SYNTAX TREE:
- (TOK_QUERY (TOK_FROM (TOK_SUBQUERY (TOK_UNION (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_WHERE (and (= (. (TOK_TABLE_OR_COL a) ds) '2008-04-08') (= (. (TOK_TABLE_OR_COL a) hr) '11'))) (TOK_ORDERBY (TOK_TABSORTCOLNAMEASC (. (TOK_TABLE_OR_COL a) key))) (TOK_LIMIT 5))) (TOK_QUERY (TOK_FROM (TOK_TABREF (TOK_TABNAME srcpart) b)) (TOK_INSERT (TOK_DESTINATION (TOK_DIR TOK_TMP_FILE)) (TOK_SELECT (TOK_SELEXPR TOK_ALLCOLREF)) (TOK_WHERE (and (= (. (TOK_TABLE_OR_COL b) ds) '2008-04-08') (= (. (TOK_TABLE_OR_COL b) hr) '14'))) (TOK_LIMIT 5)))) subq)) (TOK_INSERT (TOK_DESTINATION (TOK_DIR TOK_TMP_FILE)) (TOK_SELECT (TOK_SELEXPR TOK_ALLCOLREF))))
- STAGE DEPENDENCIES:
- Stage-1 is a root stage
- Stage-2 depends on stages: Stage-1, Stage-3
- Stage-3 is a root stage
- Stage-0 is a root stage
- STAGE PLANS:
- Stage: Stage-1
- Map Reduce
- Alias -> Map Operator Tree:
- null-subquery1:subq-subquery1:a
- TableScan
- alias: a
- Filter Operator
- predicate:
- expr: ((ds = '2008-04-08') and (hr = '11'))
- type: boolean
- Select Operator
- expressions:
- expr: key
- type: string
- expr: value
- type: string
- expr: ds
- type: string
- expr: hr
- type: string
- outputColumnNames: _col0, _col1, _col2, _col3
- Reduce Output Operator
- key expressions:
- expr: _col0
- type: string
- sort order: +
- tag: -1
- value expressions:
- expr: _col0
- type: string
- expr: _col1
- type: string
- expr: _col2
- type: string
- expr: _col3
- type: string
- Reduce Operator Tree:
- Extract
- Limit
- File Output Operator
- compressed: false
- GlobalTableId: 0
- table:
- input format: org.apache.hadoop.mapred.SequenceFileInputFormat
- output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat
- Stage: Stage-2
- Map Reduce
- Alias -> Map Operator Tree:
- file:/tmp/sdong/hive_2011-02-10_15-54-47_775_6322428928723831214/-mr-10002
- Union
- Select Operator
- expressions:
- expr: _col0
- type: string
- expr: _col1
- type: string
- expr: _col2
- type: string
- expr: _col3
- type: string
- outputColumnNames: _col0, _col1, _col2, _col3
- File Output Operator
- compressed: false
- GlobalTableId: 0
- table:
- input format: org.apache.hadoop.mapred.TextInputFormat
- output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
- file:/tmp/sdong/hive_2011-02-10_15-54-47_775_6322428928723831214/-mr-10003
- Union
- Select Operator
- expressions:
- expr: _col0
- type: string
- expr: _col1
- type: string
- expr: _col2
- type: string
- expr: _col3
- type: string
- outputColumnNames: _col0, _col1, _col2, _col3
- File Output Operator
- compressed: false
- GlobalTableId: 0
- table:
- input format: org.apache.hadoop.mapred.TextInputFormat
- output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
- Stage: Stage-3
- Map Reduce
- Alias -> Map Operator Tree:
- null-subquery2:subq-subquery2:b
- TableScan
- alias: b
- Filter Operator
- predicate:
- expr: ((ds = '2008-04-08') and (hr = '14'))
- type: boolean
- Filter Operator
- predicate:
- expr: ((ds = '2008-04-08') and (hr = '14'))
- type: boolean
- Select Operator
- expressions:
- expr: key
- type: string
- expr: value
- type: string
- expr: ds
- type: string
- expr: hr
- type: string
- outputColumnNames: _col0, _col1, _col2, _col3
- Limit
- Reduce Output Operator
- sort order:
- tag: -1
- value expressions:
- expr: _col0
- type: string
- expr: _col1
- type: string
- expr: _col2
- type: string
- expr: _col3
- type: string
- Reduce Operator Tree:
- Extract
- Limit
- File Output Operator
- compressed: false
- GlobalTableId: 0
- table:
- input format: org.apache.hadoop.mapred.SequenceFileInputFormat
- output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat
- Stage: Stage-0
- Fetch Operator
- limit: -1
- PREHOOK: query: select * from (
- select * from srcpart a where a.ds = '2008-04-08' and a.hr = '11' order by a.key limit 5
- union all
- select * from srcpart b where b.ds = '2008-04-08' and b.hr = '14' limit 5
- )subq
- PREHOOK: type: QUERY
- PREHOOK: Input: default@srcpart@ds=2008-04-08/hr=11
- PREHOOK: Output: file:/tmp/sdong/hive_2011-02-10_15-54-47_937_1412967694655761034/-mr-10000
- POSTHOOK: query: select * from (
- select * from srcpart a where a.ds = '2008-04-08' and a.hr = '11' order by a.key limit 5
- union all
- select * from srcpart b where b.ds = '2008-04-08' and b.hr = '14' limit 5
- )subq
- POSTHOOK: type: QUERY
- POSTHOOK: Input: default@srcpart@ds=2008-04-08/hr=11
- POSTHOOK: Output: file:/tmp/sdong/hive_2011-02-10_15-54-47_937_1412967694655761034/-mr-10000
- 0 val_0 2008-04-08 11
- 0 val_0 2008-04-08 11
- 0 val_0 2008-04-08 11
- 10 val_10 2008-04-08 11
- 100 val_100 2008-04-08 11