Skip to content

Simplify Array related functions #1459

Closed

Description

@kazuyukitanimura

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
#1321 (comment)

Activity

  1. kazantsev-maksim commented on Mar 6, 2025

    @kazantsev-maksim
    Contributor

    I can fix all the already implemented array related functions within the scope of this issue. @kazuyukitanimura

  2. andygrove commented on May 6, 2026

    @andygrove
    Member

    The bulk of array serdes in spark/src/main/scala/org/apache/comet/serde/arrays.scala already use the generic scalarFunctionExprToProto / scalarFunctionExprToProtoWithReturnType helpers. The remaining cases (ArrayInsert, ArraysZip) require dedicated proto messages and aren't candidates for this simplification, so closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions