kazantsev-maksim opened a new pull request, #4365:
URL: https://github.com/apache/datafusion-comet/pull/4365

   ## Which issue does this PR close?
   
   Closes #.
   
   ## Rationale for this change
   
   Add native support for Spark's json_array_length(jsonArray)  expression so 
it runs on Comet instead of falling back to Spark.
   
   ## What changes are included in this PR?
   
   - native/spark-expr/src/json_funcs/json_array_length.rs: new JsonArrayLength 
UDF (json_array_length) returns the number of elements in the outermost JSON 
array.
   - native/spark-expr/src/comet_scalar_funcs.rs: register the new UDF.
   - spark/src/main/scala/org/apache/comet/serde/QueryPlanSerde.scala: register 
function in jsonExpressions.
   
   ## How are these changes tested?
   
   New SQL test file 
spark/src/test/resources/sql-tests/expressions/json/json_array_length.sql


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to