boluor opened a new pull request, #3852:
URL: https://github.com/apache/doris-website/pull/3852
## 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 table
`quantile_state_agg_test`. On a real cluster the CREATE builds a table
literally named `${tableName_21}`, so every subsequent statement fails:
```
errCode = 2, detailMessage = Table [quantile_state_agg_test] does not exist
in database [...]
```
Each page is broken in only one language; the other language was already
correct:
| File | Lang |
|---|---|
|
`versioned_docs/version-3.x/sql-manual/sql-functions/scalar-functions/quantile-functions/quantile-percent.md`
| EN |
|
`i18n/zh-CN/docusaurus-plugin-content-docs/version-3.x/sql-manual/sql-functions/scalar-functions/quantile-functions/to-quantile-state.md`
| ZH |
## 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)
```
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.
🤖 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]