[fix](sql-functions) add example setup tables to aggregate pages in version-3.x / version-2.1#3884
Merged
Conversation
…ersion-3.x / version-2.1
These aggregate-function pages already carry a visible inline setup block
(CREATE TABLE + INSERT) on the dev/version-4.x docs, but the version-3.x and
version-2.1 copies were missing it, so their `SELECT ... FROM <table>` examples
cannot be run or reproduced ("table does not exist").
Port the same visible inline setup block to the version-3.x and version-2.1
copies (EN + ZH) for the pages where the older docs use the same example and
data as 4.x: CORR, CORR_WELFORD (3.x only), COUNT, COVAR, COVAR_SAMP,
GROUP_CONCAT, BITMAP_INTERSECT.
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). Pages whose older-version docs use different
tables/data/output than 4.x are intentionally left out of this PR (they need a
per-version reconstruction, handled separately).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
morningman
pushed a commit
that referenced
this pull request
Jun 3, 2026
…ages (version-3.x / version-2.1) (#3885) Follow-up to #3884. These aggregate-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`). 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.x` and `version-2.1`): | | | | --- | --- | | `GROUP_BIT_AND` / `GROUP_BIT_OR` / `GROUP_BIT_XOR` | `group_bit` | | `ARRAY_AGG` | `test_doris_array_agg` | | `MAX_BY` | `tbl` | | `ANY_VALUE` | `cost2` | | `AVG_WEIGHTED` | `test_doris_avg_weighted` | | `BITMAP_UNION_COUNT` / `BITMAP_UNION_INT` / `GROUP_BITMAP_XOR` / `INTERSECT_COUNT` | `pv_bitmap` (built via `bitmap_from_string`) | 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). 44 files. No `ja-source` changes. 🤖 Generated with [Claude Code](https://claude.com/claude-code) 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.
Several aggregate-function pages already carry a visible inline setup block (
CREATE TABLE+INSERT) on the dev /version-4.xdocs, but theversion-3.xandversion-2.1copies are missing it — so theirSELECT ... FROM <table>examples cannot be run or reproduced (a reader getsTable [...] does not exist).This PR ports the same visible inline setup block to the
version-3.xandversion-2.1copies (EN + ZH), for the pages whose older docs use the same example and data as 4.x:CORRCORR_WELFORDCOUNTCOVARCOVAR_SAMPGROUP_CONCATBITMAP_INTERSECTEach 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). EN + ZH, 26 files. Noja-sourcechanges.🤖 Generated with Claude Code