[fix](sql-functions) reconstruct example setup tables for aggregate pages (version-3.x / version-2.1)#3885
Merged
morningman merged 1 commit intoJun 3, 2026
Conversation
…ages in version-3.x / version-2.1
Follow-up to the aggregate setup-port PR. These pages query a table that the
version-3.x / version-2.1 docs never define ("table does not exist"). Unlike the
previous batch, the older docs here use different example data than 4.x, so the
setup is reconstructed from each older page's OWN printed output (not copied from
4.x) and emitted as a visible inline block, consistent with the 4.x pages.
Pages (EN + ZH, version-3.x and version-2.1): GROUP_BIT_AND, GROUP_BIT_OR,
GROUP_BIT_XOR, ARRAY_AGG, MAX_BY, ANY_VALUE, AVG_WEIGHTED, BITMAP_UNION_COUNT,
BITMAP_UNION_INT, GROUP_BITMAP_XOR, INTERSECT_COUNT.
Each example was verified end-to-end to resolve its table and match that
version's documented output — version-3.x on a 3.1.4 cluster, version-2.1 on a
2.1.11 cluster (all pass). bitmap tables are built with bitmap_from_string().
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
morningman
pushed a commit
that referenced
this pull request
Jun 3, 2026
…ion pages (version-3.x / version-2.1) (#3888) 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. 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.
Follow-up to #3884. These aggregate-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).Unlike #3884 (where the older docs matched 4.x and the setup could be copied), the older docs here use different example data than 4.x — so the setup is reconstructed from each older pages own printed output and emitted as a visible inline block (consistent with the 4.x pages).
Pages (EN + ZH,
version-3.xandversion-2.1):GROUP_BIT_AND/GROUP_BIT_OR/GROUP_BIT_XORgroup_bitARRAY_AGGtest_doris_array_aggMAX_BYtblANY_VALUEcost2AVG_WEIGHTEDtest_doris_avg_weightedBITMAP_UNION_COUNT/BITMAP_UNION_INT/GROUP_BITMAP_XOR/INTERSECT_COUNTpv_bitmap(built viabitmap_from_string)Each 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). 44 files. Noja-sourcechanges.🤖 Generated with Claude Code