Skip to content

Conversation

@seawinde
Copy link
Contributor

@seawinde seawinde commented Dec 9, 2025

What problem does this PR solve?

mtmvCache is globally reused, and each query shares the same instance of mtmvCache. When generating the cache, it should not include any attributes that are specific to an individual query.

current code has no problem, just add some ut

Issue Number: close #xxx

Related PR: #58031

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

@hello-stephen
Copy link
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?

@seawinde
Copy link
Contributor Author

seawinde commented Dec 9, 2025

run buildall

@doris-robot
Copy link

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

query5	4994	638	469	469
query6	328	230	233	230
query7	4251	468	277	277
query8	300	254	246	246
query9	8785	2613	2651	2613
query10	525	358	325	325
query11	15177	15161	15763	15161
query12	204	125	126	125
query13	1279	565	429	429
query14	6577	3440	3181	3181
query14_1	3059	3040	3068	3040
query15	221	209	184	184
query16	969	550	519	519
query17	1827	727	620	620
query18	2765	461	344	344
query19	255	236	216	216
query20	125	125	113	113
query21	217	135	124	124
query22	4486	4678	4411	4411
query23	17409	16717	16217	16217
query23_1	16486	16204	16176	16176
query24	7318	1640	1218	1218
query24_1	1235	1216	1222	1216
query25	543	458	398	398
query26	1245	256	160	160
query27	2778	460	309	309
query28	4393	2165	2147	2147
query29	790	528	424	424
query30	305	241	204	204
query31	819	702	622	622
query32	74	65	61	61
query33	531	335	281	281
query34	893	894	544	544
query35	788	802	736	736
query36	853	916	826	826
query37	130	90	79	79
query38	3920	3810	3783	3783
query39	746	726	692	692
query39_1	709	719	686	686
query40	227	138	119	119
query41	60	57	56	56
query42	102	100	96	96
query43	413	425	417	417
query44	1329	771	749	749
query45	198	185	184	184
query46	884	979	603	603
query47	1625	1701	1609	1609
query48	338	330	242	242
query49	609	431	352	352
query50	681	286	227	227
query51	3903	3903	3863	3863
query52	113	113	100	100
query53	326	356	300	300
query54	313	282	275	275
query55	81	76	73	73
query56	317	310	315	310
query57	1157	1130	1114	1114
query58	279	268	265	265
query59	2428	2532	2445	2445
query60	329	331	305	305
query61	193	182	188	182
query62	731	675	625	625
query63	332	299	299	299
query64	5016	1371	996	996
query65	4066	3982	3965	3965
query66	1407	437	325	325
query67	15291	15070	14834	14834
query68	8465	1016	741	741
query69	492	364	307	307
query70	1038	1026	950	950
query71	396	309	304	304
query72	6024	5022	5083	5022
query73	713	633	305	305
query74	8991	8900	8624	8624
query75	3985	3516	3191	3191
query76	4363	1148	745	745
query77	850	408	304	304
query78	9539	9696	8759	8759
query79	1597	892	624	624
query80	687	644	553	553
query81	516	276	239	239
query82	502	134	106	106
query83	268	255	245	245
query84	268	122	93	93
query85	981	506	463	463
query86	399	313	281	281
query87	4112	4050	4067	4050
query88	4297	2253	2290	2253
query89	465	418	385	385
query90	2156	163	146	146
query91	169	164	149	149
query92	85	63	68	63
query93	1670	927	572	572
query94	452	304	259	259
query95	576	334	359	334
query96	584	471	210	210
query97	2589	2662	2552	2552
query98	212	199	189	189
query99	1282	1289	1191	1191
Total cold run time: 269818 ms
Total hot run time: 183170 ms

@doris-robot
Copy link

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

query1	0.05	0.05	0.05
query2	0.10	0.04	0.04
query3	0.26	0.09	0.08
query4	1.60	0.11	0.11
query5	0.28	0.26	0.28
query6	1.16	0.63	0.62
query7	0.04	0.03	0.03
query8	0.05	0.04	0.04
query9	0.58	0.51	0.50
query10	0.56	0.55	0.54
query11	0.15	0.10	0.10
query12	0.14	0.11	0.12
query13	0.62	0.60	0.61
query14	0.99	0.99	0.99
query15	0.82	0.81	0.80
query16	0.43	0.40	0.38
query17	1.00	1.07	1.04
query18	0.23	0.21	0.22
query19	2.01	1.75	1.79
query20	0.02	0.01	0.01
query21	15.46	0.29	0.14
query22	4.93	0.06	0.04
query23	16.16	0.29	0.10
query24	1.00	0.66	0.30
query25	0.08	0.08	0.06
query26	0.15	0.14	0.13
query27	0.06	0.07	0.06
query28	3.07	1.25	1.02
query29	12.58	4.00	3.14
query30	0.28	0.14	0.12
query31	2.81	0.64	0.39
query32	3.23	0.56	0.47
query33	3.11	3.13	3.11
query34	16.79	5.15	4.54
query35	4.58	4.51	4.57
query36	0.67	0.50	0.48
query37	0.11	0.06	0.07
query38	0.07	0.04	0.04
query39	0.04	0.04	0.03
query40	0.17	0.15	0.14
query41	0.09	0.03	0.03
query42	0.04	0.03	0.03
query43	0.04	0.04	0.04
Total cold run time: 96.61 s
Total hot run time: 27.24 s

@hello-stephen
Copy link
Contributor

FE UT Coverage Report

Increment line coverage 85.71% (6/7) 🎉
Increment coverage report
Complete coverage report

@seawinde seawinde force-pushed the fix_get_or_generate_cache_set_wrong branch from 00f31ae to cfd72a3 Compare December 9, 2025 13:39
@seawinde
Copy link
Contributor Author

seawinde commented Dec 9, 2025

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17689	5103	4928	4928
q2	2026	350	239	239
q3	10176	1301	760	760
q4	10205	847	322	322
q5	7528	2151	1948	1948
q6	190	167	139	139
q7	1002	861	729	729
q8	9367	1421	1167	1167
q9	6980	5379	5279	5279
q10	6843	2389	1975	1975
q11	510	324	298	298
q12	677	722	570	570
q13	17794	3669	3083	3083
q14	298	290	281	281
q15	593	519	519	519
q16	932	903	861	861
q17	742	783	552	552
q18	7595	7157	7012	7012
q19	1148	950	610	610
q20	393	366	250	250
q21	4183	3920	3800	3800
q22	1009	986	957	957
Total cold run time: 107880 ms
Total hot run time: 36279 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4987	4932	4901	4901
q2	329	387	309	309
q3	2105	2690	2289	2289
q4	1322	1771	1301	1301
q5	4726	4756	4448	4448
q6	225	173	135	135
q7	2063	1996	1767	1767
q8	2696	2568	2516	2516
q9	7543	7431	7468	7431
q10	3018	3327	2973	2973
q11	623	518	494	494
q12	672	756	617	617
q13	3627	3967	3437	3437
q14	293	304	279	279
q15	545	495	504	495
q16	898	933	906	906
q17	1196	1439	1398	1398
q18	7973	7495	7599	7495
q19	906	880	906	880
q20	2029	2068	1907	1907
q21	4660	4334	4161	4161
q22	1090	1047	970	970
Total cold run time: 53526 ms
Total hot run time: 51109 ms

@doris-robot
Copy link

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

query5	4941	659	504	504
query6	337	234	231	231
query7	4226	498	277	277
query8	300	260	255	255
query9	8790	2614	2645	2614
query10	538	370	339	339
query11	15410	14791	14943	14791
query12	192	117	115	115
query13	1253	511	381	381
query14	6012	3357	3085	3085
query14_1	3003	2984	3001	2984
query15	213	199	183	183
query16	873	476	489	476
query17	1163	731	615	615
query18	2499	460	358	358
query19	242	237	220	220
query20	129	116	111	111
query21	223	136	118	118
query22	3918	3972	3861	3861
query23	16405	16133	15811	15811
query23_1	16036	15882	16142	15882
query24	7439	1677	1262	1262
query24_1	1254	1260	1279	1260
query25	586	510	491	491
query26	1250	270	165	165
query27	2778	485	311	311
query28	4459	2138	2131	2131
query29	787	546	444	444
query30	314	245	220	220
query31	821	723	617	617
query32	77	69	73	69
query33	542	336	288	288
query34	909	948	549	549
query35	780	808	736	736
query36	894	914	824	824
query37	141	92	80	80
query38	3804	3816	3761	3761
query39	768	740	715	715
query39_1	704	705	708	705
query40	229	136	123	123
query41	67	68	64	64
query42	108	109	109	109
query43	435	440	411	411
query44	1390	761	769	761
query45	200	190	185	185
query46	910	988	640	640
query47	1658	1695	1630	1630
query48	318	327	252	252
query49	645	475	355	355
query50	679	304	221	221
query51	3861	3906	3942	3906
query52	111	113	104	104
query53	332	358	309	309
query54	305	265	251	251
query55	84	78	72	72
query56	325	329	315	315
query57	1114	1140	1077	1077
query58	282	258	256	256
query59	2222	2331	2368	2331
query60	329	310	302	302
query61	165	161	158	158
query62	710	674	631	631
query63	328	302	306	302
query64	5017	1299	1004	1004
query65	4000	3944	3934	3934
query66	1478	440	329	329
query67	15377	14877	14657	14657
query68	4592	1047	747	747
query69	496	365	321	321
query70	1096	1017	996	996
query71	377	319	295	295
query72	6070	5165	5334	5165
query73	670	639	319	319
query74	8643	8808	8572	8572
query75	3567	3524	3174	3174
query76	3869	1154	767	767
query77	532	406	293	293
query78	9462	9649	8862	8862
query79	1686	924	628	628
query80	722	679	559	559
query81	519	277	238	238
query82	213	132	104	104
query83	266	267	244	244
query84	259	117	100	100
query85	903	501	473	473
query86	383	311	285	285
query87	4076	4002	3961	3961
query88	3292	2302	2263	2263
query89	458	432	403	403
query90	2096	166	161	161
query91	169	177	157	157
query92	79	73	64	64
query93	1329	918	587	587
query94	483	318	279	279
query95	581	390	319	319
query96	612	478	219	219
query97	2590	2596	2580	2580
query98	222	200	191	191
query99	1290	1305	1212	1212
Total cold run time: 259085 ms
Total hot run time: 181826 ms

@doris-robot
Copy link

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

query1	0.05	0.05	0.05
query2	0.09	0.05	0.05
query3	0.25	0.08	0.09
query4	1.61	0.11	0.11
query5	0.27	0.25	0.27
query6	1.18	0.64	0.64
query7	0.04	0.03	0.03
query8	0.05	0.04	0.04
query9	0.57	0.51	0.50
query10	0.55	0.56	0.54
query11	0.16	0.11	0.11
query12	0.15	0.12	0.11
query13	0.61	0.60	0.60
query14	0.99	0.99	0.98
query15	0.82	0.80	0.82
query16	0.39	0.41	0.42
query17	1.06	1.02	1.02
query18	0.23	0.22	0.22
query19	1.89	1.80	1.76
query20	0.02	0.01	0.01
query21	15.47	0.30	0.14
query22	4.90	0.05	0.05
query23	15.98	0.28	0.10
query24	1.26	0.66	0.22
query25	0.09	0.07	0.07
query26	0.13	0.14	0.14
query27	0.07	0.04	0.06
query28	4.04	1.22	1.03
query29	12.61	4.13	3.18
query30	0.29	0.14	0.14
query31	2.82	0.62	0.41
query32	3.23	0.56	0.47
query33	3.10	3.17	3.08
query34	16.86	5.23	4.52
query35	4.53	4.53	4.56
query36	0.68	0.51	0.50
query37	0.12	0.07	0.06
query38	0.07	0.04	0.04
query39	0.05	0.03	0.03
query40	0.18	0.14	0.13
query41	0.08	0.03	0.03
query42	0.04	0.02	0.02
query43	0.05	0.04	0.03
Total cold run time: 97.63 s
Total hot run time: 27.27 s

@hello-stephen
Copy link
Contributor

FE UT Coverage Report

Increment line coverage 85.71% (6/7) 🎉
Increment coverage report
Complete coverage report

@hello-stephen
Copy link
Contributor

FE Regression Coverage Report

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

1 similar comment
@hello-stephen
Copy link
Contributor

FE Regression Coverage Report

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

@seawinde
Copy link
Contributor Author

seawinde commented Dec 9, 2025

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17720	5083	4932	4932
q2	2081	351	250	250
q3	10123	1303	736	736
q4	10206	811	323	323
q5	7562	2163	1927	1927
q6	184	170	137	137
q7	1024	854	728	728
q8	9370	1399	1118	1118
q9	6962	5335	5322	5322
q10	6822	2381	1999	1999
q11	530	325	288	288
q12	648	740	591	591
q13	17775	3684	3034	3034
q14	284	296	275	275
q15	585	512	517	512
q16	933	914	863	863
q17	737	886	451	451
q18	7506	7175	7077	7077
q19	1136	946	619	619
q20	393	355	257	257
q21	4254	3836	3879	3836
q22	1050	995	978	978
Total cold run time: 107885 ms
Total hot run time: 36253 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4938	4916	4880	4880
q2	335	382	311	311
q3	2118	2705	2295	2295
q4	1311	1751	1290	1290
q5	4761	4777	4491	4491
q6	221	168	132	132
q7	2018	1922	1854	1854
q8	2631	2616	2546	2546
q9	7568	7530	7437	7437
q10	2989	3385	2904	2904
q11	584	514	477	477
q12	696	753	618	618
q13	3600	3812	3372	3372
q14	298	297	294	294
q15	552	505	510	505
q16	900	915	893	893
q17	1193	1443	1445	1443
q18	8021	7820	7632	7632
q19	822	775	812	775
q20	1901	1967	1800	1800
q21	4541	4261	4211	4211
q22	1065	1023	991	991
Total cold run time: 53063 ms
Total hot run time: 51151 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 181869 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 5b7946f66649a4451d184b29d3344871f19af2b7, data reload: false

query5	5143	627	481	481
query6	329	221	224	221
query7	4227	466	286	286
query8	313	244	236	236
query9	8758	2645	2639	2639
query10	557	367	333	333
query11	15388	15077	14557	14557
query12	192	146	119	119
query13	1246	495	389	389
query14	6674	3301	3086	3086
query14_1	2893	2908	2961	2908
query15	211	199	183	183
query16	878	484	466	466
query17	1128	699	577	577
query18	2751	434	351	351
query19	262	232	207	207
query20	123	120	110	110
query21	227	138	122	122
query22	3934	4030	3852	3852
query23	16373	16349	15956	15956
query23_1	16037	16078	16281	16078
query24	7264	1630	1234	1234
query24_1	1238	1250	1255	1250
query25	542	455	410	410
query26	1250	274	172	172
query27	2746	466	309	309
query28	4514	2167	2157	2157
query29	806	542	481	481
query30	308	233	214	214
query31	808	709	626	626
query32	75	70	70	70
query33	540	345	281	281
query34	892	911	545	545
query35	779	814	737	737
query36	872	907	833	833
query37	133	95	81	81
query38	3823	3878	3786	3786
query39	738	727	747	727
query39_1	716	691	707	691
query40	224	140	119	119
query41	66	62	64	62
query42	107	105	101	101
query43	425	432	393	393
query44	1319	770	766	766
query45	192	189	190	189
query46	878	972	625	625
query47	1678	1712	1604	1604
query48	321	338	248	248
query49	631	419	388	388
query50	654	295	220	220
query51	3847	3944	3810	3810
query52	107	111	99	99
query53	324	354	299	299
query54	289	269	253	253
query55	76	76	71	71
query56	295	319	303	303
query57	1151	1157	1087	1087
query58	277	265	258	258
query59	2292	2379	2283	2283
query60	308	342	289	289
query61	155	156	157	156
query62	680	675	624	624
query63	329	299	302	299
query64	4908	1289	1061	1061
query65	4032	3972	3974	3972
query66	1393	449	367	367
query67	15011	15256	14948	14948
query68	2745	1069	805	805
query69	448	350	321	321
query70	1060	1033	951	951
query71	341	314	290	290
query72	6380	5141	5038	5038
query73	477	548	308	308
query74	8946	8814	8542	8542
query75	3495	3553	3202	3202
query76	2927	1165	768	768
query77	412	395	326	326
query78	9598	9734	8910	8910
query79	1116	884	629	629
query80	1345	649	557	557
query81	553	264	247	247
query82	1031	129	113	113
query83	382	268	239	239
query84	258	123	96	96
query85	1051	508	452	452
query86	405	300	302	300
query87	4147	4053	3970	3970
query88	3239	2295	2294	2294
query89	466	418	388	388
query90	1915	157	162	157
query91	175	161	142	142
query92	68	73	67	67
query93	1075	941	583	583
query94	539	303	277	277
query95	568	318	310	310
query96	592	466	207	207
query97	2648	2667	2589	2589
query98	205	198	192	192
query99	1298	1299	1204	1204
Total cold run time: 257376 ms
Total hot run time: 181869 ms

@doris-robot
Copy link

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

query1	0.06	0.05	0.05
query2	0.10	0.05	0.04
query3	0.26	0.09	0.09
query4	1.61	0.11	0.11
query5	0.28	0.25	0.27
query6	1.15	0.64	0.63
query7	0.03	0.03	0.03
query8	0.06	0.04	0.05
query9	0.56	0.51	0.49
query10	0.56	0.56	0.54
query11	0.17	0.11	0.12
query12	0.15	0.12	0.12
query13	0.62	0.61	0.60
query14	1.00	0.98	0.98
query15	0.81	0.78	0.81
query16	0.39	0.41	0.39
query17	1.08	1.00	1.04
query18	0.23	0.21	0.21
query19	1.94	1.88	1.89
query20	0.02	0.01	0.01
query21	15.44	0.30	0.14
query22	4.88	0.05	0.04
query23	16.06	0.27	0.11
query24	0.93	0.57	0.58
query25	0.11	0.09	0.06
query26	0.14	0.14	0.14
query27	0.08	0.04	0.06
query28	4.46	1.24	1.04
query29	12.62	4.06	3.35
query30	0.27	0.14	0.11
query31	2.83	0.63	0.41
query32	3.23	0.55	0.46
query33	3.17	3.03	3.09
query34	16.84	5.24	4.55
query35	4.52	4.54	4.56
query36	0.67	0.50	0.48
query37	0.12	0.07	0.07
query38	0.07	0.05	0.03
query39	0.04	0.03	0.03
query40	0.18	0.14	0.14
query41	0.09	0.03	0.03
query42	0.04	0.03	0.02
query43	0.05	0.04	0.03
Total cold run time: 97.92 s
Total hot run time: 27.77 s

@seawinde seawinde changed the title [fix](mtmv) Fix mtmv cache without guard set wrongly when query [test](mtmv) Add ut test for session variable guard when generate mtmv cache Dec 11, 2025
@github-actions
Copy link
Contributor

PR approved by anyone and no changes requested.

@seawinde seawinde force-pushed the fix_get_or_generate_cache_set_wrong branch from 5b7946f to d83f23c Compare December 29, 2025 07:02
@seawinde
Copy link
Contributor Author

run buildall

@doris-robot
Copy link

Cloud UT Coverage Report

Increment line coverage 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 79.52% (1771/2227)
Line Coverage 64.82% (31306/48299)
Region Coverage 65.39% (15583/23831)
Branch Coverage 55.97% (8281/14796)

@hello-stephen
Copy link
Contributor

FE UT Coverage Report

Increment line coverage `` 🎉
Increment coverage report
Complete coverage report

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17596	4167	4037	4037
q2	2041	371	238	238
q3	10149	1316	750	750
q4	10233	842	333	333
q5	7540	2178	1908	1908
q6	197	176	140	140
q7	936	821	677	677
q8	9281	1453	1213	1213
q9	6827	5216	5165	5165
q10	6829	1830	1422	1422
q11	507	308	297	297
q12	696	761	588	588
q13	17780	3814	3142	3142
q14	293	308	277	277
q15	594	518	516	516
q16	698	675	641	641
q17	703	734	685	685
q18	7724	7596	8288	7596
q19	1104	997	663	663
q20	453	427	265	265
q21	4647	4320	3976	3976
q22	1127	1065	1031	1031
Total cold run time: 107955 ms
Total hot run time: 35560 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4296	4216	4328	4216
q2	333	432	325	325
q3	2283	2805	2758	2758
q4	1410	1867	1386	1386
q5	4461	4266	4307	4266
q6	217	161	127	127
q7	1988	1915	1776	1776
q8	2631	2421	2344	2344
q9	7187	7092	7092	7092
q10	2567	2777	2337	2337
q11	565	512	455	455
q12	749	761	605	605
q13	3625	4081	3159	3159
q14	274	290	260	260
q15	524	488	478	478
q16	615	671	604	604
q17	1120	1312	1304	1304
q18	7198	7203	7092	7092
q19	871	868	873	868
q20	1903	1991	1797	1797
q21	4557	4291	4129	4129
q22	1079	1055	1001	1001
Total cold run time: 50453 ms
Total hot run time: 48379 ms

@doris-robot
Copy link

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

query5	4996	598	446	446
query6	340	254	251	251
query7	4222	471	287	287
query8	350	268	240	240
query9	8783	2647	2632	2632
query10	556	356	314	314
query11	15248	14984	14889	14889
query12	183	115	109	109
query13	1262	509	367	367
query14	6660	3048	2760	2760
query14_1	2654	2616	2756	2616
query15	208	201	174	174
query16	999	477	451	451
query17	1051	675	568	568
query18	2700	460	340	340
query19	227	223	196	196
query20	120	116	113	113
query21	213	142	114	114
query22	3963	3934	4018	3934
query23	15996	15635	15357	15357
query23_1	15410	15565	15476	15476
query24	7616	1587	1216	1216
query24_1	1220	1215	1240	1215
query25	521	447	396	396
query26	1240	266	159	159
query27	2769	466	293	293
query28	4578	2233	2205	2205
query29	756	537	432	432
query30	311	241	211	211
query31	789	631	536	536
query32	77	73	68	68
query33	542	339	276	276
query34	936	914	549	549
query35	760	801	704	704
query36	875	875	785	785
query37	129	89	76	76
query38	2709	2648	2673	2648
query39	776	742	721	721
query39_1	716	687	732	687
query40	220	134	118	118
query41	71	62	64	62
query42	104	107	102	102
query43	462	442	449	442
query44	1395	762	755	755
query45	192	184	179	179
query46	887	1014	626	626
query47	1326	1456	1367	1367
query48	323	330	256	256
query49	610	419	334	334
query50	648	294	212	212
query51	3740	3787	3718	3718
query52	106	109	95	95
query53	301	329	283	283
query54	286	258	247	247
query55	79	77	79	77
query56	295	285	307	285
query57	999	1011	897	897
query58	274	261	262	261
query59	2067	2211	2218	2211
query60	338	326	311	311
query61	194	192	193	192
query62	398	370	336	336
query63	311	269	277	269
query64	4988	1425	1109	1109
query65	3772	3619	3692	3619
query66	1390	461	339	339
query67	15064	15565	14568	14568
query68	4699	1051	761	761
query69	513	364	323	323
query70	1080	875	968	875
query71	356	327	285	285
query72	6314	4913	5062	4913
query73	760	712	318	318
query74	8805	8767	8538	8538
query75	2912	2892	2512	2512
query76	3880	1068	680	680
query77	521	379	282	282
query78	9701	9927	9120	9120
query79	1478	966	599	599
query80	662	588	478	478
query81	503	263	232	232
query82	211	144	112	112
query83	264	254	232	232
query84	258	124	103	103
query85	907	520	476	476
query86	400	335	330	330
query87	2843	2839	2748	2748
query88	3258	2268	2241	2241
query89	374	350	336	336
query90	1991	151	147	147
query91	177	167	147	147
query92	76	69	67	67
query93	1180	916	567	567
query94	569	336	260	260
query95	567	326	304	304
query96	598	464	217	217
query97	2274	2351	2280	2280
query98	245	202	197	197
query99	592	577	519	519
Total cold run time: 252689 ms
Total hot run time: 174605 ms

@doris-robot
Copy link

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

query1	0.06	0.05	0.05
query2	0.09	0.05	0.05
query3	0.26	0.09	0.09
query4	1.61	0.12	0.11
query5	0.30	0.26	0.25
query6	1.14	0.67	0.65
query7	0.03	0.02	0.03
query8	0.05	0.04	0.04
query9	0.56	0.51	0.51
query10	0.55	0.55	0.54
query11	0.15	0.11	0.11
query12	0.16	0.12	0.12
query13	0.61	0.59	0.59
query14	0.99	0.97	0.97
query15	0.83	0.77	0.80
query16	0.43	0.39	0.41
query17	1.01	1.04	1.08
query18	0.22	0.21	0.22
query19	1.96	1.91	1.86
query20	0.01	0.02	0.01
query21	15.45	0.30	0.13
query22	4.70	0.05	0.05
query23	16.00	0.28	0.11
query24	1.43	0.65	0.59
query25	0.08	0.05	0.05
query26	0.14	0.13	0.13
query27	0.07	0.08	0.06
query28	4.69	1.08	0.88
query29	12.59	3.91	3.15
query30	0.28	0.14	0.12
query31	2.81	0.60	0.38
query32	3.23	0.54	0.46
query33	3.05	3.09	3.08
query34	16.73	5.14	4.43
query35	4.48	4.46	4.42
query36	0.64	0.50	0.48
query37	0.11	0.06	0.06
query38	0.07	0.04	0.03
query39	0.05	0.03	0.03
query40	0.16	0.15	0.14
query41	0.09	0.04	0.03
query42	0.04	0.02	0.02
query43	0.04	0.03	0.04
Total cold run time: 97.95 s
Total hot run time: 27.24 s

Copy link
Contributor

@yujun777 yujun777 left a comment

Choose a reason for hiding this comment

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

LGTM

@github-actions github-actions bot added the approved Indicates a PR has been approved by one committer. label Jan 7, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Jan 7, 2026

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

@morrySnow morrySnow merged commit f1b6e16 into apache:master Jan 7, 2026
27 of 28 checks passed
github-actions bot pushed a commit that referenced this pull request Jan 7, 2026
…mv cache (#58863)

mtmvCache is globally reused, and each query shares the same instance of
mtmvCache. When generating the cache, it should not include any
attributes that are specific to an individual query.
current code has no problem, just add some ut

Related PR: #58031
yiguolei pushed a commit that referenced this pull request Jan 8, 2026
…generate mtmv cache #58863 (#59635)

Cherry-picked from #58863

Co-authored-by: seawinde <wusi@selectdb.com>
zzzxl1993 pushed a commit to zzzxl1993/doris that referenced this pull request Jan 13, 2026
…mv cache (apache#58863)

mtmvCache is globally reused, and each query shares the same instance of
mtmvCache. When generating the cache, it should not include any
attributes that are specific to an individual query.
current code has no problem, just add some ut

Related PR: apache#58031
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.3-merged reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants