Skip to content

Commit

Permalink
[VL] Enable Spark repeat function (#6419)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhli1142015 authored Jul 12, 2024
1 parent e95f32a commit 62d55cf
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1270,4 +1270,10 @@ class ScalarFunctionsValidateSuite extends FunctionsValidateTest {
}
}
}

test("repeat") {
runQueryAndCompare("select repeat(c_comment, 5) from customer limit 50") {
checkGlutenOperatorMatch[ProjectExecTransformer]
}
}
}
1 change: 0 additions & 1 deletion cpp/velox/substrait/SubstraitToVeloxPlanValidator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ static const std::unordered_set<std::string> kBlackList = {
"concat_ws",
"from_json",
"json_array_length",
"repeat",
"trunc",
"sequence",
"approx_percentile",
Expand Down
2 changes: 1 addition & 1 deletion docs/velox-backend-support-progress.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 | | | | | | | | | | | | | | | | | | | | | | |
Expand Down

0 comments on commit 62d55cf

Please sign in to comment.