Skip to content

[fix](doc) v2.1: replace stray ${tableName_21} placeholder in to-quantile-state#3856

Merged
morningman merged 1 commit into
apache:masterfrom
boluor:fix/quantile-placeholder-2.1
May 30, 2026
Merged

[fix](doc) v2.1: replace stray ${tableName_21} placeholder in to-quantile-state#3856
morningman merged 1 commit into
apache:masterfrom
boluor:fix/quantile-placeholder-2.1

Conversation

@boluor
Copy link
Copy Markdown
Contributor

@boluor boluor commented May 30, 2026

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

…tile-state

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

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@morningman morningman merged commit dd083bd into apache:master May 30, 2026
3 checks passed
@boluor boluor deleted the fix/quantile-placeholder-2.1 branch May 30, 2026 08:25
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