Skip to content

[fix](doc) small A-disjoint backports: substring/intersect-count examples + url-encode zh fence#3816

Open
boluor wants to merge 1 commit into
apache:masterfrom
boluor:fix/small-zh-richer-pages-backport
Open

[fix](doc) small A-disjoint backports: substring/intersect-count examples + url-encode zh fence#3816
boluor wants to merge 1 commit into
apache:masterfrom
boluor:fix/small-zh-richer-pages-backport

Conversation

@boluor
Copy link
Copy Markdown
Contributor

@boluor boluor commented May 26, 2026

Summary

Three small cross-port fixes in one PR; each is a minimum-impact change.

File Change
`versioned_docs/.../string-functions/substring.md` EN +1 example: empty source string returns empty (ZH already had this)
`versioned_docs/.../aggregate-functions/intersect-count.md` EN +1 example: two-day intersection (ZH already had this)
`i18n/zh-CN/.../string-functions/url-encode.md` ZH fence ````sql```` → ````text```` on the result block; drop one stray blank line

Verification

```
mysql> SELECT substring('', 1, 3); -- ''
mysql> select intersect_count(user_id,dt,20250801,20250802) from pv_bitmap; -- 1
```

Both run on a single-node Apache Doris 4.1.1 cluster against a freshly-recreated `pv_bitmap` table seeded with the doc's own INSERT.

Test plan

  • substring empty source returns empty.
  • intersect_count with two date filters returns 1 (only user 3 appears on both 20250801 and 20250802).
  • url-encode zh page renders result block as plain text, not syntax-highlighted as SQL.

🤖 Generated with Claude Code

…ples + url-encode zh fence

Three small cross-port fixes that share the same "minimum-impact" shape:

- versioned_docs/.../string-functions/substring.md (EN +1):
  Add an "Empty source string" example that ZH already has,
  demonstrating that substring of '' returns ''.
- versioned_docs/.../aggregate-functions/intersect-count.md (EN +1):
  Add the two-day intersection example showing the function counts
  bitmap intersection across multiple filter values; ZH already had
  this.
- i18n/zh-CN/.../string-functions/url-encode.md (ZH fence fix):
  The result block was fenced as ```sql instead of ```text, so docs
  syntax-highlights an ASCII grid as SQL. Drop the spurious blank
  line inside the result block while I'm there.

All three additions/changes were re-run on Apache Doris 4.1.1 and
the result blocks are the verbatim mysql client output.

Co-Authored-By: Claude Opus 4.7 (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