Skip to content

[fix](doc) dev: replace stray ${tableName_21} placeholder in to-quantile-state#3862

Open
boluor wants to merge 1 commit into
apache:masterfrom
boluor:fix/quantile-placeholder-dev
Open

[fix](doc) dev: replace stray ${tableName_21} placeholder in to-quantile-state#3862
boluor wants to merge 1 commit into
apache:masterfrom
boluor:fix/quantile-placeholder-dev

Conversation

@boluor
Copy link
Copy Markdown
Contributor

@boluor boluor commented May 30, 2026

Backport of #3852 / #3856 to dev (i18n/zh-CN/.../current/).

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 master build, doris-0.0.0-trunk)

SELECT dt, id, quantile_percent(quantile_union(price), 0)
  FROM quantile_state_agg_test GROUP BY dt, id ORDER BY dt, id;
+----------+------+--------------------------------------------+
| 20220201 |    0 |                                          1 |
| 20220201 |    1 |                                         -1 |
+----------+------+--------------------------------------------+

🤖 Generated with Claude Code

…ile-state

Backport of apache#3852/apache#3856 to dev. The ZH to-quantile-state.md
CREATE TABLE example still carries the unsubstituted doc-template variable
${tableName_21}, while the following INSERT/SELECT reference the literal
quantile_state_agg_test, so every statement after CREATE fails with
table-not-found. Use the literal name to match.

Cluster verification (Doris master build, doris-0.0.0-trunk):

    SELECT dt, id, quantile_percent(quantile_union(price), 0)
      FROM quantile_state_agg_test GROUP BY dt, id ORDER BY dt, id;
    +----------+------+--------------------------------------------+
    | 20220201 |    0 |                                          1 |
    | 20220201 |    1 |                                         -1 |
    +----------+------+--------------------------------------------+

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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