Skip to content

Docs: fix invalid WITH clause documentation example - #112287

Merged
Blargian merged 1 commit into
ClickHouse:masterfrom
Blargian:codex/fix-with-cte-example
Jul 28, 2026
Merged

Blargian merged 1 commit into
ClickHouse:masterfrom
Blargian:codex/fix-with-cte-example

Conversation

@Blargian

@Blargian Blargian commented Jul 28, 2026 •

Copy link
Copy Markdown
Member

Reported via docs feedback widget

Replace the invalid self-referential WITH example in the English documentation with a self-contained common scalar expression example. The previous query referenced test1, i, and j without defining a source and could not be executed.

The replacement demonstrates applying a bound lambda inside a subquery and reusing it in the outer query. The exact query was validated with clickhouse local, and its output matches the documented values.

Changelog category (leave one):

  • Documentation (changelog entry is not required)

Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):

Not applicable.

Version info

  • Merged into: 26.8.1.277 (included in 26.8 and later)

@clickhouse-gh

clickhouse-gh Bot commented Jul 28, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [f9b729e]

Summary: ✅


AI Review

Summary

This PR replaces a broken WITH clause example under Common Scalar Expressions with an executable lambda-based example and keeps the docs/en and Mintlify sources in sync. I did not find a correctness or documentation-contract issue in the current diff; the new example matches existing WITH/lambda semantics already exercised elsewhere in the repository.

Final Verdict

✅ No review findings at the current PR head.

@clickhouse-gh clickhouse-gh Bot added the pr-documentation Documentation PRs for the specific code PR label Jul 28, 2026
@Blargian Blargian changed the title Fix invalid WITH clause documentation example Docs: fix invalid WITH clause documentation example Jul 28, 2026
@Blargian
Blargian marked this pull request as ready for review July 28, 2026 13:33
@Blargian
Blargian enabled auto-merge July 28, 2026 14:07
@Blargian
Blargian added this pull request to the merge queue Jul 28, 2026
Merged via the queue into ClickHouse:master with commit 1edc9da Jul 28, 2026
178 checks passed
@Blargian
Blargian deleted the codex/fix-with-cte-example branch July 28, 2026 14:28
@robot-clickhouse robot-clickhouse added the pr-synced-to-cloud The PR is synced to the cloud repo label Jul 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-documentation Documentation PRs for the specific code PR pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants