Skip to content

[followup](BE) rename assume_mutable to assert_mutable#63557

Merged
zclllyybb merged 1 commit into
apache:masterfrom
zclllyybb:cow
May 23, 2026
Merged

[followup](BE) rename assume_mutable to assert_mutable#63557
zclllyybb merged 1 commit into
apache:masterfrom
zclllyybb:cow

Conversation

@zclllyybb
Copy link
Copy Markdown
Contributor

followup #63001. we changed the actual meaning of assume_mutable

@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?

@zclllyybb
Copy link
Copy Markdown
Contributor Author

run buildall

@hello-stephen
Copy link
Copy Markdown
Contributor

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

------ Round 1 ----------------------------------
orders	Doris	NULL	NULL	0	0	0	NULL	0	NULL	NULL	2023-12-26 18:27:23	2023-12-26 18:42:55	NULL	utf-8	NULL	NULL	
============================================
q1	17668	4048	4067	4048
q2	q3	10777	1456	811	811
q4	4714	482	356	356
q5	8269	2252	2149	2149
q6	384	179	135	135
q7	949	781	645	645
q8	9419	1745	1660	1660
q9	7015	5026	4977	4977
q10	6444	2205	1882	1882
q11	422	283	246	246
q12	689	434	296	296
q13	18200	3563	2793	2793
q14	266	258	239	239
q15	q16	833	765	713	713
q17	975	862	1011	862
q18	6913	5774	5562	5562
q19	1200	1369	1107	1107
q20	528	403	251	251
q21	5771	2571	2455	2455
q22	434	362	309	309
Total cold run time: 101870 ms
Total hot run time: 31496 ms

----- Round 2, with runtime_filter_mode=off -----
orders	Doris	NULL	NULL	150000000	42	6422171781	NULL	22778155	NULL	NULL	2023-12-26 18:27:23	2023-12-26 18:42:55	NULL	utf-8	NULL	NULL	
============================================
q1	4383	4276	4295	4276
q2	q3	4539	4959	4389	4389
q4	2145	2212	1407	1407
q5	4469	4347	5061	4347
q6	246	190	149	149
q7	2015	1839	1626	1626
q8	2489	2208	2160	2160
q9	8060	8112	8070	8070
q10	5031	4742	4305	4305
q11	592	441	396	396
q12	750	775	545	545
q13	3310	3676	2960	2960
q14	312	319	281	281
q15	q16	734	756	655	655
q17	1412	1373	1361	1361
q18	7997	7348	6877	6877
q19	1110	1125	1063	1063
q20	2221	2228	1961	1961
q21	5462	4795	4644	4644
q22	561	481	437	437
Total cold run time: 57838 ms
Total hot run time: 51909 ms

@hello-stephen
Copy link
Copy Markdown
Contributor

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

query5	4321	664	526	526
query6	334	219	191	191
query7	4278	562	326	326
query8	335	244	236	236
query9	8846	4100	4096	4096
query10	456	354	309	309
query11	5872	2626	2222	2222
query12	182	136	126	126
query13	1272	634	426	426
query14	6522	5520	5224	5224
query14_1	4536	4539	4512	4512
query15	219	210	196	196
query16	1023	476	443	443
query17	1173	724	593	593
query18	2709	473	349	349
query19	232	198	157	157
query20	137	134	131	131
query21	219	140	117	117
query22	13777	13639	13551	13551
query23	17425	16513	16164	16164
query23_1	16443	16552	16359	16359
query24	7546	1778	1317	1317
query24_1	1319	1312	1323	1312
query25	580	479	409	409
query26	1350	331	177	177
query27	2663	572	343	343
query28	4449	2032	1995	1995
query29	956	620	499	499
query30	308	236	200	200
query31	1136	1082	940	940
query32	85	76	73	73
query33	537	358	301	301
query34	1179	1139	663	663
query35	774	824	691	691
query36	1437	1415	1258	1258
query37	154	102	94	94
query38	3234	3169	3041	3041
query39	931	929	895	895
query39_1	881	876	880	876
query40	234	146	122	122
query41	63	63	64	63
query42	108	109	106	106
query43	333	340	305	305
query44	
query45	220	213	202	202
query46	1106	1186	782	782
query47	2323	2364	2237	2237
query48	406	421	302	302
query49	670	526	406	406
query50	1003	347	262	262
query51	4406	4317	4216	4216
query52	105	106	96	96
query53	264	288	217	217
query54	340	296	268	268
query55	97	99	87	87
query56	307	314	326	314
query57	1434	1445	1354	1354
query58	305	284	284	284
query59	1625	1714	1517	1517
query60	329	332	321	321
query61	184	181	180	180
query62	712	662	594	594
query63	247	207	207	207
query64	2361	858	680	680
query65	
query66	1698	488	353	353
query67	30074	30059	29928	29928
query68	
query69	452	350	308	308
query70	1065	1004	993	993
query71	308	273	266	266
query72	2956	2753	2462	2462
query73	884	793	430	430
query74	5122	5019	4805	4805
query75	2650	2623	2278	2278
query76	2288	1196	750	750
query77	403	405	340	340
query78	12611	12377	11845	11845
query79	1479	1074	773	773
query80	1340	521	452	452
query81	528	284	242	242
query82	998	155	124	124
query83	345	280	252	252
query84	255	139	108	108
query85	960	545	459	459
query86	456	341	332	332
query87	3463	3398	3260	3260
query88	3650	2749	2708	2708
query89	449	389	344	344
query90	1942	178	179	178
query91	180	170	144	144
query92	80	77	69	69
query93	1530	1455	836	836
query94	724	369	317	317
query95	672	481	354	354
query96	1026	807	339	339
query97	2744	2747	2593	2593
query98	233	235	238	235
query99	1145	1176	1031	1031
Total cold run time: 256587 ms
Total hot run time: 172016 ms

@zclllyybb
Copy link
Copy Markdown
Contributor Author

/review

Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

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

No blocking issues found. The PR is a focused mechanical rename of the COW API from assume_mutable* to assert_mutable*, with matching call-site, test, and BE core review-guide updates. I also verified there are no remaining assume_mutable references in tracked source files and git diff --check is clean.

Critical checkpoint conclusions:

  • Goal/test: The rename matches the stated goal; existing COW ownership test was updated to the new API name.
  • Scope: The change is small and focused; no behavioral change beyond diagnostics/name.
  • Concurrency/lifecycle/config/compatibility: No new concurrency, lifecycle, configuration, storage format, or protocol compatibility concerns introduced.
  • Parallel paths: Call sites across BE source and tests appear consistently renamed; no old API references remain in source.
  • Error handling/data correctness/memory: The ownership assertion behavior is preserved, including throwing on shared ownership; no new memory ownership or data visibility changes.
  • Tests: No new tests are needed for this mechanical rename; the existing COW exclusivity test remains present under the new API.
  • Observability/performance: No runtime observability or performance impact expected.

User focus: No additional user-provided review focus was specified.

@github-actions github-actions Bot added the approved Indicates a PR has been approved by one committer. label May 23, 2026
@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.

@hello-stephen
Copy link
Copy Markdown
Contributor

BE Regression && UT Coverage Report

Increment line coverage 87.83% (101/115) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 73.69% (27987/37977)
Line Coverage 57.66% (304151/527472)
Region Coverage 54.78% (254228/464120)
Branch Coverage 56.27% (109787/195097)

@zclllyybb zclllyybb merged commit a5b43fb into apache:master May 23, 2026
31 of 32 checks passed
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. reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants