这是整个执行计划,大家帮忙看一下哇:- Explain
- STAGE DEPENDENCIES:
- Stage-5 is a root stage , consists of Stage-1
- Stage-1
- Stage-0 depends on stages: Stage-1
- Stage-2 depends on stages: Stage-0
-
- STAGE PLANS:
- Stage: Stage-5
- Conditional Operator
-
- Stage: Stage-1
- Map Reduce
- Map Operator Tree:
- TableScan
- alias: rawdata_sensor_a
- Statistics: Num rows: 3 Data size: 1510 Basic stats: COMPLETE Column stats: NONE
- Filter Operator
- predicate: (datediff(from_unixtime(rd_sen_ts), '2014-11-29') = 0) (type: boolean)
- Statistics: Num rows: 1 Data size: 503 Basic stats: COMPLETE Column stats: NONE
- Reduce Output Operator
- key expressions: rd_sen_smac (type: string)
- sort order: +
- Map-reduce partition columns: rd_sen_smac (type: string)
- Statistics: Num rows: 1 Data size: 503 Basic stats: COMPLETE Column stats: NONE
- value expressions: rd_sen_smac (type: string), rd_sen_devmac (type: string), rd_sen_rssi (type: string), rd_sen_ts (type: int), rd_sen_apmac (type: string)
- TableScan
- alias: sensor_shopinfo_localid
- Statistics: Num rows: 8 Data size: 280 Basic stats: COMPLETE Column stats: NONE
- Reduce Output Operator
- key expressions: sensormac (type: string)
- sort order: +
- Map-reduce partition columns: sensormac (type: string)
- Statistics: Num rows: 8 Data size: 280 Basic stats: COMPLETE Column stats: NONE
- value expressions: localid (type: string), maxrssi (type: int)
- Reduce Operator Tree:
- Join Operator
- condition map:
- Left Outer Join0 to 1
- condition expressions:
- 0 {VALUE._col2} {VALUE._col3}
- 1 {VALUE._col0} {VALUE._col2} {VALUE._col3} {VALUE._col4} {VALUE._col5}
- outputColumnNames: _col2, _col3, _col6, _col8, _col9, _col10, _col11
- Statistics: Num rows: 8 Data size: 308 Basic stats: COMPLETE Column stats: NONE
- Select Operator
- expressions: _col2 (type: string), _col2 (type: string), '' (type: string), '' (type: string), '' (type: string), CAST( from_unixtime(_col10, 'yyyy-MM-dd HH:00:00') AS TIMESTAMP) (type: timestamp), CAST( from_unixtime(_col10, 'yyyy-MM-dd') AS DATE) (type: date), CAST( from_unixtime(_col10) AS TIMESTAMP) (type: timestamp), _col10 (type: int), UDFToByte(if((_col9 >= _col3), '1', '2')) (type: tinyint), UDFToByte('1') (type: tinyint), _col8 (type: string), _col6 (type: string), _col11 (type: string), UDFToFloat(_col9) (type: float), UDFToFloat('') (type: float), UDFToFloat('') (type: float), UDFToInteger('') (type: int), UDFToDouble('') (type: double), UDFToDouble('') (type: double)
- outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13, _col14, _col15, _col16, _col17, _col18, _col19
- Statistics: Num rows: 8 Data size: 308 Basic stats: COMPLETE Column stats: NONE
- File Output Operator
- compressed: false
- Statistics: Num rows: 8 Data size: 308 Basic stats: COMPLETE Column stats: NONE
- table:
- input format: org.apache.hadoop.mapred.TextInputFormat
- output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
- serde: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe
- name: yhx_report_test.yhx_report_sourcesplit
-
- Stage: Stage-0
- Move Operator
- tables:
- replace: false
- table:
- input format: org.apache.hadoop.mapred.TextInputFormat
- output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
- serde: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe
- name: yhx_report_test.yhx_report_sourcesplit
-
- Stage: Stage-2
- Stats-Aggr Operator
-
- Time taken: 0.266 seconds, Fetched: 69 row(s)
复制代码
|