This is an automated email from the ASF dual-hosted git repository.
philo 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 62d55cf2b [VL] Enable Spark repeat function (#6419)
62d55cf2b is described below
commit 62d55cf2bbd3c1b237d773102cd5b1b23c4c600c
Author: Zhen Li <[email protected]>
AuthorDate: Fri Jul 12 16:23:42 2024 +0800
[VL] Enable Spark repeat function (#6419)
---
.../org/apache/gluten/execution/ScalarFunctionsValidateSuite.scala | 6 ++++++
cpp/velox/substrait/SubstraitToVeloxPlanValidator.cc | 1 -
docs/velox-backend-support-progress.md | 2 +-
3 files changed, 7 insertions(+), 2 deletions(-)
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 adb8be51d..39c1b4560 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 8e6dd7c1c..6f0b9fade 100644
--- a/cpp/velox/substrait/SubstraitToVeloxPlanValidator.cc
+++ b/cpp/velox/substrait/SubstraitToVeloxPlanValidator.cc
@@ -65,7 +65,6 @@ static const std::unordered_set<std::string> 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 8429759fa..01c730a89 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 | |
| | | | | | | |
| | | | | | | | |
| | | |
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]