Skip to content

[refactor](predicate) Refactor zone map#60393

Merged
Gabriel39 merged 3 commits intoapache:masterfrom
Gabriel39:refactor_0130
Feb 4, 2026
Merged

[refactor](predicate) Refactor zone map#60393
Gabriel39 merged 3 commits intoapache:masterfrom
Gabriel39:refactor_0130

Conversation

@Gabriel39
Copy link
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
Copy link
Contributor

Thearas commented Jan 30, 2026

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?

@Gabriel39
Copy link
Contributor Author

run buildall

3 similar comments
@Gabriel39
Copy link
Contributor Author

run buildall

@Gabriel39
Copy link
Contributor Author

run buildall

@Gabriel39
Copy link
Contributor Author

run buildall

@doris-robot
Copy link

TPC-DS: Total hot run time: 190386 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 80331a6265cde3ef6d6a32445ec95012082a69d8, data reload: false

query5	269	190	191	190
query6	331	212	192	192
query7	4216	408	235	235
query8	331	238	236	236
query9	8851	2752	2767	2752
query10	417	310	273	273
query11	16601	16425	16334	16334
query12	118	62	64	62
query13	243	198	194	194
query14	6437	3143	2909	2909
query14_1	2795	2754	2790	2754
query15	209	195	181	181
query16	173	166	163	163
query17	949	684	581	581
query18	2435	438	331	331
query19	198	178	149	149
query20	58	57	56	56
query21	62	56	53	53
query22	4832	5096	4888	4888
query23	19980	19231	18754	18754
query23_1	18868	18990	18915	18915
query24	7189	1657	1248	1248
query24_1	1253	1304	1344	1304
query25	610	431	383	383
query26	819	262	142	142
query27	2778	476	270	270
query28	4216	1921	1932	1921
query29	765	532	454	454
query30	403	289	235	235
query31	934	804	716	716
query32	52	161	46	46
query33	172	146	146	146
query34	1049	928	552	552
query35	689	736	640	640
query36	1239	1346	1439	1346
query37	56	48	49	48
query38	3056	3037	3018	3018
query39	1017	963	946	946
query39_1	914	914	894	894
query40	62	59	58	58
query41	66	59	58	58
query42	101	91	88	88
query43	48	42	43	42
query44	1771	729	717	717
query45	190	187	180	180
query46	813	948	557	557
query47	2113	2135	2039	2039
query48	132	140	125	125
query49	251	239	251	239
query50	635	265	202	202
query51	4104	3999	3995	3995
query52	97	84	77	77
query53	181	193	161	161
query54	330	251	240	240
query55	81	78	71	71
query56	281	288	271	271
query57	1348	1371	1231	1231
query58	125	121	121	121
query59	2101	2198	2115	2115
query60	192	218	188	188
query61	181	142	142	142
query62	601	590	541	541
query63	191	172	165	165
query64	4627	1139	816	816
query65	4536	4416	4407	4407
query66	1441	423	333	333
query67	18059	17986	17762	17762
query68	2808	1067	630	630
query69	393	319	277	277
query70	961	877	910	877
query71	318	286	262	262
query72	5820	3179	3181	3179
query73	572	714	295	295
query74	9740	9710	9498	9498
query75	2504	2486	2043	2043
query76	2986	1079	652	652
query77	152	117	138	117
query78	11311	11457	10949	10949
query79	1054	807	546	546
query80	197	192	193	192
query81	582	290	245	245
query82	46	49	44	44
query83	90	88	84	84
query84	291	116	95	95
query85	339	381	359	359
query86	374	313	296	296
query87	3092	3095	2971	2971
query88	3263	2573	2565	2565
query89	453	327	293	293
query90	2382	168	166	166
query91	126	123	115	115
query92	49	44	44	44
query93	2027	960	569	569
query94	107	115	112	112
query95	134	483	1313	483
query96	3124	2580	525	525
query97	3205	2500	2378	2378
query98	51	51	47	47
query99	968	865	808	808
Total cold run time: 261273 ms
Total hot run time: 190386 ms

@Gabriel39
Copy link
Contributor Author

run buildall

1 similar comment
@Gabriel39
Copy link
Contributor Author

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17599	5336	5077	5077
q2	1999	301	188	188
q3	10255	1291	759	759
q4	10210	875	326	326
q5	7608	2117	1979	1979
q6	224	177	148	148
q7	882	727	593	593
q8	9250	1378	1118	1118
q9	5460	4841	4819	4819
q10	6862	1949	1548	1548
q11	497	298	276	276
q12	376	372	220	220
q13	17781	4071	3257	3257
q14	237	238	216	216
q15	899	840	812	812
q16	672	678	618	618
q17	647	842	428	428
q18	6678	6591	6465	6465
q19	1662	967	612	612
q20	401	344	242	242
q21	2654	1979	1914	1914
q22	355	318	285	285
Total cold run time: 103208 ms
Total hot run time: 31900 ms

----- Round 2, with runtime_filter_mode=off -----
q1	5413	5264	5262	5262
q2	253	353	269	269
q3	2169	2664	2258	2258
q4	1351	1723	1325	1325
q5	4252	4156	4203	4156
q6	215	184	139	139
q7	2316	2141	2010	2010
q8	2590	2357	2387	2357
q9	7442	7515	7529	7515
q10	2849	3083	2706	2706
q11	563	475	462	462
q12	676	733	594	594
q13	3827	4586	3515	3515
q14	306	303	304	303
q15	864	819	807	807
q16	697	717	709	709
q17	1196	1384	1443	1384
q18	7993	8050	7879	7879
q19	924	866	930	866
q20	2184	2259	2075	2075
q21	4661	4331	4072	4072
q22	596	546	517	517
Total cold run time: 53337 ms
Total hot run time: 51180 ms

@doris-robot
Copy link

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

query1	0.06	0.05	0.05
query2	0.09	0.05	0.05
query3	0.26	0.08	0.08
query4	1.60	0.10	0.11
query5	0.26	0.24	0.25
query6	1.18	0.67	0.67
query7	0.03	0.03	0.03
query8	0.05	0.03	0.04
query9	0.56	0.50	0.49
query10	0.56	0.55	0.54
query11	0.15	0.09	0.09
query12	0.13	0.10	0.11
query13	0.63	0.60	0.62
query14	1.05	1.05	1.05
query15	0.88	0.87	0.87
query16	0.38	0.38	0.37
query17	1.12	1.16	1.14
query18	0.23	0.22	0.21
query19	2.11	2.00	2.03
query20	0.02	0.01	0.01
query21	15.40	0.30	0.15
query22	5.10	0.06	0.05
query23	16.15	0.30	0.10
query24	1.02	0.67	0.33
query25	0.11	0.10	0.06
query26	0.15	0.13	0.14
query27	0.08	0.06	0.05
query28	3.47	1.14	0.96
query29	12.54	3.89	3.14
query30	0.28	0.13	0.10
query31	2.83	0.64	0.42
query32	3.23	0.60	0.50
query33	3.31	3.24	3.32
query34	16.58	5.40	4.73
query35	4.85	4.76	4.75
query36	0.64	0.49	0.48
query37	0.11	0.07	0.07
query38	0.07	0.04	0.04
query39	0.05	0.03	0.03
query40	0.19	0.16	0.16
query41	0.08	0.04	0.03
query42	0.04	0.02	0.02
query43	0.05	0.04	0.03
Total cold run time: 97.68 s
Total hot run time: 28.29 s

@Gabriel39
Copy link
Contributor Author

run buildall

@Gabriel39
Copy link
Contributor Author

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17646	5402	5102	5102
q2	2027	320	191	191
q3	10203	1334	781	781
q4	10215	849	319	319
q5	7962	2204	1887	1887
q6	214	186	152	152
q7	875	737	606	606
q8	9269	1416	1090	1090
q9	5364	4872	4923	4872
q10	6859	1964	1553	1553
q11	540	284	287	284
q12	382	373	220	220
q13	17762	4095	3258	3258
q14	246	234	221	221
q15	917	834	810	810
q16	651	680	609	609
q17	655	829	453	453
q18	6894	6463	6492	6463
q19	1464	1000	602	602
q20	385	347	238	238
q21	2688	2138	1876	1876
q22	355	323	275	275
Total cold run time: 103573 ms
Total hot run time: 31862 ms

----- Round 2, with runtime_filter_mode=off -----
q1	5454	5309	6215	5309
q2	265	334	258	258
q3	2204	2690	2266	2266
q4	1338	1718	1326	1326
q5	4313	4171	4467	4171
q6	256	199	149	149
q7	2248	1989	1861	1861
q8	2588	2437	2446	2437
q9	7479	7694	7292	7292
q10	2812	3052	2586	2586
q11	540	471	441	441
q12	729	769	636	636
q13	3983	4329	3583	3583
q14	297	328	300	300
q15	864	809	819	809
q16	690	744	693	693
q17	1130	1376	1367	1367
q18	7960	8114	7785	7785
q19	891	867	898	867
q20	2180	2065	1902	1902
q21	4512	4154	4101	4101
q22	567	558	508	508
Total cold run time: 53300 ms
Total hot run time: 50647 ms

@doris-robot
Copy link

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

query1	0.05	0.05	0.05
query2	0.09	0.04	0.04
query3	0.25	0.08	0.08
query4	1.61	0.12	0.11
query5	0.26	0.25	0.26
query6	1.16	0.67	0.67
query7	0.04	0.02	0.03
query8	0.05	0.03	0.04
query9	0.57	0.49	0.49
query10	0.57	0.55	0.56
query11	0.14	0.09	0.10
query12	0.14	0.11	0.10
query13	0.61	0.61	0.62
query14	1.06	1.07	1.08
query15	0.88	0.87	0.87
query16	0.42	0.42	0.39
query17	1.14	1.11	1.14
query18	0.22	0.21	0.21
query19	2.06	2.02	2.02
query20	0.02	0.02	0.02
query21	15.41	0.28	0.15
query22	4.91	0.06	0.05
query23	15.85	0.28	0.11
query24	2.31	0.36	0.69
query25	0.11	0.06	0.06
query26	0.13	0.13	0.14
query27	0.08	0.06	0.05
query28	4.32	1.15	0.96
query29	12.61	3.85	3.15
query30	0.28	0.13	0.11
query31	2.81	0.64	0.40
query32	3.24	0.60	0.51
query33	3.20	3.31	3.25
query34	16.01	5.32	4.76
query35	4.83	4.86	4.74
query36	0.67	0.50	0.48
query37	0.11	0.07	0.07
query38	0.08	0.04	0.05
query39	0.05	0.03	0.03
query40	0.19	0.16	0.15
query41	0.09	0.04	0.03
query42	0.04	0.03	0.03
query43	0.04	0.04	0.04
Total cold run time: 98.71 s
Total hot run time: 28.44 s

@Gabriel39
Copy link
Contributor Author

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17632	5268	5064	5064
q2	2044	295	187	187
q3	10251	1304	770	770
q4	10215	879	322	322
q5	7792	2156	1925	1925
q6	224	180	147	147
q7	886	741	611	611
q8	9280	1413	1137	1137
q9	5410	4923	4800	4800
q10	6864	1959	1586	1586
q11	522	302	279	279
q12	377	377	233	233
q13	17799	4121	3225	3225
q14	234	246	220	220
q15	907	835	811	811
q16	705	681	633	633
q17	666	770	487	487
q18	7309	6609	7265	6609
q19	1545	1070	669	669
q20	421	374	236	236
q21	2953	2213	2156	2156
q22	356	341	285	285
Total cold run time: 104392 ms
Total hot run time: 32392 ms

----- Round 2, with runtime_filter_mode=off -----
q1	5515	5470	5653	5470
q2	261	352	279	279
q3	2521	2872	2470	2470
q4	1529	1792	1582	1582
q5	4731	4552	4604	4552
q6	228	179	136	136
q7	2058	1879	1764	1764
q8	2516	2468	2451	2451
q9	7561	7462	7513	7462
q10	2901	2831	2400	2400
q11	532	462	441	441
q12	646	710	562	562
q13	3586	3998	3258	3258
q14	285	301	266	266
q15	835	795	793	793
q16	649	672	636	636
q17	1065	1237	1313	1237
q18	7673	7441	7325	7325
q19	845	802	794	794
q20	1963	2066	1899	1899
q21	4555	4274	4155	4155
q22	575	541	527	527
Total cold run time: 53030 ms
Total hot run time: 50459 ms

@doris-robot
Copy link

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

query1	0.05	0.05	0.05
query2	0.09	0.04	0.05
query3	0.26	0.09	0.08
query4	1.60	0.11	0.11
query5	0.28	0.25	0.25
query6	1.16	0.68	0.68
query7	0.04	0.03	0.03
query8	0.05	0.04	0.04
query9	0.57	0.50	0.50
query10	0.55	0.55	0.56
query11	0.14	0.09	0.09
query12	0.14	0.10	0.10
query13	0.63	0.62	0.61
query14	1.06	1.06	1.05
query15	0.88	0.86	0.87
query16	0.39	0.40	0.39
query17	1.10	1.12	1.10
query18	0.24	0.21	0.21
query19	2.13	2.00	1.99
query20	0.02	0.02	0.02
query21	15.41	0.27	0.15
query22	4.85	0.06	0.06
query23	15.85	0.30	0.11
query24	1.43	0.41	0.19
query25	0.13	0.07	0.05
query26	0.15	0.13	0.13
query27	0.12	0.06	0.06
query28	4.32	1.16	0.96
query29	12.55	3.92	3.17
query30	0.28	0.13	0.11
query31	2.82	0.64	0.41
query32	3.24	0.58	0.51
query33	3.29	3.30	3.27
query34	16.46	5.36	4.69
query35	4.86	4.85	4.78
query36	0.65	0.50	0.50
query37	0.11	0.07	0.07
query38	0.06	0.04	0.04
query39	0.05	0.03	0.03
query40	0.20	0.17	0.16
query41	0.08	0.03	0.02
query42	0.04	0.03	0.02
query43	0.05	0.04	0.04
Total cold run time: 98.38 s
Total hot run time: 28.28 s

@doris-robot
Copy link

BE UT Coverage Report

Increment line coverage 18.22% (47/258) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 52.56% (19369/36854)
Line Coverage 36.04% (179893/499171)
Region Coverage 32.42% (139515/430399)
Branch Coverage 33.41% (60401/180793)

@hello-stephen
Copy link
Contributor

BE Regression && UT Coverage Report

Increment line coverage 46.64% (118/253) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 57.31% (20700/36118)
Line Coverage 40.24% (200398/497976)
Region Coverage 36.97% (160749/434815)
Branch Coverage 37.67% (68377/181523)

@Gabriel39
Copy link
Contributor Author

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17633	5295	5126	5126
q2	2005	314	187	187
q3	10245	1362	761	761
q4	10199	837	316	316
q5	7519	2093	1935	1935
q6	197	183	148	148
q7	908	720	599	599
q8	9273	1402	1120	1120
q9	5264	4909	4898	4898
q10	6784	1964	1572	1572
q11	506	291	272	272
q12	339	380	229	229
q13	17774	4060	3279	3279
q14	232	234	214	214
q15	889	824	804	804
q16	660	708	630	630
q17	637	848	404	404
q18	6709	6518	7502	6518
q19	1261	1028	661	661
q20	419	361	260	260
q21	2999	2248	2023	2023
q22	365	336	299	299
Total cold run time: 102817 ms
Total hot run time: 32255 ms

----- Round 2, with runtime_filter_mode=off -----
q1	5602	5672	5549	5549
q2	279	331	245	245
q3	2292	2825	2465	2465
q4	1492	1837	1440	1440
q5	4772	4594	4609	4594
q6	228	185	138	138
q7	2055	2145	1817	1817
q8	2552	2391	2503	2391
q9	7406	7433	7403	7403
q10	2778	3064	2621	2621
q11	571	464	431	431
q12	682	815	692	692
q13	3966	4262	3510	3510
q14	296	317	310	310
q15	866	788	794	788
q16	633	687	650	650
q17	1075	1249	1236	1236
q18	7568	7443	7425	7425
q19	821	797	789	789
q20	1960	2050	1894	1894
q21	4563	4214	4087	4087
q22	577	531	510	510
Total cold run time: 53034 ms
Total hot run time: 50985 ms

@doris-robot
Copy link

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

query1	0.06	0.05	0.05
query2	0.11	0.05	0.05
query3	0.26	0.09	0.09
query4	1.61	0.12	0.11
query5	0.27	0.27	0.25
query6	1.16	0.66	0.67
query7	0.03	0.02	0.03
query8	0.05	0.04	0.04
query9	0.58	0.48	0.48
query10	0.56	0.55	0.56
query11	0.14	0.09	0.09
query12	0.14	0.11	0.11
query13	0.64	0.61	0.62
query14	1.08	1.05	1.06
query15	0.88	0.86	0.87
query16	0.39	0.41	0.39
query17	1.16	1.15	1.10
query18	0.22	0.21	0.20
query19	2.09	2.00	2.01
query20	0.02	0.02	0.02
query21	15.43	0.25	0.14
query22	5.07	0.06	0.06
query23	15.85	0.29	0.11
query24	1.88	0.66	0.27
query25	0.09	0.11	0.06
query26	0.16	0.14	0.13
query27	0.08	0.06	0.05
query28	4.61	1.14	0.98
query29	12.59	3.92	3.13
query30	0.27	0.12	0.11
query31	2.81	0.64	0.40
query32	3.24	0.59	0.48
query33	3.23	3.22	3.37
query34	16.40	5.44	4.74
query35	4.88	4.78	4.76
query36	0.66	0.49	0.48
query37	0.11	0.08	0.07
query38	0.08	0.04	0.05
query39	0.05	0.03	0.03
query40	0.19	0.17	0.16
query41	0.08	0.03	0.03
query42	0.04	0.04	0.04
query43	0.05	0.04	0.04
Total cold run time: 99.3 s
Total hot run time: 28.26 s

@doris-robot
Copy link

BE UT Coverage Report

Increment line coverage 17.34% (47/271) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 52.56% (19370/36854)
Line Coverage 36.05% (179944/499187)
Region Coverage 32.40% (139434/430413)
Branch Coverage 33.41% (60413/180805)

@hello-stephen
Copy link
Contributor

BE Regression && UT Coverage Report

Increment line coverage 73.31% (195/266) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 71.60% (25861/36118)
Line Coverage 54.23% (270054/497992)
Region Coverage 51.82% (225332/434829)
Branch Coverage 53.24% (96648/181535)

@hello-stephen
Copy link
Contributor

BE Regression && UT Coverage Report

Increment line coverage 73.31% (195/266) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 71.60% (25861/36118)
Line Coverage 54.23% (270054/497992)
Region Coverage 51.82% (225332/434829)
Branch Coverage 53.24% (96648/181535)

return Status::OK();
}

Status ColumnReader::_parse_zone_map_skip_null(const ZoneMapPB& zone_map,
Copy link
Contributor

Choose a reason for hiding this comment

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

如果我们zone_map_info 能表达出来all null,has null,not null 之类的,这个函数感觉没用了啊

if (type == FieldType::OLAP_FIELD_TYPE_CHAR) {
auto s = zone_map_info.max_value.template get<TYPE_CHAR>();
while (!s.empty() && s.back() == '\0') {
s.pop_back();
Copy link
Contributor

Choose a reason for hiding this comment

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

我们这里为什么要把char 类型的padding 去掉?

RETURN_IF_ERROR(_parse_zone_map(zone_maps[i], min_value.get(), max_value.get()));
if (_zone_map_match_condition(zone_maps[i], min_value.get(), max_value.get(),
col_predicates)) {
RETURN_IF_ERROR(_parse_zone_map(zone_maps[i], zone_map_info));
Copy link
Contributor

Choose a reason for hiding this comment

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

把614 行移动到616,防止重复使用,结果一些变量没有reset

@github-actions
Copy link
Contributor

github-actions bot commented Feb 4, 2026

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

@github-actions github-actions bot added approved Indicates a PR has been approved by one committer. reviewed labels Feb 4, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Feb 4, 2026

PR approved by anyone and no changes requested.

@Gabriel39 Gabriel39 merged commit fea4f53 into apache:master Feb 4, 2026
29 of 32 checks passed

auto arg_precision = static_cast<UInt32>(precision);

if (!CastToDecimal::from_string(StringRef(str), to, arg_precision, 0, params)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Should use scale?

Gabriel39 added a commit to Gabriel39/incubator-doris that referenced this pull request Feb 6, 2026
@Gabriel39 Gabriel39 mentioned this pull request Feb 6, 2026
16 tasks
yiguolei pushed a commit that referenced this pull request Feb 7, 2026
### What problem does this PR solve?

Pick #60253 #60393 #60481 #56956 #60334 #60494

### Check List (For Author)

- Test <!-- At least one of them must be included. -->
    - [ ] 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 <!-- Add your reason?  -->

- Behavior changed:
    - [ ] No.
    - [ ] Yes. <!-- Explain the behavior change -->

- Does this need documentation?
    - [ ] No.
- [ ] Yes. <!-- Add document PR link here. eg:
apache/doris-website#1214 -->

### Check List (For Reviewer who merge this PR)

- [ ] Confirm the release note
- [ ] Confirm test cases
- [ ] Confirm document
- [ ] Add branch pick label <!-- Add branch pick label that this PR
should merge into -->
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. dev/4.0.4-merged reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants