boluor opened a new pull request, #3877: URL: https://github.com/apache/doris-website/pull/3877
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](https://claude.com/claude-code) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
