[fix](doc) content corrections in zh 2.1 function/reference docs#3739
Merged
Conversation
- array-enumerate-uniq: the 3-array example result was [1, 1, 2, 1, 3]; the
position-3 tuple (1,1,1) is its 2nd occurrence, so the correct result is
[1, 1, 2, 2, 3].
- elt: example repeated ELT(2, ...) twice; replace with a 0/1/2 variety
(ELT(1), ELT(2), ELT(0)) and realign the result table.
- nulls: truth-table header said "Value of A" but the rows use the variable
`a`; lowercase it.
- json-exists-path: both parameter descriptions were copied from an array
function ("element to include in the JSON array" / "path to insert"); replace
with the correct JSON-string-to-inspect / path-to-test descriptions.
- json-type: syntax and parameter table listed only <json>, but the examples
pass two arguments; add the missing <path> argument.
- async-materialized-view/use-guide: claimed aggregation produces ~17,000,000
rows from a 1,000,000-row table, which is impossible (aggregation cannot
exceed the input row count). Reword: when the cardinality product approaches
or exceeds the row count, aggregation barely reduces rows.
Reported in apache#2531, apache#2523, apache#2518, apache#2533, apache#2534, apache#2477.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Content fixes in the Chinese 2.1 docs (reader-reported):
[1, 1, 2, 1, 3]→[1, 1, 2, 2, 3](position-3 tuple(1,1,1)is its 2nd occurrence)ELT(2, ...)twice → use a 0/1/2 variety and realign the result table**Value of A**vs variablea→ lowercase toa<json>though examples pass two args → add the missing<path>argumentTest plan
Closes #2531
Closes #2523
Closes #2518
Closes #2533
Closes #2534
Closes #2477