This is an automated email from the ASF dual-hosted git repository.

liuneng1994 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/gluten.git


The following commit(s) were added to refs/heads/main by this push:
     new a1d1f61727 [Bolt] Update default value of 
hashAggregationCompositeOutputEnabled to false
a1d1f61727 is described below

commit a1d1f617279368d88778a14256b898402f5378a1
Author: Hao Zhang <[email protected]>
AuthorDate: Tue Dec 1 10:26:29 2026 +0800

    [Bolt] Update default value of hashAggregationCompositeOutputEnabled to 
false
    
    What changes are proposed in this pull request?
    Update the default value of 
spark.gluten.sql.columnar.backend.bolt.hashAggregationCompositeOutputEnabled to 
false, this config is only used by bolt.
    
    This config value is inconsistent in gluten and bolt, it's true in gluten 
while false in bolt. This PR makes them equal.
    
    # gluten source code
          
configs[bolt::core::QueryConfig::kHashAggregationCompositeOutputEnabled] =
              
std::to_string(boltCfg_->get<bool>(kHashAggregationCompositeOutputEnabled, 
true));
    
    # bolt source code
      bool isHashAggregationCompositeOutputEnabled() const {
        return get<bool>(kHashAggregationCompositeOutputEnabled, false);
      }
    And bolt will encounter an error when run TPC-DS benchmark with 
hashAggregationCompositeOutputEnabled is true. It is better to disable it for 
now in order to achieve "plug-and-play" functionality.
    
    How was this patch tested?
    No need to test.
    
    Was this patch authored or co-authored using generative AI tooling?
    No.
---
 cpp/bolt/compute/WholeStageResultIterator.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cpp/bolt/compute/WholeStageResultIterator.cc 
b/cpp/bolt/compute/WholeStageResultIterator.cc
index 373c2a897e..0775ba25d4 100644
--- a/cpp/bolt/compute/WholeStageResultIterator.cc
+++ b/cpp/bolt/compute/WholeStageResultIterator.cc
@@ -728,7 +728,7 @@ std::unordered_map<std::string, std::string> 
WholeStageResultIterator::getQueryC
       configs[bolt::core::QueryConfig::kMaxHashTableSize] =
           std::to_string(boltCfg_->get<int32_t>(kMaxHashTableSize, 50L << 20));
       configs[bolt::core::QueryConfig::kHashAggregationCompositeOutputEnabled] 
=
-          
std::to_string(boltCfg_->get<bool>(kHashAggregationCompositeOutputEnabled, 
true));
+          
std::to_string(boltCfg_->get<bool>(kHashAggregationCompositeOutputEnabled, 
false));
       configs[bolt::core::QueryConfig::kHashAggregationUniqueRowOpt] =
           std::to_string(boltCfg_->get<bool>(kHashAggregationUniqueRowOpt, 
true));
       
configs[bolt::core::QueryConfig::kHashAggregationCompositeOutputAccumulatorRatio]
 =


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to