[doc] running-difference is a deprecated zh-only orphan in 2.1/3.x (removed in dev/4.x); example references undefined table
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 68/100
- Issue type
- Documentation
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- sql
- Domain
- databases, documentation
Research direction
Start with i18n/zh-CN/.../version-2.1/sql-manual/sql-functions/scalar-functions/numeric-functions/running-difference.md and the corresponding version-3.x file, then compare the dev and version-4.x trees. Confirm the deprecated page is absent in current versions; done means removing both orphaned zh-only pages without changing unrelated documentation.
Written by the indexing model from the issue text.
Description
While verifying SQL-function example pages I found running-difference is in an inconsistent state across versions.
Findings
- The function is deprecated — the page itself says so ("此函数会在后续版本中废弃,推荐使用窗口函数"), and the page has been removed entirely from
devandversion-4.x(both EN and ZH). - In version-2.1 and version-3.x the page survives only in Chinese (
i18n/zh-CN/.../version-{2.1,3.x}/sql-manual/sql-functions/scalar-functions/numeric-functions/running-difference.md) — there is no EN counterpart in those versions (only the EOL 1.2/2.0 trees have one). - The description's example references an undefined table
t:
These are an illustrative function-form-vs-window-form comparison (no output shown), so they aren't runnable as-is.SELECT running_difference(x) FROM t ORDER BY k; SELECT x - lag(x, 1, 0) OVER (ORDER BY k) FROM t; - The worked example (
running_difference_test,BUCKETS 3) is documented as non-deterministic ("结果是不稳定的", the row order used during computation may differ from the returned order), so its printed output cannot be reliably reproduced.
Suggestion
Since the function is deprecated and the page is already gone from dev/4.x, the cleanest fix is to remove the orphaned zh-only running-difference page from version-2.1 and version-3.x to match dev/4.x, rather than retrofit a table for a deprecated, non-deterministic example. (If keeping it is preferred, the FROM t snippet should be marked illustrative and the worked example reworked to be deterministic.)
Happy to open a PR removing the 2.1/3.x zh pages if that's the preferred direction.
- Dominant language
- MDX
- Stars
- 134
- Forks
- 466
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 60
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from apache/doris-website
-
Difficulty 1/5 Under an hour Newbie friendliness 84/100
apache/doris-website#4157 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
apache/doris-website#4108 ·
-
Issue on docs Open
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
apache/doris-website#4066 ·
-
3.x文档的集群运维的版本升级链接404 Open
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
apache/doris-website#4006 · 1 comment ·
-
数据目录内容缺失 Open
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
apache/doris-website#3927 · 2 comments ·
All issues in apache/doris-website
Similar issues
-
documentation help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
OpenLiberty/open-liberty#35839 ·
-
affects-9.0 found-by-ai may-affects-25.10 may-affects-26.3 may-affects-26.9 may-affects-7.5 may-affects-8.1 may-affects-8.5 severity/major sig/execution type/bug
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
antlr/grammars-v4#5014 · 1 comment ·