Skip to content

[improve](float) improve float and double to string - #54760

Merged
yiguolei merged 4 commits into
apache:masterfrom
jacktengg:float-to-string
Aug 25, 2025
Merged

[improve](float) improve float and double to string#54760
yiguolei merged 4 commits into
apache:masterfrom
jacktengg:float-to-string

Conversation

@jacktengg

Copy link
Copy Markdown
Contributor

What problem does this PR solve?

Issue Number: close #xxx

Related PR: #xxx

Problem Summary:

Release note

None

Check List (For Author)

  • Test

    • Regression test
    • Unit Test
    • Manual test (add detailed scripts or steps below)
    • No need to test or manual test. Explain why:
      • This is a refactor/code format and no logic has been changed.
      • Previous test can cover this change.
      • No code files have been changed.
      • Other reason
  • Behavior changed:

    • No.
    • Yes.
  • Does this need documentation?

    • No.
    • Yes.

Check List (For Reviewer who merge this PR)

  • Confirm the release note
  • Confirm test cases
  • Confirm document
  • Add branch pick label

@Thearas

Thearas commented Aug 14, 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?

@jacktengg

Copy link
Copy Markdown
Contributor Author

run buildall

@doris-robot

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

------ Round 1 ----------------------------------
q1	17637	5262	5057	5057
q2	1907	275	176	176
q3	10339	1276	723	723
q4	10204	1002	510	510
q5	7520	2386	2325	2325
q6	181	157	127	127
q7	928	745	603	603
q8	9293	1289	1095	1095
q9	7043	5146	5114	5114
q10	6876	2366	1950	1950
q11	469	283	267	267
q12	335	350	217	217
q13	18065	3688	3039	3039
q14	229	239	216	216
q15	548	481	479	479
q16	425	433	376	376
q17	600	867	345	345
q18	7505	7195	7139	7139
q19	1190	955	539	539
q20	356	325	211	211
q21	3665	3234	2317	2317
q22	1095	1035	975	975
Total cold run time: 106410 ms
Total hot run time: 33800 ms

----- Round 2, with runtime_filter_mode=off -----
q1	5090	5092	5109	5092
q2	240	324	213	213
q3	2179	2692	2316	2316
q4	1357	1751	1336	1336
q5	4212	4524	4497	4497
q6	202	185	130	130
q7	2018	1908	1856	1856
q8	2613	2650	2591	2591
q9	7381	7426	7336	7336
q10	3137	3256	2912	2912
q11	584	525	495	495
q12	719	799	636	636
q13	3453	3887	3181	3181
q14	290	311	279	279
q15	516	489	470	470
q16	439	506	420	420
q17	1184	1612	1410	1410
q18	7946	7754	7426	7426
q19	780	755	796	755
q20	1920	1941	1786	1786
q21	4727	4285	4251	4251
q22	1061	1068	1016	1016
Total cold run time: 52048 ms
Total hot run time: 50404 ms

@jacktengg

Copy link
Copy Markdown
Contributor Author

run buildall

@doris-robot

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

------ Round 1 ----------------------------------
q1	17578	5197	5104	5104
q2	1929	310	179	179
q3	10292	1315	731	731
q4	10190	1017	531	531
q5	7510	2431	2386	2386
q6	176	160	128	128
q7	897	773	589	589
q8	9291	1276	1129	1129
q9	7029	5164	5064	5064
q10	6959	2385	1974	1974
q11	484	278	272	272
q12	369	360	214	214
q13	17766	3671	3019	3019
q14	239	225	218	218
q15	563	474	472	472
q16	414	429	366	366
q17	616	882	357	357
q18	7510	7166	7088	7088
q19	1086	949	579	579
q20	354	346	223	223
q21	3812	3177	2334	2334
q22	1072	1046	1000	1000
Total cold run time: 106136 ms
Total hot run time: 33957 ms

----- Round 2, with runtime_filter_mode=off -----
q1	5185	5093	5100	5093
q2	242	328	221	221
q3	2221	2654	2300	2300
q4	1390	1830	1339	1339
q5	4213	4139	4107	4107
q6	209	163	121	121
q7	1909	1836	1691	1691
q8	2508	2566	2452	2452
q9	6909	6773	6813	6773
q10	2935	3155	2713	2713
q11	569	504	504	504
q12	667	714	607	607
q13	3295	3682	3024	3024
q14	280	283	259	259
q15	505	466	469	466
q16	427	482	431	431
q17	1145	1448	1361	1361
q18	7370	7199	7238	7199
q19	815	859	971	859
q20	1930	1988	1839	1839
q21	4848	4274	4221	4221
q22	1099	1054	1005	1005
Total cold run time: 50671 ms
Total hot run time: 48585 ms

@doris-robot

Copy link
Copy Markdown
TPC-DS: Total hot run time: 184811 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 46ffbe09ddf35a82b0828ac599c3ad9472756c8c, data reload: false

query1	985	406	396	396
query2	3481	1799	1700	1700
query3	4557	223	223	223
query4	25950	23224	22906	22906
query5	2838	620	488	488
query6	281	213	194	194
query7	3641	507	288	288
query8	257	222	215	215
query9	5741	2855	2829	2829
query10	429	321	279	279
query11	16051	14999	14817	14817
query12	166	112	112	112
query13	1303	553	421	421
query14	8823	5875	5865	5865
query15	208	188	173	173
query16	6542	632	498	498
query17	1117	717	606	606
query18	2021	446	318	318
query19	193	190	171	171
query20	130	127	116	116
query21	191	132	111	111
query22	4191	4087	3960	3960
query23	34417	33330	33421	33330
query24	7958	2410	2414	2410
query25	596	459	400	400
query26	1072	273	160	160
query27	2778	500	353	353
query28	4339	2255	2225	2225
query29	722	553	442	442
query30	318	224	197	197
query31	1022	780	746	746
query32	87	74	80	74
query33	656	376	349	349
query34	804	836	509	509
query35	820	830	739	739
query36	959	1046	944	944
query37	117	101	88	88
query38	4057	4064	4005	4005
query39	1498	1420	1432	1420
query40	220	123	119	119
query41	58	58	57	57
query42	121	109	114	109
query43	520	493	485	485
query44	1336	853	838	838
query45	176	167	165	165
query46	876	1013	645	645
query47	1743	1793	1735	1735
query48	388	421	311	311
query49	899	493	395	395
query50	656	685	411	411
query51	4140	4206	4080	4080
query52	112	109	100	100
query53	232	263	202	202
query54	794	584	520	520
query55	93	90	88	88
query56	300	301	300	300
query57	1182	1192	1108	1108
query58	271	269	260	260
query59	2645	2648	2715	2648
query60	341	330	315	315
query61	123	122	126	122
query62	793	725	683	683
query63	234	192	200	192
query64	3902	1012	683	683
query65	4300	4263	4211	4211
query66	1113	414	307	307
query67	15664	15305	14943	14943
query68	7340	924	575	575
query69	434	315	280	280
query70	1208	1169	1135	1135
query71	427	333	296	296
query72	5594	4919	5028	4919
query73	652	737	363	363
query74	9384	8828	8632	8632
query75	3758	3108	2537	2537
query76	3386	1146	735	735
query77	977	405	325	325
query78	9648	9660	8850	8850
query79	2623	802	651	651
query80	681	543	478	478
query81	466	255	219	219
query82	430	137	100	100
query83	284	247	239	239
query84	292	111	89	89
query85	790	426	331	331
query86	337	301	301	301
query87	4311	4332	4144	4144
query88	2926	2262	2216	2216
query89	384	313	285	285
query90	1876	232	216	216
query91	149	139	106	106
query92	85	68	69	68
query93	1233	999	622	622
query94	692	387	305	305
query95	389	313	308	308
query96	477	590	272	272
query97	2616	2703	2610	2610
query98	245	225	220	220
query99	1447	1409	1275	1275
Total cold run time: 260089 ms
Total hot run time: 184811 ms

@github-actions

Copy link
Copy Markdown
Contributor

Possible file(s) that should be tracked in LFS detected: 🚨

The following file(s) exceeds the file size limit: 1048576 bytes, as set in the .yml configuration files:

  • regression-test/data/datatype_p0/nested_types/query/test_nested_types_insert_into_with_s3.out

Consider using git-lfs to manage large files.

@github-actions github-actions Bot added the lfs-detected! Warning Label for use when LFS is detected in the commits of a Pull Request label Aug 15, 2025
Comment thread be/src/olap/types.h Outdated
static std::string to_string(const void* src) {
char buf[1024] = {'\0'};
int length = to_buffer(*reinterpret_cast<const CppType*>(src), MAX_FLOAT_STR_LENGTH, buf);
int length = fast_to_buffer(*reinterpret_cast<const CppType*>(src), buf);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

为什么是调用这个fast_to_buffer,而不是调用CastToString

char buf[MAX_FLOAT_STR_LENGTH + 2];
int len = to_buffer(data, MAX_FLOAT_STR_LENGTH + 2, buf);
char buf[MAX_DOUBLE_STR_LENGTH + 2];
int len = fast_to_buffer(data, buf);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里也是,可以直接调用CastToString,这样对外的接口就比较统一了。

@jacktengg

Copy link
Copy Markdown
Contributor Author

run buildall

@github-actions

Copy link
Copy Markdown
Contributor

Possible file(s) that should be tracked in LFS detected: 🚨

The following file(s) exceeds the file size limit: 1048576 bytes, as set in the .yml configuration files:

  • regression-test/data/datatype_p0/nested_types/query/test_nested_types_insert_into_with_s3.out

Consider using git-lfs to manage large files.

@doris-robot

Copy link
Copy Markdown

BE UT Coverage Report

Increment line coverage 82.50% (33/40) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 59.63% (16771/28127)
Line Coverage 48.51% (152549/314448)
Region Coverage 37.41% (115902/309824)
Branch Coverage 40.35% (51179/126822)

@github-actions

Copy link
Copy Markdown
Contributor

Possible file(s) that should be tracked in LFS detected: 🚨

The following file(s) exceeds the file size limit: 1048576 bytes, as set in the .yml configuration files:

  • regression-test/data/datatype_p0/nested_types/query/test_nested_types_insert_into_with_s3.out

Consider using git-lfs to manage large files.

@jacktengg

Copy link
Copy Markdown
Contributor Author

run buildall

@github-actions

Copy link
Copy Markdown
Contributor

Possible file(s) that should be tracked in LFS detected: 🚨

The following file(s) exceeds the file size limit: 1048576 bytes, as set in the .yml configuration files:

  • regression-test/data/datatype_p0/nested_types/query/test_nested_types_insert_into_with_s3.out

Consider using git-lfs to manage large files.

@jacktengg

Copy link
Copy Markdown
Contributor Author

run buildall

@github-actions

Copy link
Copy Markdown
Contributor

Possible file(s) that should be tracked in LFS detected: 🚨

The following file(s) exceeds the file size limit: 1048576 bytes, as set in the .yml configuration files:

  • regression-test/data/datatype_p0/nested_types/query/test_nested_types_insert_into_with_s3.out

Consider using git-lfs to manage large files.

@github-actions

Copy link
Copy Markdown
Contributor

Possible file(s) that should be tracked in LFS detected: 🚨

The following file(s) exceeds the file size limit: 1048576 bytes, as set in the .yml configuration files:

  • regression-test/data/datatype_p0/nested_types/query/test_nested_types_insert_into_with_s3.out

Consider using git-lfs to manage large files.

@jacktengg

Copy link
Copy Markdown
Contributor Author

run buildall

@doris-robot

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

------ Round 1 ----------------------------------
q1	17671	5215	5074	5074
q2	1909	299	184	184
q3	10307	1243	707	707
q4	10239	990	531	531
q5	7489	2335	2388	2335
q6	180	158	130	130
q7	908	763	598	598
q8	9288	1308	1149	1149
q9	6899	5168	5198	5168
q10	6945	2394	1975	1975
q11	480	289	272	272
q12	342	352	218	218
q13	17767	3663	3043	3043
q14	228	249	213	213
q15	559	476	479	476
q16	417	416	375	375
q17	589	862	359	359
q18	7268	7127	7029	7029
q19	1310	943	571	571
q20	347	331	222	222
q21	3990	3212	2346	2346
q22	1086	1027	970	970
Total cold run time: 106218 ms
Total hot run time: 33945 ms

----- Round 2, with runtime_filter_mode=off -----
q1	5117	5158	5145	5145
q2	245	328	222	222
q3	2232	2673	2330	2330
q4	1364	1779	1353	1353
q5	4222	4512	4500	4500
q6	223	167	130	130
q7	2003	1999	1800	1800
q8	2624	2644	2507	2507
q9	7223	7324	7291	7291
q10	3062	3367	2871	2871
q11	583	516	509	509
q12	708	791	639	639
q13	3464	3933	3510	3510
q14	297	292	272	272
q15	505	488	472	472
q16	432	485	460	460
q17	1155	1547	1437	1437
q18	7805	7626	7574	7574
q19	863	921	989	921
q20	1944	2226	1896	1896
q21	4976	4445	4521	4445
q22	1069	1032	1009	1009
Total cold run time: 52116 ms
Total hot run time: 51293 ms

@doris-robot

Copy link
Copy Markdown
TPC-DS: Total hot run time: 185269 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 fcb1429c0d06ee1030a27bd5a3dd86d4f6370308, data reload: false

query1	977	384	407	384
query2	6563	1777	1759	1759
query3	6743	220	210	210
query4	26259	23798	23248	23248
query5	4292	617	479	479
query6	298	205	196	196
query7	4637	493	278	278
query8	282	226	218	218
query9	8596	2849	2856	2849
query10	431	319	267	267
query11	15669	14956	14707	14707
query12	152	114	111	111
query13	1640	550	401	401
query14	8421	5723	5625	5625
query15	202	186	170	170
query16	7133	644	503	503
query17	948	731	591	591
query18	1983	424	327	327
query19	196	189	167	167
query20	124	123	116	116
query21	217	127	109	109
query22	4163	4182	4012	4012
query23	33856	33348	33438	33348
query24	8100	2338	2345	2338
query25	540	471	395	395
query26	1236	273	157	157
query27	2770	506	348	348
query28	4361	2234	2244	2234
query29	788	566	460	460
query30	278	225	188	188
query31	887	784	714	714
query32	81	71	76	71
query33	563	394	361	361
query34	775	839	505	505
query35	767	840	755	755
query36	976	994	908	908
query37	117	102	86	86
query38	4108	4027	4026	4026
query39	1481	1404	1412	1404
query40	215	124	111	111
query41	64	54	57	54
query42	119	109	117	109
query43	488	498	465	465
query44	1346	842	845	842
query45	178	181	165	165
query46	852	1021	639	639
query47	1788	1830	1727	1727
query48	389	425	316	316
query49	731	506	393	393
query50	656	686	400	400
query51	4059	4111	4123	4111
query52	116	114	96	96
query53	235	267	192	192
query54	589	585	532	532
query55	88	83	92	83
query56	309	308	296	296
query57	1163	1204	1157	1157
query58	286	272	264	264
query59	2654	2702	2701	2701
query60	348	342	335	335
query61	129	124	121	121
query62	818	710	663	663
query63	223	187	189	187
query64	4429	1085	807	807
query65	4296	4215	4213	4213
query66	1149	458	351	351
query67	15535	15397	15134	15134
query68	7983	921	580	580
query69	481	383	283	283
query70	1166	1108	1122	1108
query71	479	320	307	307
query72	5804	4850	4934	4850
query73	739	690	354	354
query74	9042	9111	8896	8896
query75	3742	3046	2626	2626
query76	3638	1131	734	734
query77	802	405	324	324
query78	9629	9645	8766	8766
query79	2795	827	602	602
query80	675	536	482	482
query81	503	257	219	219
query82	501	137	166	137
query83	248	257	234	234
query84	299	98	86	86
query85	824	367	331	331
query86	396	381	315	315
query87	4323	4198	4161	4161
query88	3674	2219	2177	2177
query89	392	319	283	283
query90	1867	217	206	206
query91	140	142	113	113
query92	89	68	68	68
query93	2298	977	638	638
query94	655	413	313	313
query95	392	312	311	311
query96	483	569	272	272
query97	2683	2683	2528	2528
query98	243	214	218	214
query99	1376	1394	1262	1262
Total cold run time: 273223 ms
Total hot run time: 185269 ms

@doris-robot

Copy link
Copy Markdown

BE UT Coverage Report

Increment line coverage 85.29% (29/34) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 59.63% (16771/28127)
Line Coverage 48.51% (152535/314442)
Region Coverage 37.43% (115941/309768)
Branch Coverage 40.35% (51177/126818)

@hello-stephen

Copy link
Copy Markdown
Contributor

BE Regression && UT Coverage Report

Increment line coverage 97.06% (33/34) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 82.03% (22608/27560)
Line Coverage 74.67% (234637/314230)
Region Coverage 61.74% (194483/315015)
Branch Coverage 65.92% (84216/127753)

@jacktengg

Copy link
Copy Markdown
Contributor Author

run buildall

@github-actions

Copy link
Copy Markdown
Contributor

Possible file(s) that should be tracked in LFS detected: 🚨

The following file(s) exceeds the file size limit: 1048576 bytes, as set in the .yml configuration files:

  • regression-test/data/datatype_p0/nested_types/query/test_nested_types_insert_into_with_s3.out

Consider using git-lfs to manage large files.

@jacktengg

Copy link
Copy Markdown
Contributor Author

run buildall

@github-actions

Copy link
Copy Markdown
Contributor

Possible file(s) that should be tracked in LFS detected: 🚨

The following file(s) exceeds the file size limit: 1048576 bytes, as set in the .yml configuration files:

  • regression-test/data/datatype_p0/nested_types/query/test_nested_types_insert_into_with_s3.out

Consider using git-lfs to manage large files.

@doris-robot

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

------ Round 1 ----------------------------------
q1	17583	5226	5096	5096
q2	1942	296	187	187
q3	10277	1278	709	709
q4	10216	985	519	519
q5	7525	2344	2332	2332
q6	173	161	132	132
q7	895	739	605	605
q8	9296	1261	1125	1125
q9	6868	5165	5199	5165
q10	6915	2401	1953	1953
q11	467	290	287	287
q12	339	350	225	225
q13	17766	3643	2985	2985
q14	249	237	214	214
q15	545	483	483	483
q16	419	427	369	369
q17	593	854	378	378
q18	8006	7095	7093	7093
q19	1278	933	570	570
q20	332	326	223	223
q21	3762	2526	2301	2301
q22	1050	1028	975	975
Total cold run time: 106496 ms
Total hot run time: 33926 ms

----- Round 2, with runtime_filter_mode=off -----
q1	5171	5170	5142	5142
q2	240	325	226	226
q3	2170	2697	2332	2332
q4	1367	1787	1327	1327
q5	4211	4440	4520	4440
q6	230	182	134	134
q7	2022	1939	1800	1800
q8	2727	2587	2529	2529
q9	7375	7261	7432	7261
q10	3064	3277	2868	2868
q11	578	512	498	498
q12	701	759	642	642
q13	3525	3956	3251	3251
q14	286	328	387	328
q15	509	490	475	475
q16	443	484	449	449
q17	1202	1575	1404	1404
q18	7907	7632	7369	7369
q19	779	769	777	769
q20	1890	1955	1833	1833
q21	4750	4317	4298	4298
q22	1109	1017	1008	1008
Total cold run time: 52256 ms
Total hot run time: 50383 ms

@doris-robot

Copy link
Copy Markdown
TPC-DS: Total hot run time: 185119 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 cad0601e0b41043264cf30021f5d811d6c6b1e8d, data reload: false

query1	998	386	407	386
query2	6505	1730	1703	1703
query3	6737	215	220	215
query4	26203	23593	22949	22949
query5	4319	601	489	489
query6	297	202	194	194
query7	4633	502	294	294
query8	283	248	223	223
query9	8608	2892	2888	2888
query10	464	324	277	277
query11	15710	15053	14867	14867
query12	167	114	113	113
query13	1673	532	425	425
query14	8577	5726	5615	5615
query15	205	192	170	170
query16	7268	641	492	492
query17	1212	730	595	595
query18	2005	422	327	327
query19	194	187	163	163
query20	125	128	116	116
query21	216	124	108	108
query22	4262	4394	4263	4263
query23	33825	33211	33061	33061
query24	8165	2346	2323	2323
query25	539	469	410	410
query26	1092	269	156	156
query27	2751	502	340	340
query28	4323	2250	2226	2226
query29	818	570	455	455
query30	292	215	188	188
query31	878	764	727	727
query32	79	74	79	74
query33	547	379	327	327
query34	803	854	516	516
query35	795	818	763	763
query36	976	985	902	902
query37	114	104	85	85
query38	4078	4044	3968	3968
query39	1504	1496	1399	1399
query40	221	122	110	110
query41	58	54	54	54
query42	123	109	117	109
query43	513	509	472	472
query44	1350	857	855	855
query45	174	172	169	169
query46	860	1012	630	630
query47	1807	1829	1754	1754
query48	376	409	310	310
query49	716	462	378	378
query50	643	689	387	387
query51	4066	4166	4154	4154
query52	113	111	100	100
query53	238	255	193	193
query54	585	587	518	518
query55	90	80	82	80
query56	316	297	296	296
query57	1228	1211	1125	1125
query58	275	261	256	256
query59	2649	2655	2576	2576
query60	344	318	320	318
query61	155	120	120	120
query62	799	759	667	667
query63	222	184	189	184
query64	4296	1009	689	689
query65	4375	4222	4197	4197
query66	1123	413	329	329
query67	15391	15394	15226	15226
query68	8096	954	570	570
query69	487	324	283	283
query70	1223	1139	1071	1071
query71	481	326	301	301
query72	5583	4798	4975	4798
query73	761	664	354	354
query74	9124	9166	9016	9016
query75	3707	3083	2597	2597
query76	3644	1138	726	726
query77	814	400	314	314
query78	9537	9613	8909	8909
query79	2740	799	585	585
query80	611	531	473	473
query81	493	250	230	230
query82	471	138	106	106
query83	284	250	248	248
query84	296	98	89	89
query85	819	462	345	345
query86	385	345	301	301
query87	4303	4301	4223	4223
query88	3396	2229	2240	2229
query89	381	313	285	285
query90	1826	218	213	213
query91	147	143	110	110
query92	82	74	69	69
query93	1848	1005	643	643
query94	681	401	307	307
query95	400	308	304	304
query96	500	577	279	279
query97	2652	2696	2602	2602
query98	244	220	219	219
query99	1434	1445	1272	1272
Total cold run time: 272796 ms
Total hot run time: 185119 ms

@doris-robot

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

query1	0.05	0.04	0.03
query2	0.09	0.04	0.05
query3	0.25	0.07	0.06
query4	1.62	0.11	0.11
query5	0.42	0.43	0.42
query6	1.17	0.64	0.65
query7	0.03	0.02	0.02
query8	0.05	0.03	0.04
query9	0.59	0.52	0.54
query10	0.59	0.58	0.57
query11	0.16	0.11	0.10
query12	0.16	0.11	0.11
query13	0.63	0.61	0.61
query14	0.80	0.82	0.84
query15	0.88	0.85	0.88
query16	0.40	0.40	0.39
query17	1.03	1.04	1.04
query18	0.22	0.19	0.19
query19	1.85	1.84	1.82
query20	0.02	0.01	0.01
query21	15.40	0.95	0.58
query22	0.76	1.37	0.71
query23	14.82	1.35	0.62
query24	6.90	0.97	1.13
query25	0.54	0.22	0.08
query26	0.50	0.16	0.13
query27	0.06	0.06	0.06
query28	10.64	0.92	0.42
query29	12.55	3.97	3.26
query30	3.07	3.02	3.01
query31	2.82	0.57	0.39
query32	3.23	0.54	0.48
query33	3.16	3.14	3.13
query34	16.16	5.48	4.79
query35	5.00	4.94	4.96
query36	0.67	0.50	0.50
query37	0.10	0.07	0.07
query38	0.06	0.04	0.04
query39	0.03	0.02	0.03
query40	0.18	0.13	0.14
query41	0.08	0.03	0.02
query42	0.03	0.02	0.02
query43	0.03	0.04	0.04
Total cold run time: 107.8 s
Total hot run time: 32.79 s

@hello-stephen

Copy link
Copy Markdown
Contributor

BE UT Coverage Report

Increment line coverage 91.94% (57/62) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 51.76% (17135/33106)
Line Coverage 37.22% (156052/419215)
Region Coverage 31.94% (119097/372822)
Branch Coverage 33.22% (52291/157423)

@jacktengg

Copy link
Copy Markdown
Contributor Author

run external

@hello-stephen

Copy link
Copy Markdown
Contributor

BE Regression && UT Coverage Report

Increment line coverage 98.39% (61/62) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 70.68% (22982/32514)
Line Coverage 56.94% (238600/419030)
Region Coverage 52.49% (198552/378288)
Branch Coverage 54.08% (85655/158400)

@hello-stephen

Copy link
Copy Markdown
Contributor

BE Regression && UT Coverage Report

Increment line coverage 98.39% (61/62) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 70.67% (22977/32514)
Line Coverage 56.94% (238582/419030)
Region Coverage 52.49% (198574/378288)
Branch Coverage 54.07% (85653/158400)

@github-actions github-actions Bot added the approved Indicates a PR has been approved by one committer. label Aug 25, 2025
@github-actions

Copy link
Copy Markdown
Contributor

PR approved by at least one committer and no changes requested.

@github-actions

Copy link
Copy Markdown
Contributor

PR approved by anyone and no changes requested.

@yiguolei
yiguolei merged commit 80650c6 into apache:master Aug 25, 2025
24 of 28 checks passed
csun5285 added a commit that referenced this pull request Jul 15, 2026
Zone-map DOUBLE/FLOAT min/max were formatted with digits10+1 (16g/7g,
#54760), which fails to round-trip finite extremes — ±DBL_MAX overflows
to ±inf on readback, ±FLT_MAX loses precision — corrupting the zone map.
wyxxxcat pushed a commit to wyxxxcat/doris that referenced this pull request Aug 17, 2026
Zone-map DOUBLE/FLOAT min/max were formatted with digits10+1 (16g/7g,
apache#54760), which fails to round-trip finite extremes — ±DBL_MAX overflows
to ±inf on readback, ±FLT_MAX loses precision — corrupting the zone map.
csun5285 added a commit to csun5285/doris that referenced this pull request Aug 31, 2026
### What problem does this PR solve?

Related PR: apache#54760, apache#61277, apache#65302

Problem Summary:

A zone map bound that fails to parse is unknown, not null -- older versions wrote
DOUBLE bounds with digits10+1 precision, so DBL_MAX reads back as infinity and is
rejected. Mark such a zone map pass_all so it prunes nothing, instead of failing
every scan that loads it.

### Release note

None

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TPTGDEAgu5sQVYYvfvyTJz
csun5285 added a commit to csun5285/doris that referenced this pull request Aug 31, 2026
### What problem does this PR solve?

Related PR: apache#54760, apache#61277, apache#65302

Problem Summary:

A zone map bound that fails to parse is unknown, not null -- older versions wrote
DOUBLE bounds with digits10+1 precision, so DBL_MAX reads back as infinity and is
rejected. Mark such a zone map pass_all so it prunes nothing, instead of failing
every scan that loads it. Pushed-down MIN/MAX falls back to a normal scan when a
segment zone map turns out to be invalid.

### Release note

None

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TPTGDEAgu5sQVYYvfvyTJz
csun5285 added a commit to csun5285/doris that referenced this pull request Aug 31, 2026
### What problem does this PR solve?

Related PR: apache#54760, apache#61277, apache#65302

Problem Summary:

A zone map bound that fails to parse is unknown, not null -- older versions wrote
DOUBLE bounds with digits10+1 precision, so DBL_MAX reads back as infinity and is
rejected. Mark such a zone map pass_all so it prunes nothing, instead of failing
every scan that loads it. Pushed-down MIN/MAX falls back to a normal scan when a
segment zone map turns out to be invalid.

### Release note

None

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TPTGDEAgu5sQVYYvfvyTJz
csun5285 added a commit to csun5285/doris that referenced this pull request Sep 1, 2026
### What problem does this PR solve?

Related PR: apache#54760, apache#61277, apache#65302

Problem Summary:

A zone map bound that fails to parse is unknown, not null -- older versions wrote
DOUBLE bounds with digits10+1 precision, so DBL_MAX reads back as infinity and is
rejected. Mark such a zone map pass_all so it prunes nothing, instead of failing
every scan that loads it. Pushed-down MIN/MAX falls back to a normal scan when a
segment zone map turns out to be invalid.

### Release note

None

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TPTGDEAgu5sQVYYvfvyTJz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by one committer. lfs-detected! Warning Label for use when LFS is detected in the commits of a Pull Request reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants