Skip to content

[feature](bucket) Support custom distribution_hash_type for Hash Bucketing - #66477

Open
zghong wants to merge 17 commits into
apache:masterfrom
zghong:feat/distribution_hash_type
Open

[feature](bucket) Support custom distribution_hash_type for Hash Bucketing#66477
zghong wants to merge 17 commits into
apache:masterfrom
zghong:feat/distribution_hash_type

Conversation

@zghong

@zghong zghong commented Aug 5, 2026

Copy link
Copy Markdown

What problem does this PR solve?

Issue Number: close #66231

Problem Summary:

Hash Bucketing previously supported only the CRC32 hash function to map a row to its bucket. There was no way for users to choose a different bucketing scheme, which prevents scenarios (e.g. bucket pruning / colocation with external systems) that rely on a plain identity mapping of the bucket key, as shown in #66231.

This PR introduces a table-level distribution_hash_type property for Hash Bucketing tables, supporting two values:

  • crc32 (default, keeps existing behavior), means crc32(key) % bucket_num.
  • identity (map rows to buckets by the raw key value), means key % bucket_num.

Main changes:

  • FE: parse and validate the new distribution_hash_type property in PropertyAnalyzer; carry the hash type through HashDistributionInfo, HashDistributionDesc, ColocateGroupSchema, DataPartition, DistributionSpecHash and related create-table / colocate paths; a new FeMetaVersion is added for metadata persistence. ADD PARTITION now inherits the table hash type.
  • Nereids: the optimizer is taught to recognize the non-CRC32 (identity) hash type when reasoning about distribution properties, so shuffle can be eliminated and bucket pruning (HashDistributionPruner, PruneOlapScanTablet) still works correctly for identity buckets.
  • BE: TDistributionHashType is added to thrift and threaded through the exchange / local-exchange sink operators and the tablet-sink partitioner so that the backend uses the same bucketing function as the FE plan, keeping FE/BE bucketing consistent. An identity partitioner is implemented.
  • thrift: add TDistributionHashType and propagate the field in Descriptors, Partitions, PlanNodes and Types.

Before this PR: only CRC32 bucketing was available.

After this PR: users can create Hash Bucketing tables with "distribution_hash_type" = "identity", and FE plan optimization plus BE data sink produce consistent bucketing results. And more hash functions can be extended in the future.

Release note

Support a new table property distribution_hash_type for Hash Bucketing tables. It accepts crc32 (default) and identity now, allowing users to choose the hash function used to map rows to buckets.

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. A new distribution_hash_type property is added; but default behavior (crc32) is unchanged.
  • Does this need documentation?

Check List (For Reviewer who merge this PR)

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

@hello-stephen

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?

@zghong

zghong commented Aug 5, 2026

Copy link
Copy Markdown
Author

run buildall

@hello-stephen

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

------ Round 1 ----------------------------------
============================================
q1	17594	3930	3917	3917
q2	2041	339	202	202
q3	10235	1474	809	809
q4	4685	475	338	338
q5	7625	859	575	575
q6	180	168	135	135
q7	755	785	613	613
q8	9384	1600	1659	1600
q9	5350	4130	4117	4117
q10	6759	1716	1350	1350
q11	524	351	319	319
q12	713	585	460	460
q13	18077	3286	2765	2765
q14	270	258	234	234
q15	q16	737	726	668	668
q17	1040	884	1016	884
q18	6632	5654	5544	5544
q19	1198	1321	1032	1032
q20	757	684	572	572
q21	5398	2865	2683	2683
q22	459	377	336	336
Total cold run time: 100413 ms
Total hot run time: 29153 ms

----- Round 2, with runtime_filter_mode=off -----
============================================
q1	5010	4662	4623	4623
q2	290	326	219	219
q3	5048	5552	4617	4617
q4	2203	2289	1434	1434
q5	4540	4694	4391	4391
q6	231	177	126	126
q7	1866	1834	1516	1516
q8	2333	2052	2056	2052
q9	7218	6940	6717	6717
q10	4250	4196	3815	3815
q11	512	373	345	345
q12	704	713	503	503
q13	2952	3235	2767	2767
q14	279	294	254	254
q15	q16	659	686	592	592
q17	1290	1271	1246	1246
q18	12124	11050	11775	11050
q19	1120	1098	1092	1092
q20	2199	2193	1905	1905
q21	5292	4571	4625	4571
q22	533	456	396	396
Total cold run time: 60653 ms
Total hot run time: 54231 ms

@hello-stephen

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

query5	4329	600	463	463
query6	463	226	216	216
query7	4874	563	339	339
query8	318	160	149	149
query9	8797	3998	4011	3998
query10	505	395	311	311
query11	5895	2183	1981	1981
query12	159	101	97	97
query13	1272	586	417	417
query14	6052	4276	4012	4012
query14_1	3785	3804	3768	3768
query15	196	196	175	175
query16	982	461	435	435
query17	915	708	535	535
query18	2431	479	340	340
query19	209	186	147	147
query20	104	103	103	103
query21	229	153	139	139
query22	13014	12938	12857	12857
query23	15895	14945	14516	14516
query23_1	14666	14749	14752	14749
query24	7644	1707	1245	1245
query24_1	1227	1273	1258	1258
query25	562	470	389	389
query26	1325	349	217	217
query27	2593	595	392	392
query28	4578	1989	1968	1968
query29	1088	616	477	477
query30	350	261	225	225
query31	1189	1114	1072	1072
query32	115	66	63	63
query33	517	312	254	254
query34	1207	1110	626	626
query35	745	740	649	649
query36	768	770	707	707
query37	157	109	95	95
query38	1854	1763	1665	1665
query39	822	826	799	799
query39_1	788	794	793	793
query40	255	159	140	140
query41	66	65	62	62
query42	92	94	93	93
query43	318	321	278	278
query44	1444	742	750	742
query45	184	172	175	172
query46	1030	1183	707	707
query47	1534	1514	1444	1444
query48	418	434	312	312
query49	577	408	288	288
query50	1068	441	344	344
query51	10849	10369	10390	10369
query52	85	87	75	75
query53	257	279	211	211
query54	280	229	219	219
query55	75	74	67	67
query56	308	305	301	301
query57	1027	1001	929	929
query58	297	270	245	245
query59	1535	1624	1368	1368
query60	311	275	256	256
query61	152	184	151	151
query62	408	320	268	268
query63	241	198	214	198
query64	2867	1024	850	850
query65	3912	3836	3767	3767
query66	1824	472	364	364
query67	28523	28182	27342	27342
query68	3474	1603	968	968
query69	424	296	274	274
query70	862	809	743	743
query71	377	349	311	311
query72	3071	2679	2448	2448
query73	883	735	434	434
query74	4677	4485	4310	4310
query75	2383	2376	2022	2022
query76	2456	1158	786	786
query77	362	385	284	284
query78	11141	10971	10704	10704
query79	1366	1086	774	774
query80	778	564	516	516
query81	467	339	289	289
query82	618	185	139	139
query83	423	334	297	297
query84	329	170	138	138
query85	1116	614	518	518
query86	367	233	226	226
query87	1976	1936	1840	1840
query88	3764	2780	2796	2780
query89	398	327	278	278
query90	1839	209	200	200
query91	205	195	167	167
query92	63	59	58	58
query93	1545	1517	1051	1051
query94	621	371	311	311
query95	793	607	507	507
query96	1001	755	353	353
query97	2457	2466	2316	2316
query98	200	189	182	182
query99	742	728	615	615
Total cold run time: 253749 ms
Total hot run time: 166066 ms

@hello-stephen

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

query1	0.01	0.01	0.01
query2	0.10	0.05	0.05
query3	0.26	0.14	0.14
query4	1.60	0.14	0.14
query5	0.24	0.22	0.23
query6	1.17	0.82	0.82
query7	0.05	0.01	0.01
query8	0.06	0.04	0.04
query9	0.40	0.31	0.32
query10	0.55	0.59	0.55
query11	0.20	0.14	0.14
query12	0.18	0.15	0.14
query13	0.47	0.46	0.48
query14	1.01	1.00	1.02
query15	0.60	0.59	0.59
query16	0.32	0.33	0.31
query17	1.14	1.12	1.11
query18	0.21	0.20	0.20
query19	2.06	1.97	1.93
query20	0.02	0.01	0.01
query21	15.44	0.21	0.14
query22	4.89	0.06	0.05
query23	16.11	0.31	0.12
query24	2.95	0.40	0.34
query25	0.10	0.07	0.05
query26	0.73	0.21	0.14
query27	0.03	0.03	0.05
query28	3.55	0.77	0.34
query29	12.51	4.01	3.17
query30	0.32	0.18	0.19
query31	2.77	0.55	0.32
query32	3.22	0.58	0.50
query33	3.27	3.23	3.16
query34	15.51	3.93	3.25
query35	3.25	3.25	3.19
query36	0.55	0.43	0.44
query37	0.10	0.07	0.07
query38	0.06	0.04	0.04
query39	0.05	0.03	0.03
query40	0.18	0.16	0.15
query41	0.09	0.04	0.03
query42	0.04	0.04	0.03
query43	0.05	0.04	0.04
Total cold run time: 96.42 s
Total hot run time: 23.98 s

zghong added 7 commits August 31, 2026 01:21
…ash_type

# Conflicts:
#	be/src/exec/partitioner/partitioner.h
#	fe/fe-core/src/main/java/org/apache/doris/planner/HashDistributionPruner.java
#	fe/fe-core/src/test/java/org/apache/doris/planner/HashDistributionPrunerTest.java
Carry the effective storage hash type through FE-planned and BE-native local
bucket exchanges. Add fragment protocol metadata and execution-version gating
so older backends cannot silently execute IDENTITY layouts as CRC32.
@zghong

zghong commented Sep 2, 2026

Copy link
Copy Markdown
Author

run buildall

@hello-stephen

Copy link
Copy Markdown
Contributor

Cloud UT Coverage Report

Increment line coverage 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 77.71% (2053/2642)
Line Coverage 65.63% (37462/57080)
Region Coverage 52.86% (34915/66057)
Branch Coverage 56.31% (11230/19942)

@hello-stephen

Copy link
Copy Markdown
Contributor

BE UT Coverage Report

Increment line coverage 59.35% (73/123) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 62.95% (29581/46988)
Line Coverage 48.00% (310239/646354)
Region Coverage 43.60% (250620/574795)
Branch Coverage 45.11% (116587/258468)

@hello-stephen

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

------ Round 1 ----------------------------------
============================================
q1	17566	3095	3118	3095
q2	2169	264	233	233
q3	10147	912	505	505
q4	4682	250	200	200
q5	7675	575	379	379
q6	135	118	93	93
q7	525	490	389	389
q8	9284	856	932	856
q9	3446	2388	2412	2388
q10	6516	860	762	762
q11	402	196	179	179
q12	620	261	202	202
q13	18123	1522	1152	1152
q14	161	154	143	143
q15	q16	440	394	377	377
q17	1413	918	870	870
q18	3081	2263	2254	2254
q19	1114	919	685	685
q20	374	296	202	202
q21	5318	1847	1865	1847
q22	330	263	233	233
Total cold run time: 93521 ms
Total hot run time: 17044 ms

----- Round 2, with runtime_filter_mode=off -----
============================================
q1	3493	3397	3406	3397
q2	520	390	365	365
q3	2244	2331	2191	2191
q4	1196	1160	911	911
q5	2187	2175	2118	2118
q6	173	121	86	86
q7	1010	924	898	898
q8	1603	1417	1425	1417
q9	3189	3142	3135	3135
q10	1869	1799	1614	1614
q11	363	268	257	257
q12	452	431	355	355
q13	1486	1538	1170	1170
q14	174	179	151	151
q15	q16	398	409	355	355
q17	3593	3267	3235	3235
q18	4816	4444	4745	4444
q19	899	901	875	875
q20	1011	992	851	851
q21	3884	3196	3241	3196
q22	386	348	323	323
Total cold run time: 34946 ms
Total hot run time: 31344 ms

@hello-stephen

Copy link
Copy Markdown
Contributor
TPC-DS: Total hot run time: 82231 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 2997cbbbe7470e08ecf88a18b1df80e34d6bb187, data reload: false

query5	4245	404	335	335
query6	393	139	128	128
query7	4955	427	234	234
query8	308	130	117	117
query9	8703	2898	2897	2897
query10	409	218	187	187
query11	5364	1036	938	938
query12	124	70	76	70
query13	1205	444	307	307
query14	6145	2210	2095	2095
query14_1	1970	1974	1969	1969
query15	181	123	115	115
query16	939	391	373	373
query17	819	470	376	376
query18	2338	341	251	251
query19	168	146	109	109
query20	74	70	73	70
query21	208	104	92	92
query22	5448	5332	5305	5305
query23	6809	6183	5880	5880
query23_1	6007	6220	6091	6091
query24	7293	1084	790	790
query24_1	774	782	772	772
query25	441	329	262	262
query26	1225	255	128	128
query27	2778	410	239	239
query28	4681	1511	1502	1502
query29	969	431	338	338
query30	252	154	125	125
query31	830	385	322	322
query32	127	79	74	74
query33	455	216	180	180
query34	1030	842	490	490
query35	398	413	333	333
query36	575	566	543	543
query37	124	82	69	69
query38	1004	841	803	803
query39	480	503	460	460
query39_1	468	460	477	460
query40	210	92	74	74
query41	55	51	50	50
query42	75	71	71	71
query43	243	243	216	216
query44	1030	537	551	537
query45	105	107	97	97
query46	789	879	518	518
query47	762	777	715	715
query48	280	298	224	224
query49	564	238	187	187
query50	703	264	195	195
query51	8123	8141	8069	8069
query52	68	67	59	59
query53	194	200	144	144
query54	254	166	160	160
query55	79	59	55	55
query56	206	246	160	160
query57	681	668	658	658
query58	202	165	165	165
query59	1223	1249	1097	1097
query60	240	190	190	190
query61	121	122	125	122
query62	375	217	183	183
query63	176	138	140	138
query64	2689	752	634	634
query65	1591	1592	1613	1592
query66	1917	267	212	212
query67	10033	9786	9805	9786
query68	3049	1118	740	740
query69	349	229	190	190
query70	649	624	627	624
query71	261	177	158	158
query72	2405	1771	1572	1572
query73	677	617	363	363
query74	2013	1240	1143	1143
query75	1207	1098	963	963
query76	2399	724	535	535
query77	263	254	219	219
query78	3857	3672	3239	3239
query79	2421	759	571	571
query80	1599	326	272	272
query81	494	155	134	134
query82	655	122	94	94
query83	325	204	193	193
query84	293	116	95	95
query85	860	365	320	320
query86	427	176	176	176
query87	1050	986	911	911
query88	2798	2082	2116	2082
query89	298	200	175	175
query90	1990	130	122	122
query91	140	123	106	106
query92	81	70	68	68
query93	1731	1069	680	680
query94	677	263	204	204
query95	537	330	229	229
query96	819	573	277	277
query97	1053	1079	1020	1020
query98	156	137	130	130
query99	438	349	308	308
Total cold run time: 179138 ms
Total hot run time: 82231 ms

@hello-stephen

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

query1	0.00	0.01	0.00
query2	0.08	0.03	0.03
query3	0.25	0.11	0.11
query4	1.62	0.10	0.09
query5	0.18	0.17	0.16
query6	1.18	0.71	0.68
query7	0.04	0.01	0.00
query8	0.05	0.02	0.03
query9	0.28	0.21	0.22
query10	0.36	0.33	0.34
query11	0.16	0.11	0.12
query12	0.15	0.12	0.12
query13	0.31	0.31	0.30
query14	0.46	0.46	0.44
query15	0.36	0.35	0.36
query16	0.21	0.24	0.21
query17	0.70	0.70	0.65
query18	0.18	0.18	0.17
query19	1.14	1.13	1.11
query20	0.02	0.01	0.01
query21	15.45	0.16	0.11
query22	5.05	0.04	0.04
query23	16.14	0.25	0.10
query24	3.08	0.31	0.26
query25	0.11	0.03	0.04
query26	0.74	0.18	0.11
query27	0.05	0.03	0.04
query28	3.57	0.55	0.28
query29	12.44	3.17	2.57
query30	0.25	0.12	0.13
query31	2.76	0.37	0.17
query32	3.50	0.33	0.23
query33	1.37	1.53	1.43
query34	15.43	2.13	1.77
query35	1.74	1.73	1.73
query36	0.46	0.29	0.29
query37	0.06	0.04	0.04
query38	0.04	0.03	0.02
query39	0.04	0.02	0.03
query40	0.12	0.08	0.07
query41	0.08	0.02	0.03
query42	0.03	0.03	0.03
query43	0.03	0.03	0.02
Total cold run time: 90.27 s
Total hot run time: 14.59 s

@hello-stephen

Copy link
Copy Markdown
Contributor

BE Regression && UT Coverage Report

Increment line coverage 74.80% (92/123) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 76.14% (34653/45511)
Line Coverage 61.23% (391237/638983)
Region Coverage 57.33% (328284/572604)
Branch Coverage 58.18% (149943/257729)

@zghong

zghong commented Sep 2, 2026

Copy link
Copy Markdown
Author

run buildall

@hello-stephen

Copy link
Copy Markdown
Contributor

FE Regression Coverage Report

Increment line coverage 60.43% (139/230) 🎉
Increment coverage report
Complete coverage report

@hello-stephen

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

------ Round 1 ----------------------------------
============================================
q1	17649	3101	3089	3089
q2	2140	254	237	237
q3	10198	943	523	523
q4	4670	247	206	206
q5	7685	552	388	388
q6	137	114	95	95
q7	541	499	384	384
q8	9236	929	982	929
q9	3454	2418	2385	2385
q10	6510	846	724	724
q11	403	198	178	178
q12	626	251	198	198
q13	18145	1517	1168	1168
q14	157	150	140	140
q15	q16	432	398	373	373
q17	1338	899	770	770
q18	3052	2280	2245	2245
q19	1103	894	688	688
q20	354	283	207	207
q21	4840	1617	1885	1617
q22	324	263	228	228
Total cold run time: 92994 ms
Total hot run time: 16772 ms

----- Round 2, with runtime_filter_mode=off -----
============================================
q1	3431	3418	3361	3361
q2	519	403	376	376
q3	2266	2298	2301	2298
q4	1195	1208	896	896
q5	2199	2138	2148	2138
q6	172	119	88	88
q7	1024	922	861	861
q8	1601	1426	1436	1426
q9	3185	3142	3131	3131
q10	1854	1808	1609	1609
q11	364	276	254	254
q12	453	427	352	352
q13	1478	1515	1159	1159
q14	177	179	171	171
q15	q16	391	403	366	366
q17	3629	3350	3173	3173
q18	4835	4450	4769	4450
q19	864	835	900	835
q20	1005	993	831	831
q21	3881	3166	3312	3166
q22	404	347	329	329
Total cold run time: 34927 ms
Total hot run time: 31270 ms

@hello-stephen

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

query5	4238	400	336	336
query6	401	133	123	123
query7	4961	429	241	241
query8	314	131	118	118
query9	8652	2885	2896	2885
query10	393	230	182	182
query11	5367	1019	914	914
query12	119	71	69	69
query13	1196	457	326	326
query14	6108	2205	2079	2079
query14_1	1993	1980	1966	1966
query15	181	125	114	114
query16	944	384	368	368
query17	829	466	383	383
query18	2346	341	239	239
query19	172	148	115	115
query20	90	71	70	70
query21	199	101	86	86
query22	5425	5472	5431	5431
query23	6801	6235	6031	6031
query23_1	6271	6008	6224	6008
query24	7278	1130	777	777
query24_1	817	771	821	771
query25	454	307	266	266
query26	1225	233	136	136
query27	2781	436	257	257
query28	4675	1528	1501	1501
query29	960	453	367	367
query30	256	157	134	134
query31	865	408	329	329
query32	124	77	73	73
query33	466	225	194	194
query34	1035	821	479	479
query35	412	408	346	346
query36	583	543	519	519
query37	119	86	75	75
query38	999	847	819	819
query39	514	485	480	480
query39_1	473	464	487	464
query40	212	93	79	79
query41	62	58	54	54
query42	76	73	76	73
query43	243	241	213	213
query44	1049	556	561	556
query45	139	111	99	99
query46	776	804	521	521
query47	772	749	715	715
query48	301	301	218	218
query49	553	234	186	186
query50	741	260	192	192
query51	8106	8098	8100	8098
query52	74	66	59	59
query53	192	189	145	145
query54	225	194	149	149
query55	81	58	55	55
query56	226	163	177	163
query57	691	623	650	623
query58	207	161	162	161
query59	1206	1230	1117	1117
query60	237	212	172	172
query61	117	110	118	110
query62	365	218	194	194
query63	170	143	144	143
query64	2739	716	577	577
query65	1549	1611	1629	1611
query66	1799	247	196	196
query67	9934	9696	9690	9690
query68	3020	1242	740	740
query69	361	232	205	205
query70	647	600	621	600
query71	254	177	172	172
query72	2404	1792	1544	1544
query73	684	570	338	338
query74	2003	1212	1148	1148
query75	1212	1104	957	957
query76	2391	732	570	570
query77	268	272	218	218
query78	4017	3867	3252	3252
query79	2496	893	610	610
query80	1583	321	293	293
query81	499	159	131	131
query82	704	120	95	95
query83	282	214	187	187
query84	293	108	87	87
query85	838	365	307	307
query86	403	177	178	177
query87	1011	969	885	885
query88	2809	2112	2110	2110
query89	284	197	169	169
query90	2005	122	129	122
query91	134	121	100	100
query92	79	72	69	69
query93	1672	1078	701	701
query94	655	246	200	200
query95	548	263	322	263
query96	801	558	253	253
query97	1026	1090	1000	1000
query98	162	141	131	131
query99	454	347	305	305
Total cold run time: 179290 ms
Total hot run time: 82337 ms

@hello-stephen

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

query1	0.01	0.01	0.00
query2	0.08	0.04	0.03
query3	0.25	0.10	0.11
query4	1.60	0.10	0.10
query5	0.18	0.15	0.17
query6	1.24	0.69	0.68
query7	0.04	0.01	0.00
query8	0.05	0.04	0.03
query9	0.28	0.22	0.22
query10	0.34	0.34	0.36
query11	0.18	0.12	0.12
query12	0.15	0.12	0.12
query13	0.31	0.31	0.31
query14	0.46	0.44	0.45
query15	0.36	0.34	0.36
query16	0.21	0.22	0.23
query17	0.72	0.73	0.68
query18	0.19	0.18	0.17
query19	1.19	1.19	1.13
query20	0.02	0.01	0.01
query21	15.48	0.16	0.12
query22	5.03	0.04	0.04
query23	16.16	0.24	0.11
query24	3.07	0.28	0.26
query25	0.14	0.03	0.03
query26	0.74	0.16	0.14
query27	0.04	0.03	0.03
query28	3.60	0.58	0.30
query29	12.42	3.19	2.57
query30	0.26	0.11	0.12
query31	2.75	0.36	0.17
query32	3.51	0.32	0.24
query33	1.38	1.51	1.50
query34	15.41	2.18	1.77
query35	1.72	1.76	1.73
query36	0.49	0.30	0.28
query37	0.07	0.05	0.04
query38	0.04	0.03	0.03
query39	0.03	0.03	0.03
query40	0.13	0.07	0.08
query41	0.08	0.03	0.03
query42	0.04	0.02	0.02
query43	0.04	0.02	0.03
Total cold run time: 90.49 s
Total hot run time: 14.83 s

@hello-stephen

Copy link
Copy Markdown
Contributor

Cloud UT Coverage Report

Increment line coverage 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 77.71% (2053/2642)
Line Coverage 65.64% (37465/57080)
Region Coverage 52.77% (34859/66057)
Branch Coverage 56.27% (11221/19942)

@hello-stephen

Copy link
Copy Markdown
Contributor

FE UT Coverage Report

Increment line coverage 80.11% (145/181) 🎉
Increment coverage report
Complete coverage report

@hello-stephen

Copy link
Copy Markdown
Contributor

BE Regression && UT Coverage Report

Increment line coverage 74.80% (92/123) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 76.16% (34662/45511)
Line Coverage 61.24% (391316/638983)
Region Coverage 57.34% (328335/572604)
Branch Coverage 58.16% (149883/257729)

@hello-stephen

Copy link
Copy Markdown
Contributor

FE Regression Coverage Report

Increment line coverage 76.80% (139/181) 🎉
Increment coverage report
Complete coverage report

@zghong

zghong commented Sep 3, 2026

Copy link
Copy Markdown
Author

run buildall

@hello-stephen

Copy link
Copy Markdown
Contributor

Cloud UT Coverage Report

Increment line coverage 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 77.69% (2055/2645)
Line Coverage 65.71% (37552/57152)
Region Coverage 52.88% (34990/66167)
Branch Coverage 56.41% (11256/19954)

@hello-stephen

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

------ Round 1 ----------------------------------
============================================
q1	17613	3093	3081	3081
q2	2090	255	223	223
q3	10242	858	515	515
q4	4671	248	201	201
q5	7674	610	388	388
q6	134	116	93	93
q7	528	520	386	386
q8	9236	948	913	913
q9	3477	2406	2405	2405
q10	6497	831	720	720
q11	415	200	182	182
q12	632	258	196	196
q13	18120	1530	1173	1173
q14	160	145	142	142
q15	q16	448	397	364	364
q17	1345	896	864	864
q18	3154	2261	2254	2254
q19	1134	929	741	741
q20	360	283	212	212
q21	5308	1614	1889	1614
q22	327	276	234	234
Total cold run time: 93565 ms
Total hot run time: 16901 ms

----- Round 2, with runtime_filter_mode=off -----
============================================
q1	3444	3408	3407	3407
q2	519	411	382	382
q3	2195	2255	2143	2143
q4	1201	1178	900	900
q5	2174	2127	2111	2111
q6	171	120	89	89
q7	1060	918	861	861
q8	1612	1422	1424	1422
q9	3108	3097	3070	3070
q10	1841	1824	1609	1609
q11	362	273	258	258
q12	454	434	348	348
q13	1480	1536	1146	1146
q14	170	162	157	157
q15	q16	395	402	359	359
q17	3581	3247	3174	3174
q18	4854	4434	4738	4434
q19	841	860	866	860
q20	1004	961	837	837
q21	3880	3190	3317	3190
q22	396	343	326	326
Total cold run time: 34742 ms
Total hot run time: 31083 ms

@hello-stephen

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

query5	4238	409	345	345
query6	390	133	129	129
query7	4953	432	236	236
query8	294	129	119	119
query9	8712	2874	2907	2874
query10	419	213	181	181
query11	5387	1034	899	899
query12	115	69	75	69
query13	1200	461	310	310
query14	6106	2206	2081	2081
query14_1	1978	1964	1990	1964
query15	182	125	114	114
query16	927	373	363	363
query17	821	456	368	368
query18	2343	335	251	251
query19	170	144	113	113
query20	75	71	70	70
query21	202	103	97	97
query22	5294	5367	5258	5258
query23	6640	6269	6110	6110
query23_1	6149	6161	5985	5985
query24	7283	1126	781	781
query24_1	786	782	783	782
query25	444	308	258	258
query26	1226	231	132	132
query27	2782	427	266	266
query28	4664	1517	1532	1517
query29	939	450	365	365
query30	250	157	133	133
query31	825	403	345	345
query32	128	79	74	74
query33	471	231	198	198
query34	1021	842	482	482
query35	398	414	351	351
query36	576	555	526	526
query37	122	81	69	69
query38	1019	846	815	815
query39	541	470	465	465
query39_1	451	460	479	460
query40	210	94	80	80
query41	62	57	57	57
query42	80	74	74	74
query43	245	248	214	214
query44	1045	554	561	554
query45	131	103	100	100
query46	817	887	526	526
query47	749	744	722	722
query48	303	320	219	219
query49	530	243	182	182
query50	735	269	189	189
query51	8205	7974	8095	7974
query52	74	74	60	60
query53	199	199	146	146
query54	235	187	175	175
query55	73	57	58	57
query56	203	214	231	214
query57	685	668	657	657
query58	189	164	151	151
query59	1211	1256	1081	1081
query60	237	195	176	176
query61	121	112	121	112
query62	363	211	188	188
query63	177	148	137	137
query64	2710	697	583	583
query65	1650	1552	1589	1552
query66	1907	264	221	221
query67	9708	9905	9469	9469
query68	2995	1242	765	765
query69	369	230	189	189
query70	666	614	610	610
query71	257	178	170	170
query72	2391	1727	1597	1597
query73	656	603	321	321
query74	2017	1226	1128	1128
query75	1191	1106	967	967
query76	2385	732	528	528
query77	249	258	214	214
query78	3983	3758	3242	3242
query79	2332	870	576	576
query80	1592	358	278	278
query81	499	154	132	132
query82	613	137	98	98
query83	283	211	189	189
query84	298	116	89	89
query85	795	365	292	292
query86	407	183	188	183
query87	1027	964	896	896
query88	2793	2115	2103	2103
query89	284	200	178	178
query90	2001	130	119	119
query91	132	119	98	98
query92	78	72	70	70
query93	1586	1099	692	692
query94	625	241	227	227
query95	562	323	229	229
query96	765	589	278	278
query97	1066	1039	1007	1007
query98	172	133	138	133
query99	418	344	316	316
Total cold run time: 178277 ms
Total hot run time: 81949 ms

@hello-stephen

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

query1	0.01	0.00	0.01
query2	0.08	0.03	0.03
query3	0.25	0.11	0.11
query4	1.61	0.10	0.09
query5	0.17	0.16	0.15
query6	1.31	0.66	0.70
query7	0.03	0.00	0.01
query8	0.05	0.03	0.04
query9	0.30	0.21	0.21
query10	0.34	0.36	0.34
query11	0.16	0.11	0.11
query12	0.16	0.12	0.11
query13	0.30	0.32	0.31
query14	0.45	0.44	0.45
query15	0.36	0.33	0.35
query16	0.21	0.24	0.24
query17	0.69	0.70	0.70
query18	0.19	0.17	0.17
query19	1.19	1.16	1.16
query20	0.01	0.01	0.01
query21	15.45	0.16	0.11
query22	5.10	0.04	0.05
query23	16.19	0.25	0.10
query24	2.93	0.35	0.26
query25	0.12	0.04	0.04
query26	0.75	0.17	0.11
query27	0.03	0.02	0.03
query28	3.64	0.55	0.26
query29	12.48	3.16	2.56
query30	0.26	0.11	0.12
query31	2.76	0.37	0.18
query32	3.51	0.30	0.23
query33	1.43	1.46	1.55
query34	15.36	2.18	1.78
query35	1.77	1.74	1.74
query36	0.46	0.29	0.28
query37	0.07	0.04	0.05
query38	0.05	0.04	0.03
query39	0.04	0.02	0.02
query40	0.11	0.09	0.07
query41	0.08	0.03	0.02
query42	0.04	0.02	0.02
query43	0.04	0.03	0.02
Total cold run time: 90.54 s
Total hot run time: 14.7 s

@hello-stephen

Copy link
Copy Markdown
Contributor

BE Regression && UT Coverage Report

Increment line coverage 97.56% (120/123) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 76.26% (34642/45427)
Line Coverage 61.35% (391094/637524)
Region Coverage 57.50% (328614/571499)
Branch Coverage 58.32% (149835/256906)

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.

[Bug] Data skew in Hash Bucketing with CRC32

2 participants