Skip to content

Skip empty WindowDefinition in EXPLAIN AST output#80

Merged
kyleconroy merged 1 commit intomainfrom
claude/remove-plan-fix-test-lfZK6
Dec 29, 2025
Merged

Skip empty WindowDefinition in EXPLAIN AST output#80
kyleconroy merged 1 commit intomainfrom
claude/remove-plan-fix-test-lfZK6

Conversation

@kyleconroy
Copy link
Copy Markdown
Collaborator

ClickHouse's EXPLAIN AST doesn't output a WindowDefinition node when
the window spec is empty (OVER ()). This fix updates the explain output
to match ClickHouse's behavior by checking if the window spec has any
content (PartitionBy, OrderBy, or Frame offset) before outputting
WindowDefinition.

Also updates metadata.json files for tests that now pass.

ClickHouse's EXPLAIN AST doesn't output a WindowDefinition node when
the window spec is empty (OVER ()). This fix updates the explain output
to match ClickHouse's behavior by checking if the window spec has any
content (PartitionBy, OrderBy, or Frame offset) before outputting
WindowDefinition.

Also updates metadata.json files for tests that now pass.
@kyleconroy kyleconroy merged commit af1415f into main Dec 29, 2025
1 check failed
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