diff --git a/backends-velox/src/test/scala/org/apache/gluten/execution/ScalarFunctionsValidateSuite.scala b/backends-velox/src/test/scala/org/apache/gluten/execution/ScalarFunctionsValidateSuite.scala index adb8be51d66e..39c1b4560646 100644 --- a/backends-velox/src/test/scala/org/apache/gluten/execution/ScalarFunctionsValidateSuite.scala +++ b/backends-velox/src/test/scala/org/apache/gluten/execution/ScalarFunctionsValidateSuite.scala @@ -1270,4 +1270,10 @@ class ScalarFunctionsValidateSuite extends FunctionsValidateTest { } } } + + test("repeat") { + runQueryAndCompare("select repeat(c_comment, 5) from customer limit 50") { + checkGlutenOperatorMatch[ProjectExecTransformer] + } + } } diff --git a/cpp/velox/substrait/SubstraitToVeloxPlanValidator.cc b/cpp/velox/substrait/SubstraitToVeloxPlanValidator.cc index 8e6dd7c1c31f..6f0b9fadec21 100644 --- a/cpp/velox/substrait/SubstraitToVeloxPlanValidator.cc +++ b/cpp/velox/substrait/SubstraitToVeloxPlanValidator.cc @@ -65,7 +65,6 @@ static const std::unordered_set kBlackList = { "concat_ws", "from_json", "json_array_length", - "repeat", "trunc", "sequence", "approx_percentile", diff --git a/docs/velox-backend-support-progress.md b/docs/velox-backend-support-progress.md index 8429759fa381..01c730a891f9 100644 --- a/docs/velox-backend-support-progress.md +++ b/docs/velox-backend-support-progress.md @@ -171,7 +171,7 @@ Gluten supports 199 functions. (Drag to right to see all data types) | parse_url | | | | | | | | | | | | | | | | | | | | | | | | position | strpos | | | | | | | | | | | | | | | | | | | | | | | printf | | | | | | | | | | | | | | | | | | | | | | | -| repeat | | | | | | | | | | | | | | | | | | | | | | | +| repeat | | repeat | S | | | | | | | | | | | | | | | | | | | | | replace | replace | replace | S | | | | | | | | | | | S | | | | | | | | | | reverse | reverse | | S | | | | | | | | | | | S | | | | | | | | | | right | | | | | | | | | | | | | | | | | | | | | | |