[fix](doc) v3.x: replace stray ${tableName_21} placeholder in quantile docs#3852
Merged
morningman merged 1 commit intoMay 30, 2026
Conversation
…e docs
The CREATE TABLE example in two quantile-function pages still carries an
unsubstituted doc-template variable `${tableName_21}`, while the following
INSERT/SELECT statements all reference the literal table
`quantile_state_agg_test`. On a real cluster the CREATE makes a table named
`${tableName_21}`, so every subsequent statement fails with
"Table [quantile_state_agg_test] does not exist".
Affected (each broken in one language only; the other language was already
correct):
- EN versioned_docs/version-3.x/.../quantile-functions/quantile-percent.md
- ZH i18n/zh-CN/.../version-3.x/.../quantile-functions/to-quantile-state.md
Fix: use the literal name `quantile_state_agg_test` in the CREATE TABLE so it
matches the INSERT/SELECT that follow.
Cluster verification (Doris 3.1.4-rc02, fresh single-node cluster):
CREATE TABLE IF NOT EXISTS quantile_state_agg_test ( ... ); -- OK
INSERT INTO quantile_state_agg_test VALUES(20220201,0, to_quantile_state(1, 2048)); -- OK
INSERT INTO quantile_state_agg_test VALUES(20220201,1, ...); -- OK
SELECT dt, id, quantile_percent(quantile_union(price), 0)
FROM quantile_state_agg_test GROUP BY dt, id ORDER BY dt, id;
+----------+------+--------------------------------------------+
| dt | id | quantile_percent(quantile_union(price), 0) |
+----------+------+--------------------------------------------+
| 20220201 | 0 | 1 |
| 20220201 | 1 | -1 |
+----------+------+--------------------------------------------+
Matches the documented expected output.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
morningman
pushed a commit
that referenced
this pull request
May 30, 2026
…tile-state (#3856) Backport of #3852 to `version-2.1`. ## Problem The ZH `to-quantile-state.md` CREATE TABLE example carries the unsubstituted doc-template variable `${tableName_21}`, while the INSERT/SELECT that follow reference the literal `quantile_state_agg_test`. On a real cluster the CREATE makes a table literally named `${tableName_21}`, so every later statement fails with table-not-found. ## Fix Use the literal name `quantile_state_agg_test` in the CREATE TABLE. ## Cluster verification (Doris 2.1.11-rc01, fresh single-node cluster) ``` SELECT dt, id, quantile_percent(quantile_union(price), 0) FROM quantile_state_agg_test GROUP BY dt, id ORDER BY dt, id; +----------+------+--------------------------------------------+ | dt | id | quantile_percent(quantile_union(price), 0) | +----------+------+--------------------------------------------+ | 20220201 | 0 | 1 | | 20220201 | 1 | -1 | +----------+------+--------------------------------------------+ ``` 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The CREATE TABLE example in two v3.x quantile-function pages carries an unsubstituted doc-template variable
${tableName_21}, while the INSERT/SELECT statements that follow all reference the literal tablequantile_state_agg_test. On a real cluster the CREATE builds a table literally named${tableName_21}, so every subsequent statement fails:Each page is broken in only one language; the other language was already correct:
versioned_docs/version-3.x/sql-manual/sql-functions/scalar-functions/quantile-functions/quantile-percent.mdi18n/zh-CN/docusaurus-plugin-content-docs/version-3.x/sql-manual/sql-functions/scalar-functions/quantile-functions/to-quantile-state.mdFix
Use the literal name
quantile_state_agg_testin the CREATE TABLE so it matches the INSERT/SELECT that follow.Cluster verification (Doris 3.1.4-rc02, fresh single-node cluster)
Matches the documented expected output.
🤖 Generated with Claude Code