Skip to content

[SQL] Support OVER windows for DECIMAL and short INTERVAL types#5787

Merged
mihaibudiu merged 2 commits intomainfrom
decimal-over
Mar 10, 2026
Merged

[SQL] Support OVER windows for DECIMAL and short INTERVAL types#5787
mihaibudiu merged 2 commits intomainfrom
decimal-over

Conversation

@mihaibudiu
Copy link
Copy Markdown
Contributor

Fixes #5766

This advances the calcite version, since it depends on a bug which I fixed in Calcite as well.

Describe Manual Test Plan

I compare results with Postgres on some test queries.

Checklist

  • Unit tests added/updated

Signed-off-by: Mihai Budiu <mbudiu@feldera.com>
@mihaibudiu mihaibudiu requested a review from lalithsuresh March 10, 2026 01:39
Signed-off-by: feldera-bot <feldera-bot@feldera.com>
@lalithsuresh
Copy link
Copy Markdown
Contributor

@mihaibudiu doesn't this need documentation updates?

Copy link
Copy Markdown

@mythical-fred mythical-fred left a comment

Choose a reason for hiding this comment

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

LGTM. The decimal max-literal fix is correct (dot was placed after scale digits instead of after precision - scale digits), the new opcodes are wired through all required dispatch points including monotone transfer, and the tests validate real outputs against Postgres. Clean.

@mihaibudiu mihaibudiu added this pull request to the merge queue Mar 10, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Mar 10, 2026
@mihaibudiu
Copy link
Copy Markdown
Contributor Author

@mihaibudiu doesn't this need documentation updates?

Technically we already support this, so there is no new stuff to talk about in the documentation.

@mihaibudiu mihaibudiu added this pull request to the merge queue Mar 10, 2026
Merged via the queue into main with commit e957b9a Mar 10, 2026
1 check passed
@mihaibudiu mihaibudiu deleted the decimal-over branch March 10, 2026 19:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[SQL] Support rolling aggregates for windows defined using DECIMAL values

4 participants