Skip to content

[fix](sql-functions) reconstruct example setup tables for array-function pages (version-3.x / version-2.1)#3888

Merged
morningman merged 1 commit into
apache:masterfrom
boluor:fix/lineB-array-setup-3x-21
Jun 3, 2026
Merged

[fix](sql-functions) reconstruct example setup tables for array-function pages (version-3.x / version-2.1)#3888
morningman merged 1 commit into
apache:masterfrom
boluor:fix/lineB-array-setup-3x-21

Conversation

@boluor
Copy link
Copy Markdown
Contributor

@boluor boluor commented Jun 2, 2026

These array-function pages query a table that the version-3.x / version-2.1 docs never define, so the examples cannot be run or reproduced (Table [...] does not exist).

Following the same approach as #3885, the setup is reconstructed from each older pages own printed output and emitted as a visible inline block.

Pages (EN + ZH, version-3.x and version-2.1):

Page Table(s)
ARRAY nested
ARRAY_COUNT array_test
ARRAY_FILTER array_test, array_test2
ARRAY_FIRST_INDEX array_test
ARRAY_LAST_INDEX array_test
ARRAY_SORTBY test_array_sortby, array_test2

Each example was verified end-to-end to resolve its table and match that versions documented output — version-3.x on a 3.1.4 cluster and version-2.1 on a 2.1.11 cluster (all pass). 24 files. No ja-source changes.

ARRAY_MAP is intentionally left out of this PR: its example has a pre-existing SQL/output column mismatch (the SQL selects one column but the output shows two), tracked separately in #3887.

…ion pages (version-3.x / version-2.1)

These array-function pages query a table that the version-3.x / version-2.1 docs
never define ("table does not exist"). The setup is reconstructed from each
older page's own printed output and emitted as a visible inline block.

Pages (EN + ZH, version-3.x and version-2.1): ARRAY (nested), ARRAY_COUNT,
ARRAY_FILTER, ARRAY_FIRST_INDEX, ARRAY_LAST_INDEX (array_test/array_test2),
ARRAY_SORTBY (test_array_sortby/array_test2).

Verified end-to-end that each example resolves its table and matches that
version's documented output — version-3.x on a 3.1.4 cluster and version-2.1 on a
2.1.11 cluster (all pass).

ARRAY_MAP is intentionally left out: its example has a pre-existing SQL/output
column mismatch tracked in apache#3887.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@morningman morningman merged commit 533c6ab into apache:master Jun 3, 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

Development

Successfully merging this pull request may close these issues.

2 participants