Thanks to visit codestin.com
Credit goes to github.com

Skip to content

branch-3.1: [Bug](ipv6) fix fe can't parse ipv4-mapped type to ipv6 #54391#54685

Merged
morrySnow merged 1 commit into
apache:branch-3.1from
zhangstar333:branch-3.1-0813
Aug 14, 2025
Merged

branch-3.1: [Bug](ipv6) fix fe can't parse ipv4-mapped type to ipv6 #54391#54685
morrySnow merged 1 commit into
apache:branch-3.1from
zhangstar333:branch-3.1-0813

Conversation

@zhangstar333

@zhangstar333 zhangstar333 commented Aug 13, 2025

Copy link
Copy Markdown
Contributor

picked from #54391

Problem Summary:

```
IPv6 addresses may be represented in the following ways:

1. IPV6_STD_REGEX: 2001:0db8:85a3:0000:0000:8a2e:0370:7334
2. IPV6_COMPRESS_REGEX:  ::1 == 0000:0000:0000:0000:0000:0000:0000:0001
3. IPV6_MAPPED_REGEX:  ::FFFF:192.168.1.1 == 0000:0000:0000:0000:0000:FFFF:192.168.1.1
```
@Thearas

Thearas commented Aug 13, 2025

Copy link
Copy Markdown
Contributor

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR.

Please clearly describe your PR:

  1. What problem was fixed (it's best to include specific error reporting information). How it was fixed.
  2. Which behaviors were modified. What was the previous behavior, what is it now, why was it modified, and what possible impacts might there be.
  3. What features were added. Why was this function added?
  4. Which code was refactored and why was this part of the code refactored?
  5. Which functions were optimized and what is the difference before and after the optimization?

@zhangstar333

Copy link
Copy Markdown
Contributor Author

run buildall

@doris-robot

Copy link
Copy Markdown
TPC-H: Total hot run time: 32418 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit 650f05d274b21729dcc0fbaa02906b0b66c18776, data reload: false

------ Round 1 ----------------------------------
q1	17581	5465	5357	5357
q2	2049	285	156	156
q3	10435	1267	717	717
q4	10215	856	441	441
q5	7651	2417	2150	2150
q6	179	166	135	135
q7	894	753	610	610
q8	9321	1430	1176	1176
q9	5210	4908	4977	4908
q10	6763	2265	1802	1802
q11	475	268	269	268
q12	332	348	204	204
q13	17777	3555	2977	2977
q14	222	220	208	208
q15	538	453	458	453
q16	402	432	378	378
q17	601	870	353	353
q18	7057	6470	6478	6470
q19	1224	950	530	530
q20	324	334	202	202
q21	2785	2116	1933	1933
q22	1035	1027	990	990
Total cold run time: 103070 ms
Total hot run time: 32418 ms

----- Round 2, with runtime_filter_mode=off -----
q1	5502	5501	5477	5477
q2	243	335	234	234
q3	2239	2596	2318	2318
q4	1329	1780	1332	1332
q5	4430	4830	4671	4671
q6	163	155	125	125
q7	1955	1857	1695	1695
q8	2510	2740	2629	2629
q9	6913	6833	6882	6833
q10	2909	3173	2674	2674
q11	570	502	479	479
q12	632	760	578	578
q13	3220	3612	2982	2982
q14	267	283	269	269
q15	513	469	454	454
q16	422	455	412	412
q17	1188	1710	1226	1226
q18	7228	7191	6843	6843
q19	761	958	1099	958
q20	1913	1971	1809	1809
q21	4996	4667	4519	4519
q22	1067	1055	951	951
Total cold run time: 50970 ms
Total hot run time: 49468 ms

@doris-robot

Copy link
Copy Markdown
TPC-DS: Total hot run time: 189646 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpcds-tools
TPC-DS sf100 test result on commit 650f05d274b21729dcc0fbaa02906b0b66c18776, data reload: false

query1	971	376	362	362
query2	6577	1988	1991	1988
query3	6708	217	226	217
query4	33861	23600	23308	23308
query5	4759	641	463	463
query6	300	204	209	204
query7	4649	514	312	312
query8	302	259	247	247
query9	9501	2602	2563	2563
query10	463	333	264	264
query11	18525	15424	15283	15283
query12	171	109	107	107
query13	1668	558	417	417
query14	11662	6634	7040	6634
query15	251	196	184	184
query16	7930	651	464	464
query17	1602	763	575	575
query18	2126	397	314	314
query19	231	189	163	163
query20	118	115	111	111
query21	210	126	107	107
query22	4312	4345	4145	4145
query23	34834	33372	33632	33372
query24	7066	2620	2610	2610
query25	485	463	401	401
query26	1212	278	182	182
query27	1996	471	349	349
query28	5038	2161	2106	2106
query29	755	554	429	429
query30	249	190	155	155
query31	1021	860	797	797
query32	92	65	58	58
query33	511	361	297	297
query34	747	837	519	519
query35	778	813	720	720
query36	1003	1036	959	959
query37	103	90	71	71
query38	3942	3966	3797	3797
query39	1488	1446	1438	1438
query40	216	114	109	109
query41	58	52	51	51
query42	120	101	100	100
query43	497	506	491	491
query44	1347	810	795	795
query45	176	178	173	173
query46	872	1041	654	654
query47	1898	1910	1813	1813
query48	420	439	357	357
query49	788	490	410	410
query50	647	670	421	421
query51	7215	7157	7180	7157
query52	107	102	96	96
query53	238	254	188	188
query54	535	534	457	457
query55	88	76	77	76
query56	271	291	250	250
query57	1227	1227	1177	1177
query58	242	215	222	215
query59	3009	3170	2990	2990
query60	294	285	255	255
query61	121	123	119	119
query62	833	730	690	690
query63	225	196	188	188
query64	4568	996	646	646
query65	3313	3220	3196	3196
query66	1084	440	314	314
query67	15809	15803	15423	15423
query68	2105	839	575	575
query69	420	316	271	271
query70	1172	1071	1129	1071
query71	323	288	269	269
query72	5673	3761	3900	3761
query73	622	749	368	368
query74	10064	9047	9266	9047
query75	3180	3167	2670	2670
query76	2290	1185	786	786
query77	368	404	284	284
query78	10263	10282	9644	9644
query79	2884	899	618	618
query80	1670	532	430	430
query81	566	259	223	223
query82	337	120	89	89
query83	243	167	143	143
query84	241	100	85	85
query85	788	361	293	293
query86	472	314	301	301
query87	4265	4288	4195	4195
query88	4772	2396	2380	2380
query89	401	342	293	293
query90	1953	193	189	189
query91	138	155	110	110
query92	71	58	56	56
query93	2797	928	534	534
query94	739	424	301	301
query95	334	271	266	266
query96	484	615	287	287
query97	3198	3278	3119	3119
query98	233	207	210	207
query99	1310	1414	1278	1278
Total cold run time: 288811 ms
Total hot run time: 189646 ms

@doris-robot

Copy link
Copy Markdown
ClickBench: Total hot run time: 28.43 s
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/clickbench-tools
ClickBench test result on commit 650f05d274b21729dcc0fbaa02906b0b66c18776, data reload: false

query1	0.03	0.03	0.03
query2	0.07	0.03	0.03
query3	0.24	0.06	0.06
query4	1.63	0.11	0.10
query5	0.51	0.51	0.51
query6	1.14	0.72	0.72
query7	0.02	0.02	0.01
query8	0.04	0.03	0.04
query9	0.59	0.50	0.50
query10	0.55	0.54	0.55
query11	0.14	0.10	0.10
query12	0.14	0.11	0.10
query13	0.60	0.60	0.59
query14	0.78	0.78	0.78
query15	0.84	0.83	0.83
query16	0.38	0.38	0.41
query17	1.08	1.04	1.09
query18	0.24	0.23	0.22
query19	1.95	1.80	1.84
query20	0.01	0.01	0.01
query21	15.42	0.91	0.58
query22	0.74	0.81	0.68
query23	15.09	1.45	0.55
query24	2.93	0.54	1.94
query25	0.20	0.13	0.11
query26	0.38	0.14	0.13
query27	0.04	0.05	0.05
query28	13.63	0.98	0.43
query29	12.59	3.84	3.18
query30	0.26	0.08	0.06
query31	2.81	0.60	0.37
query32	3.22	0.54	0.46
query33	3.02	2.99	3.04
query34	16.49	5.19	4.56
query35	4.56	4.60	4.57
query36	0.65	0.49	0.47
query37	0.09	0.06	0.06
query38	0.05	0.04	0.04
query39	0.04	0.02	0.02
query40	0.16	0.13	0.13
query41	0.08	0.02	0.03
query42	0.03	0.02	0.03
query43	0.04	0.03	0.03
Total cold run time: 103.5 s
Total hot run time: 28.43 s

@hello-stephen

Copy link
Copy Markdown
Contributor

FE UT Coverage Report

Increment line coverage 64.29% (9/14) 🎉
Increment coverage report
Complete coverage report

@morrySnow morrySnow changed the title branch-31: [Bug](ipv6) fix fe can't parse ipv4-mapped type to ipv6 (#54391) branch-3.1: [Bug](ipv6) fix fe can't parse ipv4-mapped type to ipv6 #54391 Aug 14, 2025
@morrySnow morrySnow merged commit b49eeca into apache:branch-3.1 Aug 14, 2025
25 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.

5 participants