| PREHOOK: query: CREATE TABLE t_test( |
| cint1 int, |
| cint2 int, |
| cdouble double, |
| cvarchar varchar(50), |
| cdecimal1 decimal(10,2), |
| cdecimal2 decimal(38,5) |
| ) |
| PREHOOK: type: CREATETABLE |
| PREHOOK: Output: database:default |
| PREHOOK: Output: default@t_test |
| POSTHOOK: query: CREATE TABLE t_test( |
| cint1 int, |
| cint2 int, |
| cdouble double, |
| cvarchar varchar(50), |
| cdecimal1 decimal(10,2), |
| cdecimal2 decimal(38,5) |
| ) |
| POSTHOOK: type: CREATETABLE |
| POSTHOOK: Output: database:default |
| POSTHOOK: Output: default@t_test |
| PREHOOK: query: INSERT INTO t_test VALUES |
| (NULL, NULL, NULL, NULL, NULL, NULL), |
| (8, 9, 2.0, 'one', 2.0, 2.0), (8, 9, 2.0, 'one', 2.0, 2.0), |
| (4, 2, 3.3, 'two', 3.3, 3.3), |
| (NULL, NULL, NULL, NULL, NULL, NULL), |
| (NULL, NULL, NULL, NULL, NULL, NULL), |
| (6, 2, 1.8, 'three', 1.8, 1.8), |
| (7, 8, 4.5, 'four', 4.5, 4.5), (7, 8, 4.5, 'four', 4.5, 4.5), (7, 8, 4.5, 'four', 4.5, 4.5), |
| (4, 1, 2.0, 'five', 2.0, 2.0), (4, 1, 2.0, 'five', 2.0, 2.0), (4, 1, 2.0, 'five', 2.0, 2.0), |
| (NULL, NULL, NULL, NULL, NULL, NULL) |
| PREHOOK: type: QUERY |
| PREHOOK: Input: _dummy_database@_dummy_table |
| PREHOOK: Output: default@t_test |
| POSTHOOK: query: INSERT INTO t_test VALUES |
| (NULL, NULL, NULL, NULL, NULL, NULL), |
| (8, 9, 2.0, 'one', 2.0, 2.0), (8, 9, 2.0, 'one', 2.0, 2.0), |
| (4, 2, 3.3, 'two', 3.3, 3.3), |
| (NULL, NULL, NULL, NULL, NULL, NULL), |
| (NULL, NULL, NULL, NULL, NULL, NULL), |
| (6, 2, 1.8, 'three', 1.8, 1.8), |
| (7, 8, 4.5, 'four', 4.5, 4.5), (7, 8, 4.5, 'four', 4.5, 4.5), (7, 8, 4.5, 'four', 4.5, 4.5), |
| (4, 1, 2.0, 'five', 2.0, 2.0), (4, 1, 2.0, 'five', 2.0, 2.0), (4, 1, 2.0, 'five', 2.0, 2.0), |
| (NULL, NULL, NULL, NULL, NULL, NULL) |
| POSTHOOK: type: QUERY |
| POSTHOOK: Input: _dummy_database@_dummy_table |
| POSTHOOK: Output: default@t_test |
| POSTHOOK: Lineage: t_test.cdecimal1 SCRIPT [] |
| POSTHOOK: Lineage: t_test.cdecimal2 SCRIPT [] |
| POSTHOOK: Lineage: t_test.cdouble SCRIPT [] |
| POSTHOOK: Lineage: t_test.cint1 SCRIPT [] |
| POSTHOOK: Lineage: t_test.cint2 SCRIPT [] |
| POSTHOOK: Lineage: t_test.cvarchar SCRIPT [] |
| PREHOOK: query: EXPLAIN VECTORIZATION DETAIL |
| SELECT cint1 FROM t_test GROUP BY cint1 ORDER BY cint1 LIMIT 3 |
| PREHOOK: type: QUERY |
| PREHOOK: Input: default@t_test |
| #### A masked pattern was here #### |
| POSTHOOK: query: EXPLAIN VECTORIZATION DETAIL |
| SELECT cint1 FROM t_test GROUP BY cint1 ORDER BY cint1 LIMIT 3 |
| POSTHOOK: type: QUERY |
| POSTHOOK: Input: default@t_test |
| #### A masked pattern was here #### |
| PLAN VECTORIZATION: |
| enabled: true |
| enabledConditionsMet: [hive.vectorized.execution.enabled IS true] |
| |
| STAGE DEPENDENCIES: |
| Stage-1 is a root stage |
| Stage-0 depends on stages: Stage-1 |
| |
| STAGE PLANS: |
| Stage: Stage-1 |
| Tez |
| #### A masked pattern was here #### |
| Edges: |
| Reducer 2 <- Map 1 (SIMPLE_EDGE) |
| Reducer 3 <- Reducer 2 (SIMPLE_EDGE) |
| #### A masked pattern was here #### |
| Vertices: |
| Map 1 |
| Map Operator Tree: |
| TableScan |
| alias: t_test |
| Statistics: Num rows: 14 Data size: 44 Basic stats: COMPLETE Column stats: COMPLETE |
| TableScan Vectorization: |
| native: true |
| vectorizationSchemaColumns: [0:cint1:int, 1:cint2:int, 2:cdouble:double, 3:cvarchar:varchar(50), 4:cdecimal1:decimal(10,2)/DECIMAL_64, 5:cdecimal2:decimal(38,5), 6:ROW__ID:struct<writeid:bigint,bucketid:int,rowid:bigint>] |
| Top N Key Operator |
| sort order: + |
| keys: cint1 (type: int) |
| null sort order: z |
| Statistics: Num rows: 14 Data size: 44 Basic stats: COMPLETE Column stats: COMPLETE |
| top n: 3 |
| Top N Key Vectorization: |
| className: VectorTopNKeyOperator |
| keyExpressions: col 0:int |
| native: true |
| Select Operator |
| expressions: cint1 (type: int) |
| outputColumnNames: cint1 |
| Select Vectorization: |
| className: VectorSelectOperator |
| native: true |
| projectedOutputColumnNums: [0] |
| Statistics: Num rows: 14 Data size: 44 Basic stats: COMPLETE Column stats: COMPLETE |
| Group By Operator |
| Group By Vectorization: |
| className: VectorGroupByOperator |
| groupByMode: HASH |
| keyExpressions: col 0:int |
| native: false |
| vectorProcessingMode: HASH |
| projectedOutputColumnNums: [] |
| keys: cint1 (type: int) |
| minReductionHashAggr: 0.64285713 |
| mode: hash |
| outputColumnNames: _col0 |
| Statistics: Num rows: 5 Data size: 12 Basic stats: COMPLETE Column stats: COMPLETE |
| Reduce Output Operator |
| key expressions: _col0 (type: int) |
| null sort order: z |
| sort order: + |
| Map-reduce partition columns: _col0 (type: int) |
| Reduce Sink Vectorization: |
| className: VectorReduceSinkLongOperator |
| keyColumns: 0:int |
| native: true |
| nativeConditionsMet: hive.vectorized.execution.reducesink.new.enabled IS true, hive.execution.engine tez IN [tez, spark] IS true, No PTF TopN IS true, No DISTINCT columns IS true, BinarySortableSerDe for keys IS true, LazyBinarySerDe for values IS true |
| Statistics: Num rows: 5 Data size: 12 Basic stats: COMPLETE Column stats: COMPLETE |
| Execution mode: vectorized, llap |
| LLAP IO: all inputs |
| Map Vectorization: |
| enabled: true |
| enabledConditionsMet: hive.vectorized.use.vector.serde.deserialize IS true |
| inputFormatFeatureSupport: [DECIMAL_64] |
| featureSupportInUse: [DECIMAL_64] |
| inputFileFormats: org.apache.hadoop.mapred.TextInputFormat |
| allNative: false |
| usesVectorUDFAdaptor: false |
| vectorized: true |
| rowBatchContext: |
| dataColumnCount: 6 |
| includeColumns: [0] |
| dataColumns: cint1:int, cint2:int, cdouble:double, cvarchar:varchar(50), cdecimal1:decimal(10,2)/DECIMAL_64, cdecimal2:decimal(38,5) |
| partitionColumnCount: 0 |
| scratchColumnTypeNames: [] |
| Reducer 2 |
| Execution mode: vectorized, llap |
| Reduce Vectorization: |
| enabled: true |
| enableConditionsMet: hive.vectorized.execution.reduce.enabled IS true, hive.execution.engine tez IN [tez, spark] IS true |
| reduceColumnNullOrder: z |
| reduceColumnSortOrder: + |
| allNative: false |
| usesVectorUDFAdaptor: false |
| vectorized: true |
| rowBatchContext: |
| dataColumnCount: 1 |
| dataColumns: KEY._col0:int |
| partitionColumnCount: 0 |
| scratchColumnTypeNames: [] |
| Reduce Operator Tree: |
| Group By Operator |
| Group By Vectorization: |
| className: VectorGroupByOperator |
| groupByMode: MERGEPARTIAL |
| keyExpressions: col 0:int |
| native: false |
| vectorProcessingMode: MERGE_PARTIAL |
| projectedOutputColumnNums: [] |
| keys: KEY._col0 (type: int) |
| mode: mergepartial |
| outputColumnNames: _col0 |
| Statistics: Num rows: 5 Data size: 12 Basic stats: COMPLETE Column stats: COMPLETE |
| Reduce Output Operator |
| key expressions: _col0 (type: int) |
| null sort order: z |
| sort order: + |
| Reduce Sink Vectorization: |
| className: VectorReduceSinkObjectHashOperator |
| keyColumns: 0:int |
| native: true |
| nativeConditionsMet: hive.vectorized.execution.reducesink.new.enabled IS true, hive.execution.engine tez IN [tez, spark] IS true, No PTF TopN IS true, No DISTINCT columns IS true, BinarySortableSerDe for keys IS true, LazyBinarySerDe for values IS true |
| Statistics: Num rows: 5 Data size: 12 Basic stats: COMPLETE Column stats: COMPLETE |
| Reducer 3 |
| Execution mode: vectorized, llap |
| Reduce Vectorization: |
| enabled: true |
| enableConditionsMet: hive.vectorized.execution.reduce.enabled IS true, hive.execution.engine tez IN [tez, spark] IS true |
| reduceColumnNullOrder: z |
| reduceColumnSortOrder: + |
| allNative: false |
| usesVectorUDFAdaptor: false |
| vectorized: true |
| rowBatchContext: |
| dataColumnCount: 1 |
| dataColumns: KEY.reducesinkkey0:int |
| partitionColumnCount: 0 |
| scratchColumnTypeNames: [] |
| Reduce Operator Tree: |
| Select Operator |
| expressions: KEY.reducesinkkey0 (type: int) |
| outputColumnNames: _col0 |
| Select Vectorization: |
| className: VectorSelectOperator |
| native: true |
| projectedOutputColumnNums: [0] |
| Statistics: Num rows: 5 Data size: 12 Basic stats: COMPLETE Column stats: COMPLETE |
| Limit |
| Number of rows: 3 |
| Limit Vectorization: |
| className: VectorLimitOperator |
| native: true |
| Statistics: Num rows: 3 Data size: 8 Basic stats: COMPLETE Column stats: COMPLETE |
| File Output Operator |
| compressed: false |
| File Sink Vectorization: |
| className: VectorFileSinkOperator |
| native: false |
| Statistics: Num rows: 3 Data size: 8 Basic stats: COMPLETE Column stats: COMPLETE |
| table: |
| input format: org.apache.hadoop.mapred.SequenceFileInputFormat |
| output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat |
| serde: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe |
| |
| Stage: Stage-0 |
| Fetch Operator |
| limit: 3 |
| Processor Tree: |
| ListSink |
| |
| PREHOOK: query: SELECT cint1 FROM t_test GROUP BY cint1 ORDER BY cint1 LIMIT 3 |
| PREHOOK: type: QUERY |
| PREHOOK: Input: default@t_test |
| #### A masked pattern was here #### |
| POSTHOOK: query: SELECT cint1 FROM t_test GROUP BY cint1 ORDER BY cint1 LIMIT 3 |
| POSTHOOK: type: QUERY |
| POSTHOOK: Input: default@t_test |
| #### A masked pattern was here #### |
| 4 |
| 6 |
| 7 |
| PREHOOK: query: SELECT cint1, cint2 FROM t_test GROUP BY cint1, cint2 ORDER BY cint1, cint2 LIMIT 3 |
| PREHOOK: type: QUERY |
| PREHOOK: Input: default@t_test |
| #### A masked pattern was here #### |
| POSTHOOK: query: SELECT cint1, cint2 FROM t_test GROUP BY cint1, cint2 ORDER BY cint1, cint2 LIMIT 3 |
| POSTHOOK: type: QUERY |
| POSTHOOK: Input: default@t_test |
| #### A masked pattern was here #### |
| 4 1 |
| 4 2 |
| 6 2 |
| PREHOOK: query: SELECT cint1, cint2 FROM t_test GROUP BY cint1, cint2 ORDER BY cint1 DESC, cint2 LIMIT 3 |
| PREHOOK: type: QUERY |
| PREHOOK: Input: default@t_test |
| #### A masked pattern was here #### |
| POSTHOOK: query: SELECT cint1, cint2 FROM t_test GROUP BY cint1, cint2 ORDER BY cint1 DESC, cint2 LIMIT 3 |
| POSTHOOK: type: QUERY |
| POSTHOOK: Input: default@t_test |
| #### A masked pattern was here #### |
| NULL NULL |
| 8 9 |
| 7 8 |
| PREHOOK: query: SELECT cint1, cdouble FROM t_test GROUP BY cint1, cdouble ORDER BY cint1, cdouble LIMIT 3 |
| PREHOOK: type: QUERY |
| PREHOOK: Input: default@t_test |
| #### A masked pattern was here #### |
| POSTHOOK: query: SELECT cint1, cdouble FROM t_test GROUP BY cint1, cdouble ORDER BY cint1, cdouble LIMIT 3 |
| POSTHOOK: type: QUERY |
| POSTHOOK: Input: default@t_test |
| #### A masked pattern was here #### |
| 4 2.0 |
| 4 3.3 |
| 6 1.8 |
| PREHOOK: query: SELECT cvarchar, cdouble FROM t_test GROUP BY cvarchar, cdouble ORDER BY cvarchar, cdouble LIMIT 3 |
| PREHOOK: type: QUERY |
| PREHOOK: Input: default@t_test |
| #### A masked pattern was here #### |
| POSTHOOK: query: SELECT cvarchar, cdouble FROM t_test GROUP BY cvarchar, cdouble ORDER BY cvarchar, cdouble LIMIT 3 |
| POSTHOOK: type: QUERY |
| POSTHOOK: Input: default@t_test |
| #### A masked pattern was here #### |
| five 2.0 |
| four 4.5 |
| one 2.0 |
| PREHOOK: query: SELECT cdecimal1, cdecimal2 FROM t_test GROUP BY cdecimal1, cdecimal2 ORDER BY cdecimal1, cdecimal2 LIMIT 3 |
| PREHOOK: type: QUERY |
| PREHOOK: Input: default@t_test |
| #### A masked pattern was here #### |
| POSTHOOK: query: SELECT cdecimal1, cdecimal2 FROM t_test GROUP BY cdecimal1, cdecimal2 ORDER BY cdecimal1, cdecimal2 LIMIT 3 |
| POSTHOOK: type: QUERY |
| POSTHOOK: Input: default@t_test |
| #### A masked pattern was here #### |
| 1.80 1.80000 |
| 2.00 2.00000 |
| 3.30 3.30000 |
| PREHOOK: query: DROP TABLE t_test |
| PREHOOK: type: DROPTABLE |
| PREHOOK: Input: default@t_test |
| PREHOOK: Output: default@t_test |
| POSTHOOK: query: DROP TABLE t_test |
| POSTHOOK: type: DROPTABLE |
| POSTHOOK: Input: default@t_test |
| POSTHOOK: Output: default@t_test |