Skip to content

Bugfix: Correcting pagination in ClickHouse Driver - #1188

Merged
vrana merged 1 commit into
vrana:masterfrom
Marcus-Nightingale:clickhouse-pagination
Oct 27, 2025
Merged

Bugfix: Correcting pagination in ClickHouse Driver#1188
vrana merged 1 commit into
vrana:masterfrom
Marcus-Nightingale:clickhouse-pagination

Conversation

@Marcus-Nightingale

Copy link
Copy Markdown
Contributor

fix(clickhouse-driver): correct pagination offset handling in LIMIT clause

Previously, the driver used LIMIT <limit>, <offset> syntax, causing incorrect
pagination behavior (page 2 repeating results from page 1, etc.). Updated the
limit() function to use ClickHouse-compatible LIMIT <count> OFFSET <offset>
syntax, ensuring correct row offsets across pages.

…lause

Previously, the driver used `LIMIT <limit>, <offset>` syntax, causing incorrect
pagination behavior (page 2 repeating results from page 1, etc.). Updated the
`limit()` function to use ClickHouse-compatible `LIMIT <count> OFFSET <offset>`
syntax, ensuring correct row offsets across pages.
@vrana
vrana merged commit 7abb6cb into vrana:master Oct 27, 2025
1 check failed
vrana pushed a commit that referenced this pull request Oct 27, 2025
Previously, the driver used `LIMIT <limit>, <offset>` syntax, causing incorrect
pagination behavior (page 2 repeating results from page 1, etc.). Updated the
`limit()` function to use ClickHouse-compatible `LIMIT <count> OFFSET <offset>`
syntax, ensuring correct row offsets across pages.
vrana pushed a commit that referenced this pull request Oct 27, 2025
Previously, the driver used `LIMIT <limit>, <offset>` syntax, causing incorrect
pagination behavior (page 2 repeating results from page 1, etc.). Updated the
`limit()` function to use ClickHouse-compatible `LIMIT <count> OFFSET <offset>`
syntax, ensuring correct row offsets across pages.
peterpp pushed a commit to adminneo-org/adminneo that referenced this pull request Jun 11, 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