Skip to content

Conversation

@jizezhang
Copy link
Contributor

@jizezhang jizezhang commented Dec 1, 2025

Which issue does this PR close?

Part of #17964.

Rationale for this change

What changes are included in this PR?

  • Fix return type of spark array function when data type is null to be consistent with that returned in Spark.
  • Reuse functions shared by both make_array and spark array.

Are these changes tested?

Yes

Are there any user-facing changes?

No

Copy link
Contributor

@Jefffrey Jefffrey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is a step in the right direction for removing some duplication; can look into further refactorings later

Volatility::Immutable,
),
aliases: vec![String::from("spark_make_array")],
aliases: vec![],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can remove the aliases field entirely

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, removed.

@Jefffrey Jefffrey added this pull request to the merge queue Dec 3, 2025
Merged via the queue into apache:main with commit 2217c2b Dec 3, 2025
30 checks passed
@Jefffrey
Copy link
Contributor

Jefffrey commented Dec 3, 2025

Thanks @jizezhang & @xudong963

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants