Skip to content

docs: correct session rows in the V1 → V2 migration guide - #3471

Merged
chernser merged 2 commits into
ClickHouse:mainfrom
Tanishsahu13:docs/migration-guide-sessions-3469
Nov 30, 2026
Merged

chernser merged 2 commits into
ClickHouse:mainfrom
Tanishsahu13:docs/migration-guide-sessions-3469

Conversation

@Tanishsahu13

@Tanishsahu13 Tanishsahu13 commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Closes #3469

The V1 → V2 migration guide (docs/clickhouse-docs/client.mdx, tab "Timeouts & Retry") marked SESSION_ID, SESSION_CHECK and SESSION_TIMEOUT as ✗ (no V2 builder method), but client-v2 has had a builder method for each since 0.10.0: Client.Builder#setSessionId, #setSessionCheck and #setSessionTimeout (client-v2/src/main/java/com/clickhouse/client/api/Client.java:1079-1094 on main).

Changes:

  • The three rows in the "Timeouts & Retry" tab now name the V2 builder methods.
  • The AUTO_SESSION comment in the "Miscellaneous" tab no longer says "Session support will be reviewed" — it now reads "No automatic session; set one explicitly with Client.Builder#setSessionId". The ✗ stays: client-v2 does not create a session by itself.
  • Added the history/latest/3469.md change record.

How checked: verified the three builder methods exist on main at the cited lines and that the four stale cells were still at client.mdx:1384-1386 and 1482 before editing; the diff is exactly those four cells plus the new history file. No code changed, so no tests were run — the issue itself was verified against a live server by the reporter.

Checklist


Note

Low Risk
Documentation and changelog only; no runtime or API code changes.

Overview
Updates the V1 → V2 migration guide in docs/clickhouse-docs/client.mdx so session settings are documented correctly for client-v2.

In the Timeouts & Retry mapping table, SESSION_ID, SESSION_CHECK, and SESSION_TIMEOUT no longer show ✗; they now point to Client.Builder#setSessionId, #setSessionCheck, and #setSessionTimeout.

In Miscellaneous, the AUTO_SESSION row still shows no V2 equivalent (✗), but the comment is changed from “Session support will be reviewed” to clarifying that v2 does not auto-create sessions and sessions should be set explicitly via #setSessionId.

A changelog entry was added in history/latest/3469.md for issue #3469.

Reviewed by Cursor Bugbot for commit 9e4c849. Bugbot is set up for automated code reviews on this repo. Configure here.

…kHouse#3469)

Signed-off-by: Tanish Sahu <126809056+Tanishsahu13@users.noreply.github.com>
…kHouse#3469)

Signed-off-by: Tanish Sahu <126809056+Tanishsahu13@users.noreply.github.com>
@Tanishsahu13
Tanishsahu13 requested review from a team and mzitnik as code owners November 30, 2026 06:12
@chernser

Copy link
Copy Markdown
Contributor

@Tanishsahu13 much appreciate the change!

@chernser
chernser merged commit c7e7ed7 into ClickHouse:main Nov 30, 2026
2 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.

[client-v2] Migration guide marks SESSION_ID, SESSION_CHECK and SESSION_TIMEOUT as ✗, but Client.Builder supports them

2 participants