Skip to content

feat: add array_subtract scalar function#22556

Open
SubhamSinghal wants to merge 1 commit into
apache:mainfrom
SubhamSinghal:array-subtract-function
Open

feat: add array_subtract scalar function#22556
SubhamSinghal wants to merge 1 commit into
apache:mainfrom
SubhamSinghal:array-subtract-function

Conversation

@SubhamSinghal
Copy link
Copy Markdown
Contributor

Which issue does this PR close?

  • Part of #21536 (array_substract — first PR in the vector math series).

Rationale for this change

What changes are included in this PR?

Are these changes tested?

Yes, via SLT

Are there any user-facing changes?

Yes — two new functions:

array_subtract(array1, array2) → List / LargeList
list_substract(...) alias

Both exposed via expr_fn and registered in all_default_nested_functions(). Documented inline via #[user_doc]
(description, syntax, SQL example, argument descriptions).

No breaking API changes.

@github-actions github-actions Bot added documentation Improvements or additions to documentation sqllogictest SQL Logic Tests (.slt) functions Changes to functions implementation labels May 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation functions Changes to functions implementation sqllogictest SQL Logic Tests (.slt)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants