PREHOOK: query: explain select csmallint, case when csmallint = 418 then "a" when csmallint = 12205 then "b" else "c" end, case csmallint when 418 then "a" when 12205 then "b" else "c" end from alltypesorc where csmallint = 418 or csmallint = 12205 or csmallint = 10583 PREHOOK: type: QUERY POSTHOOK: query: explain select csmallint, case when csmallint = 418 then "a" when csmallint = 12205 then "b" else "c" end, case csmallint when 418 then "a" when 12205 then "b" else "c" end from alltypesorc where csmallint = 418 or csmallint = 12205 or csmallint = 10583 POSTHOOK: type: QUERY STAGE DEPENDENCIES: Stage-1 is a root stage Stage-0 depends on stages: Stage-1 STAGE PLANS: Stage: Stage-1 Map Reduce Map Operator Tree: TableScan alias: alltypesorc Statistics: Num rows: 12288 Data size: 2641964 Basic stats: COMPLETE Column stats: NONE Filter Operator predicate: ((csmallint = 418) or ((csmallint = 12205) or (csmallint = 10583))) (type: boolean) Statistics: Num rows: 12288 Data size: 2641964 Basic stats: COMPLETE Column stats: NONE Select Operator expressions: csmallint (type: smallint), CASE WHEN ((csmallint = 418)) THEN ('a') WHEN ((csmallint = 12205)) THEN ('b') ELSE ('c') END (type: string), CASE (csmallint) WHEN (418) THEN ('a') WHEN (12205) THEN ('b') ELSE ('c') END (type: string) outputColumnNames: _col0, _col1, _col2 Statistics: Num rows: 12288 Data size: 2641964 Basic stats: COMPLETE Column stats: NONE File Output Operator compressed: false Statistics: Num rows: 12288 Data size: 2641964 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 Execution mode: vectorized Stage: Stage-0 Fetch Operator limit: -1 Processor Tree: ListSink PREHOOK: query: select csmallint, case when csmallint = 418 then "a" when csmallint = 12205 then "b" else "c" end, case csmallint when 418 then "a" when 12205 then "b" else "c" end from alltypesorc where csmallint = 418 or csmallint = 12205 or csmallint = 10583 PREHOOK: type: QUERY PREHOOK: Input: default@alltypesorc #### A masked pattern was here #### POSTHOOK: query: select csmallint, case when csmallint = 418 then "a" when csmallint = 12205 then "b" else "c" end, case csmallint when 418 then "a" when 12205 then "b" else "c" end from alltypesorc where csmallint = 418 or csmallint = 12205 or csmallint = 10583 POSTHOOK: type: QUERY POSTHOOK: Input: default@alltypesorc #### A masked pattern was here #### 12205 b b 10583 c c 418 a a 12205 b b