Skip to content

Conversation

@Hastyshell
Copy link
Collaborator

@Hastyshell Hastyshell commented Jul 30, 2025

What problem does this PR solve?

Cherry-pick: #54024 #54072

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

@Hastyshell Hastyshell requested a review from morrySnow as a code owner July 30, 2025 12:09
@Thearas
Copy link
Contributor

Thearas commented Jul 30, 2025

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?

@Hastyshell Hastyshell changed the title [fix](schema-change) Rebuild distribution info according to original order [fix](schema-change) Rebuild distribution info according to original order (#54024) (#54072) Jul 30, 2025
@Hastyshell
Copy link
Collaborator Author

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17848	5646	5484	5484
q2	2079	293	177	177
q3	10525	1306	730	730
q4	10226	873	456	456
q5	7718	2414	2162	2162
q6	190	168	134	134
q7	928	732	612	612
q8	9328	1424	1192	1192
q9	5287	4920	4887	4887
q10	6773	2257	1861	1861
q11	468	286	278	278
q12	343	361	208	208
q13	17805	3601	3037	3037
q14	223	223	205	205
q15	519	479	485	479
q16	413	413	370	370
q17	602	873	374	374
q18	7121	6591	6430	6430
q19	1624	964	561	561
q20	330	329	200	200
q21	2794	2175	1973	1973
q22	1051	990	966	966
Total cold run time: 104195 ms
Total hot run time: 32776 ms

----- Round 2, with runtime_filter_mode=off -----
q1	5605	5565	5532	5532
q2	243	339	229	229
q3	2258	2687	2299	2299
q4	1303	1827	1304	1304
q5	4439	4889	5102	4889
q6	171	162	128	128
q7	2068	1929	1819	1819
q8	2617	2844	2668	2668
q9	7245	7189	7157	7157
q10	3008	3300	2780	2780
q11	587	516	492	492
q12	662	743	599	599
q13	3375	3730	3130	3130
q14	283	292	287	287
q15	527	487	469	469
q16	439	480	438	438
q17	1236	1776	1264	1264
q18	7569	7480	7263	7263
q19	815	1212	1060	1060
q20	1960	2053	1885	1885
q21	5315	4897	4656	4656
q22	1109	1077	1023	1023
Total cold run time: 52834 ms
Total hot run time: 51371 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 189234 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 e2fa1bb005b6c8124f2b0c1fc7de34d71f5ba16f, data reload: false

query1	979	394	401	394
query2	6547	1955	1842	1842
query3	6708	224	225	224
query4	33689	24054	23178	23178
query5	4325	602	455	455
query6	271	194	175	175
query7	4631	498	327	327
query8	284	255	235	235
query9	9718	2605	2574	2574
query10	456	333	266	266
query11	18517	15391	15241	15241
query12	160	110	104	104
query13	1651	550	412	412
query14	9916	6549	6769	6549
query15	227	187	181	181
query16	8021	653	476	476
query17	1636	753	588	588
query18	2131	430	340	340
query19	229	199	167	167
query20	121	113	110	110
query21	204	129	109	109
query22	4576	4592	4452	4452
query23	34893	33437	33422	33422
query24	7253	2662	2616	2616
query25	513	468	429	429
query26	1209	279	169	169
query27	2177	464	344	344
query28	5027	2158	2122	2122
query29	780	584	453	453
query30	259	189	162	162
query31	986	882	794	794
query32	86	64	58	58
query33	529	353	303	303
query34	740	833	525	525
query35	777	794	718	718
query36	968	1030	931	931
query37	104	95	73	73
query38	3880	3873	3868	3868
query39	1482	1460	1423	1423
query40	201	117	109	109
query41	54	52	51	51
query42	117	108	105	105
query43	501	501	485	485
query44	1319	797	797	797
query45	182	174	168	168
query46	870	1040	668	668
query47	1848	1891	1869	1869
query48	422	411	344	344
query49	800	533	414	414
query50	650	666	408	408
query51	7139	7135	7027	7027
query52	95	98	91	91
query53	234	250	181	181
query54	552	546	474	474
query55	82	77	78	77
query56	265	263	253	253
query57	1239	1243	1169	1169
query58	237	219	215	215
query59	2944	3059	2812	2812
query60	315	287	275	275
query61	129	110	110	110
query62	806	735	677	677
query63	227	191	185	185
query64	4500	970	634	634
query65	3293	3174	3181	3174
query66	1005	395	306	306
query67	15865	15790	15397	15397
query68	7305	827	546	546
query69	486	319	266	266
query70	1195	1131	1101	1101
query71	562	305	269	269
query72	5684	3697	3834	3697
query73	638	743	365	365
query74	9854	9332	8961	8961
query75	3231	3149	2657	2657
query76	3368	1177	749	749
query77	728	359	276	276
query78	10255	10420	9633	9633
query79	3558	887	601	601
query80	642	548	431	431
query81	488	264	219	219
query82	617	114	87	87
query83	183	162	147	147
query84	282	103	74	74
query85	776	357	287	287
query86	356	312	309	309
query87	4295	4291	4216	4216
query88	5041	2432	2415	2415
query89	401	328	289	289
query90	1895	193	188	188
query91	140	142	110	110
query92	62	55	50	50
query93	1792	907	545	545
query94	694	372	309	309
query95	336	268	257	257
query96	497	614	296	296
query97	3192	3333	3102	3102
query98	222	206	197	197
query99	1502	1423	1301	1301
Total cold run time: 292828 ms
Total hot run time: 189234 ms

@doris-robot
Copy link

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

query1	0.03	0.03	0.03
query2	0.07	0.03	0.04
query3	0.23	0.06	0.07
query4	1.63	0.11	0.11
query5	0.50	0.51	0.51
query6	1.14	0.73	0.72
query7	0.03	0.02	0.02
query8	0.05	0.03	0.04
query9	0.58	0.50	0.51
query10	0.54	0.56	0.55
query11	0.14	0.10	0.11
query12	0.14	0.11	0.11
query13	0.61	0.59	0.60
query14	0.77	0.82	0.79
query15	0.85	0.85	0.82
query16	0.39	0.39	0.41
query17	1.00	1.02	1.01
query18	0.25	0.23	0.23
query19	1.89	1.82	1.81
query20	0.01	0.01	0.02
query21	15.39	0.88	0.59
query22	0.74	0.88	0.60
query23	15.09	1.47	0.52
query24	3.02	1.17	1.50
query25	0.16	0.19	0.12
query26	0.25	0.16	0.13
query27	0.06	0.05	0.05
query28	14.06	1.04	0.44
query29	12.62	3.89	3.22
query30	0.24	0.09	0.06
query31	2.82	0.58	0.37
query32	3.23	0.53	0.47
query33	3.00	3.00	3.03
query34	16.31	5.16	4.55
query35	4.53	4.55	4.55
query36	0.66	0.50	0.47
query37	0.09	0.06	0.06
query38	0.05	0.04	0.04
query39	0.04	0.02	0.03
query40	0.17	0.13	0.14
query41	0.08	0.03	0.02
query42	0.04	0.02	0.03
query43	0.04	0.03	0.03
Total cold run time: 103.54 s
Total hot run time: 29.05 s

@hello-stephen
Copy link
Contributor

FE UT Coverage Report

Increment line coverage 100.00% (3/3) 🎉
Increment coverage report
Complete coverage report

@morrySnow morrySnow merged commit fc0bbd0 into apache:branch-3.1 Jul 31, 2025
27 checks passed
@morrySnow morrySnow changed the title [fix](schema-change) Rebuild distribution info according to original order (#54024) (#54072) branch-3.1: [fix](schema-change) Rebuild distribution info according to original order #54024 #54072 Jul 31, 2025
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