Skip to content

[CALCITE-7592] Add expression support for FETCH#5004

Open
tkalkirill wants to merge 4 commits into
apache:mainfrom
tkalkirill:calcite-7592
Open

[CALCITE-7592] Add expression support for FETCH#5004
tkalkirill wants to merge 4 commits into
apache:mainfrom
tkalkirill:calcite-7592

Conversation

@tkalkirill
Copy link
Copy Markdown

@tkalkirill tkalkirill commented Jun 7, 2026

Jira Link

CALCITE-7592

Changes Proposed

This PR introduces support for arithmetic and scalar expressions for "FETCH", enabling queries to execute similarly to those in other popular DBMSs (PostgreSQL, Oracle, H2, and MS SQL):

SELECT * FROM person FETCH NEXT (? + 1) ROWS ONLY;
SELECT * FROM person FETCH NEXT (udf(?)) ROWS ONLY;
SELECT * FROM person FETCH NEXT (1 + NVL(?, 10000)) ROWS ONLY.

@xuzifu666
Copy link
Copy Markdown
Member

Please refer to other PR and modify the title accordingly. Also, please fix the CI bug to facilitate future reviews. @tkalkirill

@tkalkirill tkalkirill changed the title  CALCITE-7592 Add expression support for FETCH [CALCITE-7592] Add expression support for FETCH Jun 8, 2026
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.

2 participants