Skip to content

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

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

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

Conversation

@boluor
Copy link
Copy Markdown
Contributor

@boluor boluor commented Jun 2, 2026

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

…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 morningman merged commit 9b2b483 into apache:master Jun 3, 2026
3 checks passed
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>
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