set hive.merge.orcfile.stripe.level=true; DROP TABLE orcfile_merge3a; DROP TABLE orcfile_merge3b; CREATE TABLE orcfile_merge3a (key int, value string) PARTITIONED BY (ds string) STORED AS TEXTFILE; CREATE TABLE orcfile_merge3b (key int, value string) STORED AS ORC; INSERT OVERWRITE TABLE orcfile_merge3a PARTITION (ds='1') SELECT * FROM src; INSERT OVERWRITE TABLE orcfile_merge3a PARTITION (ds='2') SELECT * FROM src; set hive.input.format=org.apache.hadoop.hive.ql.io.HiveInputFormat; EXPLAIN INSERT OVERWRITE TABLE orcfile_merge3b SELECT key, value FROM orcfile_merge3a; INSERT OVERWRITE TABLE orcfile_merge3b SELECT key, value FROM orcfile_merge3a; dfs -ls ${hiveconf:hive.metastore.warehouse.dir}/orcfile_merge3b/; SELECT SUM(HASH(c)) FROM ( SELECT TRANSFORM(key, value) USING 'tr \t _' AS (c) FROM orcfile_merge3a ) t; set hive.input.format=org.apache.hadoop.hive.ql.io.HiveInputFormat; SELECT SUM(HASH(c)) FROM ( SELECT TRANSFORM(key, value) USING 'tr \t _' AS (c) FROM orcfile_merge3b ) t; DROP TABLE orcfile_merge3a; DROP TABLE orcfile_merge3b;