Skip to content

[fix](sql-functions) provide setup data for HLL-function examples querying an undefined table#3877

Merged
morningman merged 1 commit into
apache:masterfrom
boluor:fix/phantom-table-setup-hll-functions
Jun 3, 2026
Merged

[fix](sql-functions) provide setup data for HLL-function examples querying an undefined table#3877
morningman merged 1 commit into
apache:masterfrom
boluor:fix/phantom-table-setup-hll-functions

Conversation

@boluor
Copy link
Copy Markdown
Contributor

@boluor boluor commented Jun 2, 2026

The HLL_CARDINALITY, HLL_FROM_BASE64 and HLL_TO_BASE64 pages each show a SELECT ... FROM <table> example with an expected result, but never define the table on the page. As written these examples cannot be run or reproduced — a reader who copies them gets Table [...] does not exist.

This PR adds the missing CREATE TABLE + INSERT for each table, carried in a standard HTML comment (<!-- setup-sql ... -->) just before the example. The tables are aggregate tables with an HLL HLL_UNION column populated via hll_hash(...). Because it is an HTML comment, the rendered page is unchanged and no documented expected output is modified.

Table contents were reverse-derived from the printed output and verified end-to-end on the matching cluster for each doc tree.

Pages and tables

Function Table
HLL_CARDINALITY test_uv
HLL_FROM_BASE64 test_hll
HLL_TO_BASE64 test_hll

Updated in EN + ZH across the dev/current, version-4.x, version-3.x and version-2.1 trees (24 files). Verified on 4.1.1 (4.x), 3.1.4 (3.x), 2.1.11 (2.1) and a master build (dev): the affected examples failed with "table does not exist" before this change and pass (cardinality matches the doc) after it. No ja-source changes.

🤖 Generated with Claude Code

…rying an undefined table

HLL_CARDINALITY, HLL_FROM_BASE64 and HLL_TO_BASE64 each show a `SELECT ... FROM <table>`
example with an expected result, but never define the table on the page, so the
examples cannot be run or reproduced ("table does not exist").

Add the missing CREATE TABLE + INSERT for each table (`test_uv` for HLL_CARDINALITY,
`test_hll` for the two base64 pages), built as aggregate tables with an HLL_UNION
column populated via hll_hash(), carried in a standard HTML comment
(`<!-- setup-sql ... -->`) before the example. As an HTML comment it does not change
the rendered page, and no documented expected output is modified.

Table contents were reverse-derived from the printed output (cardinality 3) and verified
end-to-end on the matching release cluster for every doc tree: version-4.x on 4.1.1,
version-3.x on 3.1.4, version-2.1 on 2.1.11 and dev/current on a master build. On every
tree the examples failed with "table does not exist" before and now resolve and match
the documented output.

Pages updated in EN + ZH across dev/current, version-4.x, version-3.x and version-2.1.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@morningman morningman merged commit 67a5f50 into apache:master Jun 3, 2026
3 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.

2 participants