Skip to content

Commit cb554f8

Browse files
committed
Enable json_array_length
1 parent 5170be1 commit cb554f8

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

backends-velox/src/test/scala/org/apache/gluten/execution/JsonFunctionsValidateSuite.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class JsonFunctionsValidateSuite extends FunctionsValidateSuite {
4747
}
4848
}
4949

50-
ignore("json_array_length") {
50+
test("json_array_length") {
5151
runQueryAndCompare(
5252
s"select *, json_array_length(string_field1) " +
5353
s"from datatab limit 5")(checkGlutenOperatorMatch[ProjectExecTransformer])

cpp/velox/substrait/SubstraitToVeloxPlanValidator.cc

-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ const std::unordered_set<std::string> kRegexFunctions = {
6161
const std::unordered_set<std::string> kBlackList = {
6262
"split_part",
6363
"factorial",
64-
"json_array_length",
6564
"trunc",
6665
"sequence",
6766
"approx_percentile",

docs/velox-backend-scalar-function-support.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@
179179
|-------------------|---------------------|----------|----------------|
180180
| from_json | JsonToStructs | | |
181181
| get_json_object | GetJsonObject | S | |
182-
| json_array_length | LengthOfJsonArray | | |
182+
| json_array_length | LengthOfJsonArray | S | |
183183
| json_object_keys | JsonObjectKeys | | |
184184
| json_tuple | JsonTuple | S | |
185185
| schema_of_json | SchemaOfJson | | |

0 commit comments

Comments
 (0)