Skip to content

Navigation Menu

Sign in
Sign up

Add ARRAY_REVERSE, ARRAY_MAX and ARRAY_MIN SQL functions - #802

Open
Adityaaprakash wants to merge 1 commit into
apache:master from
Adityaaprakash:feature/issue-792-array-functions
Open

Add ARRAY_REVERSE, ARRAY_MAX and ARRAY_MIN SQL functions #802
Adityaaprakash wants to merge 1 commit into
apache:master from
Adityaaprakash:feature/issue-792-array-functions

Conversation

@Adityaaprakash

@Adityaaprakash Adityaaprakash commented Jun 18, 2026

Copy link
Copy Markdown

What changed

  • Added built-in SQL UDFs for ARRAY_REVERSE, ARRAY_MAX, and ARRAY_MIN.
  • Registered the new array functions in BuildInSqlFunctionTable.
  • Added tests covering normal and edge cases.

Behavior

  • ARRAY_REVERSE(null) returns null.
  • ARRAY_REVERSE preserves null elements while reversing order.
  • ARRAY_MAX and ARRAY_MIN ignore null elements.
  • ARRAY_MAX and ARRAY_MIN return null for null, empty, or all-null arrays.

Tests

Executed the array UDF test suite successfully.

Fixes #792

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

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Add the array functions ARRAY_REVERSE / ARRAY_MAX / ARRAY_MIN

1 participant

AltStyle によって変換されたページ (->オリジナル) /