doc bug: EXPLODE_SPLIT example output is not sorted despite ORDER BY (version-3.x/2.1)
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 90/100
- Issue type
- Documentation
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- sql
- Domain
- documentation
Research direction
Open table-functions/explode-split.md for the version-3.x and version-2.1 documentation and inspect the EXPLODE_SPLIT example output alongside its ORDER BY query. Update the displayed rows for k1 = 5 to 1, 2, 3, then verify that the example output matches the documented query and the current engine behavior.
Written by the indexing model from the issue text.
Description
On the EXPLODE_SPLIT page (table-functions/explode-split.md, version-3.x and version-2.1), one example shows an output that contradicts its own ORDER BY:
select k1, e1 from example1 lateral view explode_split(k2, ,) tmp1 as e1 where k1 = 5 order by k1, e1;
+------+------+
| k1 | e1 |
+------+------+
| 5 | 2 |
| 5 | 3 |
| 5 | 1 |
+------+------+
k2 for k1 = 5 is 1,2,3, so explode_split yields 1, 2, 3. With ORDER BY k1, e1 the rows must come back sorted by e1 — i.e. 1, 2, 3 — which is exactly what the current engine returns (3.1.4 and 2.1.11). The documented order 2, 3, 1 is not sorted and cannot be produced by the shown query.
Suggested fix — update the expected output to the sorted order:
| 5 | 1 |
| 5 | 2 |
| 5 | 3 |
Filing separately from the missing example1 setup for this page (handled in a Line-B setup PR); all other examples on the page reproduce correctly.
- 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
-
user-reported
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Kong/developer.konghq.com#7316 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
HarperFast/skills#96 ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
infinispan/infinispan#18150 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
fullcalendar/fullcalendar#8106 ·