Skip to content

fix: explicit ORDER BY in lag() window functions for DuckDB >=1.5 compat#268

Merged
hussainsultan merged 1 commit into
boringdata:mainfrom
mesejo:fix/lag-window-order-duckdb-compat
May 25, 2026
Merged

fix: explicit ORDER BY in lag() window functions for DuckDB >=1.5 compat#268
hussainsultan merged 1 commit into
boringdata:mainfrom
mesejo:fix/lag-window-order-duckdb-compat

Conversation

@mesejo
Copy link
Copy Markdown
Contributor

@mesejo mesejo commented May 24, 2026

Without .over(order_by=...), DuckDB >=1.5 applies lag() in non-deterministic order, producing incorrect last_year and growth values in comparing_timeframe example.

Without .over(order_by=...), DuckDB >=1.5 applies lag() in non-deterministic
order, producing incorrect last_year and growth values in comparing_timeframe example.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
@mesejo mesejo marked this pull request as ready for review May 25, 2026 05:37
@hussainsultan hussainsultan merged commit 1c05d19 into boringdata:main May 25, 2026
3 checks passed
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