[fix](sql-functions) reconstruct example setup tables for array-function pages (version-3.x / version-2.1)#3888
Merged
Conversation
…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>
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.
These array-function pages query a table that the
version-3.x/version-2.1docs 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.xandversion-2.1):ARRAYnestedARRAY_COUNTarray_testARRAY_FILTERarray_test,array_test2ARRAY_FIRST_INDEXarray_testARRAY_LAST_INDEXarray_testARRAY_SORTBYtest_array_sortby,array_test2Each example was verified end-to-end to resolve its table and match that versions documented output —
version-3.xon a 3.1.4 cluster andversion-2.1on a 2.1.11 cluster (all pass). 24 files. Noja-sourcechanges.