This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch branch-4.0
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-4.0 by this push:
new 6b1f695f107 branch-4.0: [test](ip) fix ip_cidr_search case #58151
(#58169)
6b1f695f107 is described below
commit 6b1f695f1070926f85f394538af624a7549a976e
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Thu Nov 20 18:23:19 2025 +0800
branch-4.0: [test](ip) fix ip_cidr_search case #58151 (#58169)
Cherry-picked from #58151
Co-authored-by: Jack <[email protected]>
---
.../test_ip_cidr_search_with_inverted_index.out | 9 ++++++---
.../test_ip_cidr_search_with_inverted_index.groovy | 4 ++--
2 files changed, 8 insertions(+), 5 deletions(-)
diff --git
a/regression-test/data/inverted_index_p0/test_ip_cidr_search_with_inverted_index.out
b/regression-test/data/inverted_index_p0/test_ip_cidr_search_with_inverted_index.out
index 2211a11b95a..dd51be0f5a3 100644
---
a/regression-test/data/inverted_index_p0/test_ip_cidr_search_with_inverted_index.out
+++
b/regression-test/data/inverted_index_p0/test_ip_cidr_search_with_inverted_index.out
@@ -5,6 +5,7 @@
-- !sql_without_ii_0 --
-- !sql_without_ii_1 --
+5 255.255.255.255 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff true
-- !sql_without_ii_2 --
@@ -14,7 +15,7 @@
-- !sql_without_ii_4 --
-- !sql_without_ii_5 --
-5 255.255.255.255 \N \N
+5 255.255.255.255 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff false
-- !sql_without_ii_6 --
@@ -27,6 +28,7 @@
-- !sql_with_ii_0 --
-- !sql_with_ii_1 --
+5 255.255.255.255 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff true
-- !sql_with_ii_2 --
@@ -36,7 +38,7 @@
-- !sql_with_ii_4 --
-- !sql_with_ii_5 --
-5 255.255.255.255 \N \N
+5 255.255.255.255 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff false
-- !sql_with_ii_6 --
@@ -47,6 +49,7 @@
-- !sql_with_ii_9 --
-- !sql --
+5 255.255.255.255 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff
-- !sql --
@@ -54,7 +57,7 @@
2 42.117.228.166 2001:16a0:2:200a::2
-- !sql --
-5 255.255.255.255 \N
+5 255.255.255.255 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff
-- !sql --
diff --git
a/regression-test/suites/inverted_index_p0/test_ip_cidr_search_with_inverted_index.groovy
b/regression-test/suites/inverted_index_p0/test_ip_cidr_search_with_inverted_index.groovy
index 191c818f351..aa7d15141b5 100644
---
a/regression-test/suites/inverted_index_p0/test_ip_cidr_search_with_inverted_index.groovy
+++
b/regression-test/suites/inverted_index_p0/test_ip_cidr_search_with_inverted_index.groovy
@@ -43,8 +43,8 @@ suite("test_ip_cidr_search_with_inverted_index",
"nonConcurrent"){
sql """ set enable_profile = true;"""
sql """ insert into tc_ip_cidr_search_with_inverted_index values(1,
'59.50.185.152', '2a02:e980:83:5b09:ecb8:c669:b336:650e', '127.0.0.0/8'),(3,
'119.36.22.147', '2001:4888:1f:e891:161:26::', '127.0.0.0/8'),(2,
'42.117.228.166', '2001:16a0:2:200a::2', null); """
- sql """ insert into tc_ip_cidr_search_with_inverted_index values(4, '.',
'2001:1b70:a1:610::b102:2', null); """
- sql """ insert into tc_ip_cidr_search_with_inverted_index values(5,
'255.255.255.255', 'ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffffg', null) """
+ sql """ insert into tc_ip_cidr_search_with_inverted_index values(4, NULL,
'2001:1b70:a1:610::b102:2', null); """
+ sql """ insert into tc_ip_cidr_search_with_inverted_index values(5,
'255.255.255.255', 'ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff', null) """
qt_sql """ select count() from tc_ip_cidr_search_with_inverted_index"""
// without inverted index query
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]