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

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


The following commit(s) were added to refs/heads/main by this push:
     new 779724352 [GLUTEN-7222][CH] Fail to compile ch backend (#7226)
779724352 is described below

commit 779724352fdffa50deae1ab4d95e0460d5ccef8d
Author: lgbo <[email protected]>
AuthorDate: Sat Sep 14 09:56:32 2024 +0800

    [GLUTEN-7222][CH] Fail to compile ch backend (#7226)
    
    [GLUTEN-7222][CH] Fail to compile ch backend
---
 cpp-ch/local-engine/Parser/RelParsers/RelParser.cpp | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/cpp-ch/local-engine/Parser/RelParsers/RelParser.cpp 
b/cpp-ch/local-engine/Parser/RelParsers/RelParser.cpp
index c5e7d4b47..813fadbb3 100644
--- a/cpp-ch/local-engine/Parser/RelParsers/RelParser.cpp
+++ b/cpp-ch/local-engine/Parser/RelParsers/RelParser.cpp
@@ -22,6 +22,7 @@
 #include <AggregateFunctions/AggregateFunctionFactory.h>
 #include <DataTypes/DataTypeAggregateFunction.h>
 #include <DataTypes/IDataType.h>
+#include <DataTypes/DataTypeNullable.h>
 #include <Poco/Logger.h>
 #include <Poco/StringTokenizer.h>
 #include <Common/Exception.h>
@@ -49,7 +50,7 @@ std::vector<const substrait::Rel *> 
RelParser::getInputs(const substrait::Rel &
 AggregateFunctionPtr RelParser::getAggregateFunction(
     const String & name, DB::DataTypes arg_types, 
DB::AggregateFunctionProperties & properties, const DB::Array & parameters)
 {
-    auto & factory = AggregateFunctionFactory::instance();
+    auto & factory = DB::AggregateFunctionFactory::instance();
     auto action = NullsAction::EMPTY;
 
     String function_name = name;
@@ -57,8 +58,8 @@ AggregateFunctionPtr RelParser::getAggregateFunction(
         function_name = "sparkAvg";
     else if (name == "avgPartialMerge")
     {
-        if (auto agg_func = typeid_cast<const DataTypeAggregateFunction 
*>(arg_types[0].get());
-            !agg_func->getArgumentsDataTypes().empty() && 
isDecimal(removeNullable(agg_func->getArgumentsDataTypes()[0])))
+        if (auto agg_func = typeid_cast<const DB::DataTypeAggregateFunction 
*>(arg_types[0].get());
+            !agg_func->getArgumentsDataTypes().empty() && 
DB::isDecimal(DB::removeNullable(agg_func->getArgumentsDataTypes()[0])))
         {
             function_name = "sparkAvgPartialMerge";
         }
@@ -144,7 +145,7 @@ void RelParserFactory::registerBuilder(UInt32 k, 
RelParserBuilder builder)
     auto it = builders.find(k);
     if (it != builders.end())
     {
-        throw Exception(DB::ErrorCodes::BAD_ARGUMENTS, "Duplicated builder 
key:{}", k);
+        throw DB::Exception(DB::ErrorCodes::BAD_ARGUMENTS, "Duplicated builder 
key:{}", k);
     }
     builders[k] = builder;
 }


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

Reply via email to