Skip to content

[fix](sql-functions) provide setup data for FIELD examples (3.x / 2.1 + dev zh)#3901

Open
boluor wants to merge 1 commit into
apache:masterfrom
boluor:fix/phantom-table-setup-field
Open

[fix](sql-functions) provide setup data for FIELD examples (3.x / 2.1 + dev zh)#3901
boluor wants to merge 1 commit into
apache:masterfrom
boluor:fix/phantom-table-setup-field

Conversation

@boluor
Copy link
Copy Markdown
Contributor

@boluor boluor commented Jun 3, 2026

The FIELD example pages query baseall and class_test, which the older copies never define, so a reader who runs them hits table does not exist. The version-4.x page already carries a -- setup block and a self-consistent example set; the other copies lacked it.

For the zh copies there was also a pre-existing inconsistency: the ascending/descending outputs omitted the NULL row that the NULLS FIRST example shows (no single class_test could satisfy both). version-4.x already resolved this.

Port the version-4.x Examples section (setup + consistent custom-sort examples) to:

  • EN: version-3.x, version-2.1
  • ZH: dev (current), version-3.x, version-2.1

version-4.x (EN+ZH) and dev EN already have it — unchanged.

Verification — every touched example executed end-to-end on fresh single-BE clusters, reproducing the doc's printed output cell-for-cell (NULLS FIRST/LAST confirmed working on 2.1):

version cluster FIELD
dev master daily (doris-0.0.0-2e72603618c) P9 F0 (ZH; EN control P9 F0)
3.x 3.1.4-rc02 P9 F0 (EN+ZH)
2.1 2.1.11-rc01 P9 F0 (EN+ZH)

🤖 Generated with Claude Code

… + dev zh)

The FIELD example pages query `baseall` and `class_test`, which the older
copies never define, so the examples error with "table does not exist".
The version-4.x page already carries a `-- setup` block and a self-consistent
set of examples; the other copies were missing it (and the zh copies had an
inconsistent example set: the ascending / descending outputs omitted the NULL
row that the NULLS FIRST example shows).

Port the version-4.x Examples section (setup + consistent custom-sort
examples) to:
- version-3.x, version-2.1 (EN)
- dev (current), version-3.x, version-2.1 (ZH)

version-4.x (EN+ZH) and dev EN already have it and are unchanged.

Verified end-to-end on fresh single-BE clusters — 3.1.4, 2.1.11, and the local
master daily build — every touched example reproduces the doc's printed output
cell-for-cell (each page P9 F0, EN and ZH; NULLS FIRST/LAST confirmed on 2.1).

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.

1 participant