From 8599394d3fad4f0a4f78f85d3cff1413e1937135 Mon Sep 17 00:00:00 2001 From: Chengcheng Jin Date: Wed, 8 Apr 2026 16:05:05 +0100 Subject: [PATCH] [Minor] register the Spark functions in GPU --- cpp/velox/compute/VeloxBackend.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cpp/velox/compute/VeloxBackend.cc b/cpp/velox/compute/VeloxBackend.cc index bc2104f3f63d..b13ec7256259 100644 --- a/cpp/velox/compute/VeloxBackend.cc +++ b/cpp/velox/compute/VeloxBackend.cc @@ -32,7 +32,9 @@ #include "operators/plannodes/CudfVectorStream.h" #include "velox/experimental/cudf/CudfConfig.h" #include "velox/experimental/cudf/connectors/hive/CudfHiveConnector.h" +#include "velox/experimental/cudf/exec/SparkAggregateFunctions.h" #include "velox/experimental/cudf/exec/ToCudf.h" +#include "velox/experimental/cudf/expression/SparkFunctions.h" #endif #include "compute/VeloxRuntime.h" @@ -184,6 +186,8 @@ void VeloxBackend::init( cudfConfig.initialize(std::move(options)); velox::cudf_velox::registerCudf(); velox::exec::Operator::registerOperator(std::make_unique()); + velox::cudf_velox::registerSparkFunctions(prestoBuiltinFunctionPrefix_); + velox::cudf_velox::registerSparkAggregateFunctions(""); } #endif