Skip to content

Document HTTP URL-path table access and query-construction settings#6398

Draft
alexey-milovidov wants to merge 2 commits into
mainfrom
http-table-as-file-docs
Draft

Document HTTP URL-path table access and query-construction settings#6398
alexey-milovidov wants to merge 2 commits into
mainfrom
http-table-as-file-docs

Conversation

@alexey-milovidov

@alexey-milovidov alexey-milovidov commented Jun 16, 2026

Copy link
Copy Markdown
Member

Documents the HTTP-interface feature added in ClickHouse/ClickHouse#105249 (ClickHouse 26.6): interpreting the URL path as database/table.format.compression and shaping the result with URL parameters.

Adds a section to the HTTP interface page (docs/integrations/interfaces/http.md) covering:

  • enabling path routing (http_allow_database_as_path, http_allow_table_as_file, http_allow_filters_as_path, http_allow_filters_as_unrecognized_url_parameters), including the pre-authentication routing caveat (enable in the server default profile);
  • tables as files (/database/table.format.compression);
  • query construction (select, filter, order, sort, limit, offset, page), with a note that filter is not an access-control mechanism;
  • format and compression overrides (format, input_format, output_format, default_format, compression);
  • implicit_table_at_top_level.

Related: ClickHouse/ClickHouse#105249

🤖 Generated with Claude Code


Note

Low Risk
Documentation-only change to the HTTP interface page; no runtime or server behavior is modified.

Overview
Adds a new “Accessing tables via the URL path and constructing queries” section to docs/integrations/interfaces/http.md for the ClickHouse 26.6 HTTP feature (path-as-table reads without full SQL).

It documents opt-in settings (http_allow_table_as_file, http_allow_database_as_path, filter-in-path/URL options), including the pre-auth routing caveat (enable in the server default profile or path-style URLs may 404). It covers /database/table.format.compression examples, URL-driven query wrapping (select, filter, order, sort, limit/offset/page), format/compression override settings, and implicit_table_at_top_level when combining a path table with a query parameter. A danger callout states that filter is not row-level access control.

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

ClickHouse 26.6 lets the HTTP interface interpret the URL path as a
database/table/format/compression and shape the result with URL parameters
(`select`, `filter`, `order`, `sort`, `limit`, `offset`, `page`, `format`,
`output_format`, `input_format`, `default_format`, `compression`), gated by the
`http_allow_database_as_path`, `http_allow_table_as_file`,
`http_allow_filters_as_path` and `http_allow_filters_as_unrecognized_url_parameters`
settings.

Add a section to the HTTP interface page covering enabling path routing (and the
pre-authentication routing caveat), tables-as-files, query construction, format
and compression overrides, and `implicit_table_at_top_level`, with curl examples
and a note that `filter` is not an access-control mechanism.

Documents ClickHouse/ClickHouse#105249

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@alexey-milovidov alexey-milovidov requested review from a team as code owners June 16, 2026 02:09
@vercel

vercel Bot commented Jun 16, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
clickhouse-docs Ready Ready Preview, Comment Jun 16, 2026 4:47pm
clickhouse-docs-jp Building Building Preview, Comment Jun 16, 2026 4:47pm
3 Skipped Deployments
Project Deployment Actions Updated (UTC)
clickhouse-docs-ko Ignored Ignored Preview Jun 16, 2026 4:47pm
clickhouse-docs-ru Ignored Ignored Preview Jun 16, 2026 4:47pm
clickhouse-docs-zh Ignored Ignored Preview Jun 16, 2026 4:47pm

Request Review

Path routing is gated in two layers: the server-level `http_allow_path_requests`
configuration flag (default off) enables routing globally, and the per-user
`http_allow_*` settings control how a routed path is interpreted after
authentication.

Related: ClickHouse/ClickHouse#105249
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