doc bug: EXPORT_SET example output table has 6 columns but the SQL selects only 1
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 76/100
- Issue type
- Documentation
- Clarity
- Clearly specified
- Activity status
- Quiet
- Tech stack
- sql
- Domain
- databases, documentation
Research direction
Open sql-manual/sql-functions/scalar-functions/string-functions/export-set.md and locate the example whose output table has six columns. Compare the displayed query with the table, then check the corresponding EN and ZH pages in version-4.x and dev/current. Done means the query and output agree in all four documented copies.
Written by the indexing model from the issue text.
Description
On the EXPORT_SET page (sql-manual/sql-functions/scalar-functions/string-functions/export-set.md, present in version-4.x and the dev/current docs), one example does not match its own output:
SELECT EXPORT_SET(`bits`, `on`, `off`, `sep`, `num_of_b`)
FROM `test_export_set`;
The SQL selects a single column (the EXPORT_SET(...) result), but the documented output table shows six columns: bits | on | off | sep | num_of_b | ans. So the displayed output cannot be produced by the shown query — running the query as written returns only the ans column.
The output table clearly intends to show the input columns alongside the result (the last column is even aliased ans). Suggested fix — align the SQL with the shown output:
SELECT `bits`, `on`, `off`, `sep`, `num_of_b`,
EXPORT_SET(`bits`, `on`, `off`, `sep`, `num_of_b`) AS ans
FROM `test_export_set`;
(EN + ZH, both version-4.x and dev/current.) Filing separately from the setup-data change for this page so the SQL/output correction can be reviewed on its own.
- Dominant language
- MDX
- Stars
- 134
- Forks
- 466
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 54
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
-
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 ·
-
comp-query-execution fuzz
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
ClickHouse/ClickHouse#121303 · 3 comments ·