Skip to content

[fix](doc) content corrections in zh 2.1 function/reference docs#3739

Merged
morningman merged 1 commit into
apache:masterfrom
boluor:fix-zh21-content-batch
May 22, 2026
Merged

[fix](doc) content corrections in zh 2.1 function/reference docs#3739
morningman merged 1 commit into
apache:masterfrom
boluor:fix-zh21-content-batch

Conversation

@boluor
Copy link
Copy Markdown
Contributor

@boluor boluor commented May 22, 2026

Summary

Content fixes in the Chinese 2.1 docs (reader-reported):

Issue File Fix
#2531 array-functions/array-enumerate-uniq 3-array example result [1, 1, 2, 1, 3][1, 1, 2, 2, 3] (position-3 tuple (1,1,1) is its 2nd occurrence)
#2523 string-functions/elt example repeated ELT(2, ...) twice → use a 0/1/2 variety and realign the result table
#2518 basic-element/nulls truth-table header **Value of A** vs variable a → lowercase to a
#2533 json-functions/json-exists-path both parameter descriptions copied from an array function → correct JSON-string / path descriptions
#2534 json-functions/json-type syntax + params listed only <json> though examples pass two args → add the missing <path> argument
#2477 async-materialized-view/use-guide claimed aggregation yields ~17,000,000 rows from a 1,000,000-row table (impossible) → reword (aggregation cannot exceed the input row count)

Test plan

Closes #2531
Closes #2523
Closes #2518
Closes #2533
Closes #2534
Closes #2477

- 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>
@morningman morningman merged commit 871ecf1 into apache:master May 22, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants