Skip to content

[fix](docs) add table setup for IPV4_STRING_TO_NUM_OR_DEFAULT example in 3.x/2.1#3893

Merged
morningman merged 1 commit into
apache:masterfrom
boluor:fix/phantom-table-setup-ip-functions
Jun 3, 2026
Merged

[fix](docs) add table setup for IPV4_STRING_TO_NUM_OR_DEFAULT example in 3.x/2.1#3893
morningman merged 1 commit into
apache:masterfrom
boluor:fix/phantom-table-setup-ip-functions

Conversation

@boluor
Copy link
Copy Markdown
Contributor

@boluor boluor commented Jun 3, 2026

Problem

The IPV4_STRING_TO_NUM_OR_DEFAULT page (version-3.x and version-2.1, EN + ZH) shows:

select str, ipv4_string_to_num_or_default(str) from ipv4_str;

but the page never defines ipv4_str, so the example fails with table does not exist.

Fix

Add a visible CREATE TABLE + INSERT block before the example so it is self-contained. No change to the example SQL or its expected output.

Verification

Ran the modified pages end-to-end on fresh live clusters — Doris 3.1.4 (version-3.x) and 2.1.11 (version-2.1). The example reproduces the documented output exactly (0.0.0.0→0, 127.0.0.1→2130706433, 255.255.255.255→4294967295, invalid→0).

Files: version-3.x + version-2.1, EN + ZH (4 files).

🤖 Generated with Claude Code

… in 3.x/2.1

The second example queries `FROM ipv4_str` but the page never creates
`ipv4_str`, so readers hit "table does not exist". Add a visible
CREATE TABLE + INSERT before the example (EN + ZH, version-3.x and
version-2.1). Verified end-to-end on live 3.1.4 and 2.1.11 clusters:
the example reproduces the documented output exactly.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@morningman morningman merged commit ddacde3 into apache:master Jun 3, 2026
3 checks passed
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