Skip to content

Support reverse function with ArrayType input #2478

@cfmcgrady

Description

@cfmcgrady

What is the problem the feature request solves?

As of #2477, the reverse function with an ArrayType input falls back to vanilla Spark execution.
Add support for reverse to work natively with ArrayType inputs.

sql("set spark.sql.optimizer.excludedRules=org.apache.spark.sql.catalyst.optimizer.ConstantFolding")
sql("SELECT reverse(array(2, 1, 4, 3))").show

Describe the potential solution

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions