Skip to content

feat: implement retract_batch for array_agg sliding window support#22015

Open
SubhamSinghal wants to merge 1 commit intoapache:mainfrom
SubhamSinghal:array-agg-retract-batch
Open

feat: implement retract_batch for array_agg sliding window support#22015
SubhamSinghal wants to merge 1 commit intoapache:mainfrom
SubhamSinghal:array-agg-retract-batch

Conversation

@SubhamSinghal
Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Closes #21957.

Rationale for this change

What changes are included in this PR?

Are these changes tested?

Yes. Using UT

Are there any user-facing changes?

Yes. array_agg now works with bounded/sliding window frames. Queries that previously errored now succeed:

SELECT array_agg(x) OVER (ORDER BY t ROWS BETWEEN 1 PRECEDING AND CURRENT ROW) FROM t;

No breaking API changes

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

Labels

functions Changes to functions implementation sqllogictest SQL Logic Tests (.slt)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support array_agg as a sliding window aggregate by implementing retract_batch

1 participant