Skip to content

docs: describe the optional sql_lexer in the READMEs and troubleshooting skill - #1071

Closed
ccoltx wants to merge 1 commit into
lexer/6-format-before-settingsfrom
lexer/7-docs-and-examples
Closed

ccoltx wants to merge 1 commit into
lexer/6-format-before-settingsfrom
lexer/7-docs-and-examples

Conversation

@ccoltx

@ccoltx ccoltx commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Tracking issue: #1074. Stack: #1065 → #1066 → #1067 → #1068 → #1069 → #1070 → #1071 → #1072

Part 7 of the lexer stack. Depends on #1070. Docs only.

What

  • "Zero external dependencies" becomes "no runtime dependencies", plus a pointer to the optional @clickhouse/lexer and docs/howto/sql_lexer.md. Changed in:
    • README.md
    • packages/client-node/README.md
    • packages/client-web/README.md
    • docs/clickhouse-docs/index.mdx
  • Troubleshooting skill (skills/clickhouse-js-node-troubleshooting), which ships in the @clickhouse/client package:
    • reference/query-format-clause.md gains a section on Multi-statements are not allowed from a ; before a trailing comment, with both fixes: remove the ;, or pass sql_lexer. It also mentions the FORMAT-before-SETTINGS placement.
    • The SKILL.md index row is updated. Prettier re-aligned the table, which is why the diff is larger than the one-row change.
  • Site guide (docs/clickhouse-docs/index.mdx): a sql_lexer row in the client options table.
  • Coding skill: sql_lexer added to the list of version-gated features (client >= 1.25.0).
  • docs/howto/sql_lexer.md: wording tweaks. The load-failure warning is logged once per client instance, at the default WARN level, and the size note now refers to the embedded WebAssembly module.
  • Changelog: a ## Improvements entry in packages/client-node/CHANGELOG.md for the skill update.

package.json versions aren't bumped: feature PRs in this repo add the changelog heading and leave the version bump to the release flow.

Not included: examples

The plan included a sql_lexer example in examples/node and examples/web. I left them out: the examples CI installs the published @clickhouse/client from npm ("latest"), which has no sql_lexer option until 1.25.0 is released. An example using it would fail type-checking there. These examples should follow the release.

🤖 Generated with Claude Code

@codecov

codecov Bot commented Oct 21, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@ccoltx
ccoltx force-pushed the lexer/7-docs-and-examples branch from cb15185 to 0e6d90f Compare October 21, 2026 16:19
@ccoltx
ccoltx force-pushed the lexer/7-docs-and-examples branch from 0e6d90f to a50a2af Compare October 21, 2026 18:32
@ccoltx
ccoltx removed this pull request from stack #1073 October 21, 2026 18:35
@ccoltx
ccoltx added this pull request to stack #1077 October 21, 2026 18:35
@ccoltx
ccoltx removed this pull request from stack #1077 October 21, 2026 18:36
@ccoltx
ccoltx added this pull request to stack #1078 October 21, 2026 18:36
…ing skill

Rewords "zero external dependencies" to "no runtime dependencies" with a
pointer to the optional @clickhouse/lexer, and adds the "Multi-statements
are not allowed" trailing-comment case to the troubleshooting skill.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ccoltx
ccoltx force-pushed the lexer/7-docs-and-examples branch from a50a2af to 21a9576 Compare October 21, 2026 18:43
@ccoltx

ccoltx commented Oct 31, 2026

Copy link
Copy Markdown
Contributor Author

Closing: #1085 is merged. query(), command() and exec() now send the SQL as written, with the format passed to the server as the default_format setting, so the client no longer rewrites SQL and this stack has nothing left to do. #973 and #970 are closed as fixed. See #1074 for the wrap-up.

@ccoltx ccoltx closed this Oct 31, 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.

1 participant