[doc](ip) fix IP predicate return type to BOOLEAN & add IPV6 mixed-storage best practice#3911
Merged
Merged
Conversation
These functions return a boolean predicate (true/false, displayed as 1/0) but the docs declared the return type as TINYINT. Correct them to BOOLEAN across the en/zh-CN/ja docs (current + version-4.x): - is_ip_address_in_range - is_ipv4_string - is_ipv6_string - is_ipv4_mapped - is_ipv4_compat Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
… with inverted index Add a "best practice" section to the IPV6 data type doc covering how to store a mixed IPv4/IPv6 column as IPv4-mapped IPv6 in a single IPV6 column and filter it through an inverted index: - schema with USING INVERTED index - load-time normalization (Routine Load / Stream Load / INSERT INTO) via COALESCE(ipv4_to_ipv6(to_ipv4_or_null(...)), to_ipv6_or_null(...)) - query rewriting: IPv4 CIDR -> mapped IPv6 CIDR (prefix +96), exact match, allowlist / blocklist forms - index-hit prerequisites, and why CIDR range queries need inverted_index_skip_threshold = 0 (two-sided BKD split bypass) Added across en / zh-CN / ja (current + version-4.x). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
yiguolei
approved these changes
Jun 5, 2026
yiguolei
approved these changes
Jun 5, 2026
Contributor
|
run buildall |
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.
BOOLEAN.IPV6data type doc.Versions
Languages
Docs Checklist