@@ -171,6 +171,7 @@ public class SessionVariable implements Serializable, Writable {
171171 public static final String ENABLE_DISTINCT_STREAMING_AGG_FORCE_PASSTHROUGH =
172172 "enable_distinct_streaming_agg_force_passthrough" ;
173173 public static final String ENABLE_BROADCAST_JOIN_FORCE_PASSTHROUGH = "enable_broadcast_join_force_passthrough" ;
174+ public static final String ENABLE_LOCAL_EXCHANGE_BEFORE_AGG = "enable_local_exchange_before_agg" ;
174175 public static final String DISABLE_COLOCATE_PLAN = "disable_colocate_plan" ;
175176 public static final String COLOCATE_MAX_PARALLEL_NUM = "colocate_max_parallel_num" ;
176177 public static final String ENABLE_BUCKET_SHUFFLE_JOIN = "enable_bucket_shuffle_join" ;
@@ -1300,6 +1301,9 @@ public void checkQuerySlotCount(String slotCnt) {
13001301 @ VarAttrDef .VarAttr (name = ENABLE_STREAMING_AGG_HASH_JOIN_FORCE_PASSTHROUGH , fuzzy = true )
13011302 public boolean enableStreamingAggHashJoinForcePassthrough = true ;
13021303
1304+ @ VarAttrDef .VarAttr (name = ENABLE_LOCAL_EXCHANGE_BEFORE_AGG , fuzzy = true )
1305+ public boolean enableLocalExchangeBeforeAgg = true ;
1306+
13031307 @ VarAttrDef .VarAttr (name = ENABLE_DISTINCT_STREAMING_AGG_FORCE_PASSTHROUGH , fuzzy = true )
13041308 public boolean enableDistinctStreamingAggForcePassthrough = true ;
13051309
@@ -3615,6 +3619,7 @@ public void initFuzzyModeVariables() {
36153619 this .enableCommonExpPushDownForInvertedIndex = random .nextBoolean ();
36163620 this .disableStreamPreaggregations = random .nextBoolean ();
36173621 this .enableStreamingAggHashJoinForcePassthrough = random .nextBoolean ();
3622+ this .enableLocalExchangeBeforeAgg = random .nextBoolean ();
36183623 this .enableDistinctStreamingAggForcePassthrough = random .nextBoolean ();
36193624 this .enableBroadcastJoinForcePassthrough = random .nextBoolean ();
36203625 this .enableShareHashTableForBroadcastJoin = random .nextBoolean ();
@@ -5350,6 +5355,7 @@ public TQueryOptions toThrift() {
53505355 tResult .setDisableStreamPreaggregations (disableStreamPreaggregations );
53515356 tResult .setEnableDistinctStreamingAggregation (enableDistinctStreamingAggregation );
53525357 tResult .setEnableStreamingAggHashJoinForcePassthrough (enableStreamingAggHashJoinForcePassthrough );
5358+ tResult .setEnableLocalExchangeBeforeAgg (enableLocalExchangeBeforeAgg );
53535359 tResult .setEnableDistinctStreamingAggForcePassthrough (enableDistinctStreamingAggForcePassthrough );
53545360 tResult .setEnableBroadcastJoinForcePassthrough (enableBroadcastJoinForcePassthrough );
53555361 tResult .setPartitionTopnMaxPartitions (partitionTopNMaxPartitions );
0 commit comments