Skip to content

branch-3.1: [feature](function)support count_substrings functions #42055#55847

Merged
morrySnow merged 1 commit intobranch-3.1from
auto-pick-42055-branch-3.1
Sep 10, 2025
Merged

branch-3.1: [feature](function)support count_substrings functions #42055#55847
morrySnow merged 1 commit intobranch-3.1from
auto-pick-42055-branch-3.1

Conversation

@github-actions
Copy link
Contributor

Cherry-picked from #42055

## Proposed changes
support count_substrings functions
doc: apache/doris-website#1211

<!--Describe your changes.-->
@github-actions github-actions bot requested a review from morrySnow as a code owner September 10, 2025 02:47
@hello-stephen
Copy link
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?

@dataroaring dataroaring reopened this Sep 10, 2025
@hello-stephen
Copy link
Contributor

run buildall

@doris-robot
Copy link

Cloud UT Coverage Report

Increment line coverage 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 82.20% (1233/1500)
Line Coverage 66.08% (22158/33534)
Region Coverage 67.59% (11131/16469)
Branch Coverage 57.18% (5879/10282)

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17605	5503	5485	5485
q2	2055	291	174	174
q3	10411	1286	737	737
q4	10225	864	459	459
q5	7651	2396	2165	2165
q6	185	171	139	139
q7	909	830	612	612
q8	9327	1446	1177	1177
q9	5246	4937	4970	4937
q10	6775	2257	1854	1854
q11	477	300	279	279
q12	350	352	217	217
q13	17788	3587	3054	3054
q14	222	231	215	215
q15	519	474	476	474
q16	420	416	373	373
q17	616	865	379	379
q18	7180	6384	6412	6384
q19	1203	963	574	574
q20	330	346	218	218
q21	2894	2195	2024	2024
q22	1045	1016	1008	1008
Total cold run time: 103433 ms
Total hot run time: 32938 ms

----- Round 2, with runtime_filter_mode=off -----
q1	5528	5551	5523	5523
q2	237	328	230	230
q3	2208	2628	2340	2340
q4	1381	1883	1445	1445
q5	4403	4823	5095	4823
q6	171	167	130	130
q7	2090	1945	1791	1791
q8	2615	2868	2718	2718
q9	7218	7246	7104	7104
q10	3022	3271	2787	2787
q11	599	517	493	493
q12	653	737	581	581
q13	3415	3752	3188	3188
q14	274	294	287	287
q15	529	473	492	473
q16	443	497	435	435
q17	1260	1746	1272	1272
q18	7675	7513	7442	7442
q19	869	1147	1078	1078
q20	1987	2046	1899	1899
q21	5307	4943	4694	4694
q22	1091	1086	1063	1063
Total cold run time: 52975 ms
Total hot run time: 51796 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 191202 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 70f36e826f67741e92c021e7fc4b4070f894de7b, data reload: false

query1	1004	394	392	392
query2	6629	1993	1927	1927
query3	8365	219	226	219
query4	34393	24230	23897	23897
query5	4323	608	452	452
query6	278	190	189	189
query7	4625	497	328	328
query8	315	249	237	237
query9	9693	2646	2614	2614
query10	491	377	284	284
query11	18244	15320	15499	15320
query12	161	116	108	108
query13	1658	552	416	416
query14	10176	6767	7377	6767
query15	233	193	189	189
query16	8252	661	521	521
query17	1779	771	599	599
query18	2371	437	324	324
query19	248	205	161	161
query20	128	120	117	117
query21	217	138	109	109
query22	4486	4581	4559	4559
query23	35457	33325	33868	33325
query24	7198	2617	2641	2617
query25	481	444	407	407
query26	1205	279	166	166
query27	2462	456	340	340
query28	5503	2163	2125	2125
query29	729	569	440	440
query30	252	183	166	166
query31	956	859	834	834
query32	86	57	58	57
query33	502	355	307	307
query34	753	813	516	516
query35	764	796	716	716
query36	1042	1038	966	966
query37	104	97	67	67
query38	3967	3855	3856	3855
query39	1469	1433	1448	1433
query40	204	112	106	106
query41	47	47	45	45
query42	114	103	105	103
query43	509	512	500	500
query44	1352	791	790	790
query45	185	173	166	166
query46	877	1045	665	665
query47	1889	1910	1884	1884
query48	414	415	342	342
query49	782	486	405	405
query50	666	686	428	428
query51	7157	7217	7037	7037
query52	100	102	94	94
query53	226	254	184	184
query54	541	548	458	458
query55	84	76	80	76
query56	265	289	257	257
query57	1243	1259	1198	1198
query58	244	223	231	223
query59	2864	3127	2885	2885
query60	294	275	271	271
query61	112	111	110	110
query62	793	733	654	654
query63	232	201	190	190
query64	4545	1067	732	732
query65	3305	3199	3203	3199
query66	1058	424	324	324
query67	16105	15785	15775	15775
query68	3049	883	568	568
query69	465	326	284	284
query70	1182	1130	1097	1097
query71	496	292	272	272
query72	5683	3721	3871	3721
query73	652	757	358	358
query74	10133	9305	8970	8970
query75	3198	3123	2664	2664
query76	3107	1198	761	761
query77	539	363	278	278
query78	10296	10301	9574	9574
query79	2498	881	613	613
query80	1661	533	454	454
query81	584	248	225	225
query82	341	119	89	89
query83	244	155	146	146
query84	249	105	80	80
query85	797	363	303	303
query86	476	312	302	302
query87	4317	4335	4158	4158
query88	4338	2398	2371	2371
query89	417	335	294	294
query90	1902	189	191	189
query91	153	145	106	106
query92	69	57	51	51
query93	2657	927	552	552
query94	730	416	313	313
query95	343	281	270	270
query96	504	609	291	291
query97	3194	3287	3165	3165
query98	219	209	202	202
query99	1330	1393	1314	1314
Total cold run time: 293029 ms
Total hot run time: 191202 ms

@doris-robot
Copy link

ClickBench: Total hot run time: 29.42 s
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/clickbench-tools
ClickBench test result on commit 70f36e826f67741e92c021e7fc4b4070f894de7b, data reload: false

query1	0.04	0.03	0.03
query2	0.07	0.04	0.03
query3	0.23	0.07	0.07
query4	1.63	0.10	0.10
query5	0.52	0.49	0.51
query6	1.13	0.73	0.72
query7	0.03	0.02	0.02
query8	0.05	0.04	0.04
query9	0.57	0.49	0.52
query10	0.56	0.55	0.56
query11	0.14	0.10	0.11
query12	0.14	0.11	0.11
query13	0.62	0.59	0.59
query14	0.77	0.83	0.79
query15	0.84	0.83	0.86
query16	0.39	0.39	0.37
query17	1.09	1.06	1.04
query18	0.24	0.23	0.23
query19	1.91	1.85	1.86
query20	0.02	0.01	0.01
query21	15.40	0.92	0.58
query22	0.74	0.78	0.61
query23	15.19	1.48	0.55
query24	3.34	1.80	1.24
query25	0.12	0.16	0.13
query26	0.24	0.15	0.13
query27	0.04	0.04	0.04
query28	13.87	1.01	0.44
query29	12.60	4.00	3.39
query30	0.24	0.09	0.06
query31	2.84	0.60	0.39
query32	3.23	0.53	0.45
query33	3.00	3.08	3.05
query34	16.40	5.14	4.56
query35	4.59	4.57	4.55
query36	0.64	0.50	0.48
query37	0.09	0.05	0.06
query38	0.05	0.04	0.04
query39	0.03	0.02	0.02
query40	0.18	0.14	0.13
query41	0.08	0.02	0.02
query42	0.03	0.02	0.02
query43	0.04	0.03	0.03
Total cold run time: 103.97 s
Total hot run time: 29.42 s

@doris-robot
Copy link

BE UT Coverage Report

Increment line coverage 3.49% (3/86) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 45.53% (12758/28020)
Line Coverage 36.36% (113715/312776)
Region Coverage 33.99% (65052/191359)
Branch Coverage 31.02% (34133/110038)

@hello-stephen
Copy link
Contributor

FE UT Coverage Report

Increment line coverage 9.09% (1/11) 🎉
Increment coverage report
Complete coverage report

@hello-stephen
Copy link
Contributor

BE Regression && UT Coverage Report

Increment line coverage 88.37% (76/86) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 76.43% (21062/27559)
Line Coverage 69.73% (217410/311802)
Region Coverage 67.69% (130061/192136)
Branch Coverage 61.23% (67690/110552)

@morrySnow morrySnow merged commit 50603a1 into branch-3.1 Sep 10, 2025
22 of 23 checks passed
@github-actions github-actions bot deleted the auto-pick-42055-branch-3.1 branch September 10, 2025 08:54
@morrySnow morrySnow mentioned this pull request Sep 22, 2025
@channop14-cmd2222
Copy link

Cherry-ជ្រើសរើសពី #42055

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.

6 participants

Comments