Array related functions are creating proto definitions, but we should be able to use generic https://github.com/apache/datafusion-comet/blob/main/spark/src/main/scala/org/apache/comet/serde/QueryPlanSerde.scala#L2116 `scalarExprToProtoWithReturnType` or `scalarExprToProto` Example https://github.com/apache/datafusion-comet/pull/1321#discussion_r1972211143