From 324fd8d5b8015c6f0ef3455f8d2d401a54e1134d Mon Sep 17 00:00:00 2001 From: Ashutosh Chauhan Date: Sun, 1 Nov 2015 11:33:00 -0800 Subject: [PATCH] HIVE-12313 : Turn hive.optimize.union.remove on by default --- common/src/java/org/apache/hadoop/hive/conf/HiveConf.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/java/org/apache/hadoop/hive/conf/HiveConf.java b/common/src/java/org/apache/hadoop/hive/conf/HiveConf.java index b214344..ecee1c7 100644 --- a/common/src/java/org/apache/hadoop/hive/conf/HiveConf.java +++ b/common/src/java/org/apache/hadoop/hive/conf/HiveConf.java @@ -1302,7 +1302,7 @@ public void setSparkConfigUpdated(boolean isSparkConfigUpdated) { // whether to optimize union followed by select followed by filesink // It creates sub-directories in the final output, so should not be turned on in systems // where MAPREDUCE-1501 is not present - HIVE_OPTIMIZE_UNION_REMOVE("hive.optimize.union.remove", false, + HIVE_OPTIMIZE_UNION_REMOVE("hive.optimize.union.remove", true, "Whether to remove the union and push the operators between union and the filesink above union. \n" + "This avoids an extra scan of the output by union. This is independently useful for union\n" + "queries, and specially useful when hive.optimize.skewjoin.compiletime is set to true, since an\n" + -- 1.7.12.4 (Apple Git-37)