Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[improvement](mtmv) Optimize the materialized view hint info when explain #39998

Merged
merged 5 commits into from
Sep 10, 2024

Conversation

seawinde
Copy link
Contributor

@seawinde seawinde commented Aug 27, 2024

Proposed changes

Optimize the explain materialized view info, add double horizontal dividing line between MATERIALIZATIONS and
STATISTICS. Maybe think rewrite fail becauseplaned with unknown column statistics, actually is rewrite successfully.
Before:

| ========== MATERIALIZATIONS ==========                                                                                                                                                                                                                |
|                                                                                                                                                                                                                                                       |
| MaterializedView                                                                                                                                                                                                                                      |
| MaterializedViewRewriteSuccessAndChose:                                                                                                                                                                                                               |
|   internal#regression_test_nereids_rules_p0_mv_agg_with_roll_up#mv13_1 chose,                                                                                                                                                                         |
|                                                                                                                                                                                                                                                       |
| MaterializedViewRewriteSuccessButNotChose:                                                                                                                                                                                                            |
|   not chose: none,                                                                                                                                                                                                                                    |
|                                                                                                                                                                                                                                                       |
| MaterializedViewRewriteFail:                                                                                                                                                                                                                          |
|                                                                                                                                                                                                                                                       |
| Statistics                                                                                                                                                                                                                                            |
|  planed with unknown column statistics     

After:

| ========== MATERIALIZATIONS ==========                                                                                                                                                                                                                |
|                                                                                                                                                                                                                                                       |
| MaterializedView                                                                                                                                                                                                                                      |
| MaterializedViewRewriteSuccessAndChose:                                                                                                                                                                                                               |
|   internal.regression_test_nereids_rules_p0_mv_agg_with_roll_up.mv13_1 chose,                                                                                                                                                                         |
|                                                                                                                                                                                                                                                       |
| MaterializedViewRewriteSuccessButNotChose:                                                                                                                                                                                                            |
|   not chose: none,                                                                                                                                                                                                                                    |
|                                                                                                                                                                                                                                                       |
| MaterializedViewRewriteFail:                                                                                                                                                                                                                          |
|                                                                                                                                                                                                                                                       |
|                                                                                                                                                                                                                                                       |
| ========== STATISTICS ==========                                                                                                                                                                                                                      |
| planed with unknown column statistics  

@doris-robot
Copy link

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR

Since 2024-03-18, the Document has been moved to doris-website.
See Doris Document.

morrySnow
morrySnow previously approved these changes Aug 28, 2024
@github-actions github-actions bot added the approved Indicates a PR has been approved by one committer. label Aug 28, 2024
Copy link
Contributor

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

Copy link
Contributor

PR approved by anyone and no changes requested.

@seawinde
Copy link
Contributor Author

run buildall

@github-actions github-actions bot removed the approved Indicates a PR has been approved by one committer. label Aug 28, 2024
@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	18214	4614	4414	4414
q2	2502	188	174	174
q3	12009	1142	1178	1142
q4	10488	812	742	742
q5	8074	2980	2849	2849
q6	231	140	143	140
q7	1000	630	607	607
q8	9323	2106	2096	2096
q9	7279	6571	6501	6501
q10	7016	2193	2212	2193
q11	449	246	257	246
q12	398	230	223	223
q13	18986	3020	3043	3020
q14	281	238	242	238
q15	518	487	479	479
q16	588	518	520	518
q17	976	702	670	670
q18	7533	6751	6924	6751
q19	1391	1007	1199	1007
q20	690	343	341	341
q21	3996	3023	3131	3023
q22	1106	1010	1028	1010
Total cold run time: 113048 ms
Total hot run time: 38384 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4398	4311	4318	4311
q2	392	294	285	285
q3	2920	2653	2646	2646
q4	1935	1669	1637	1637
q5	5389	5408	5386	5386
q6	222	130	134	130
q7	2075	1740	1706	1706
q8	3188	3371	3371	3371
q9	8413	8457	8476	8457
q10	3445	3160	3199	3160
q11	603	517	495	495
q12	797	579	608	579
q13	13035	2989	3041	2989
q14	300	277	289	277
q15	537	481	471	471
q16	613	568	567	567
q17	1790	1504	1467	1467
q18	7763	7439	7437	7437
q19	1672	1647	1505	1505
q20	2029	1809	1829	1809
q21	5273	5159	5209	5159
q22	1112	1029	1041	1029
Total cold run time: 67901 ms
Total hot run time: 54873 ms

@doris-robot
Copy link

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

query1	913	371	360	360
query2	6467	1980	1993	1980
query3	6644	211	225	211
query4	28963	23253	23284	23253
query5	4162	509	497	497
query6	258	161	192	161
query7	4589	302	296	296
query8	262	228	210	210
query9	8513	2511	2487	2487
query10	450	274	282	274
query11	17641	14932	14907	14907
query12	157	103	115	103
query13	1642	413	398	398
query14	9752	7272	7029	7029
query15	284	167	174	167
query16	8047	466	473	466
query17	1569	557	535	535
query18	2128	291	290	290
query19	247	144	147	144
query20	114	110	109	109
query21	209	106	105	105
query22	4590	4144	4265	4144
query23	34116	33298	33193	33193
query24	11092	2917	2835	2835
query25	623	378	377	377
query26	1114	156	159	156
query27	2382	307	281	281
query28	7423	2138	2103	2103
query29	803	416	405	405
query30	317	179	157	157
query31	979	763	803	763
query32	103	56	60	56
query33	761	288	291	288
query34	972	480	506	480
query35	832	731	710	710
query36	1097	948	922	922
query37	158	98	95	95
query38	4038	3901	3834	3834
query39	1454	1398	1387	1387
query40	203	120	114	114
query41	47	47	50	47
query42	115	100	99	99
query43	510	475	487	475
query44	1232	768	748	748
query45	203	172	174	172
query46	1104	752	765	752
query47	1896	1819	1830	1819
query48	382	304	293	293
query49	1093	446	444	444
query50	815	414	425	414
query51	7201	7182	7024	7024
query52	105	91	93	91
query53	270	190	214	190
query54	857	465	466	465
query55	79	76	77	76
query56	268	259	262	259
query57	1198	1084	1078	1078
query58	244	250	220	220
query59	2994	2839	2773	2773
query60	291	274	271	271
query61	104	103	127	103
query62	846	663	680	663
query63	218	187	185	185
query64	4128	674	677	674
query65	3215	3135	3119	3119
query66	1418	334	340	334
query67	15460	15446	15243	15243
query68	3568	581	574	574
query69	390	280	279	279
query70	1139	1156	1111	1111
query71	334	279	277	277
query72	6385	4101	4059	4059
query73	750	334	335	334
query74	9094	8737	8809	8737
query75	3394	2711	2739	2711
query76	1927	1016	926	926
query77	502	332	324	324
query78	10573	10380	9219	9219
query79	1055	551	538	538
query80	706	508	503	503
query81	557	240	236	236
query82	249	153	149	149
query83	245	152	155	152
query84	231	81	77	77
query85	793	297	316	297
query86	322	281	294	281
query87	4381	4255	4287	4255
query88	3254	2391	2372	2372
query89	383	292	282	282
query90	2041	202	202	202
query91	140	114	122	114
query92	68	56	55	55
query93	1053	552	544	544
query94	855	288	290	288
query95	379	283	273	273
query96	607	354	278	278
query97	3197	3059	3083	3059
query98	223	212	206	206
query99	1478	1267	1305	1267
Total cold run time: 282634 ms
Total hot run time: 188292 ms

@doris-robot
Copy link

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

query1	0.04	0.04	0.04
query2	0.08	0.04	0.04
query3	0.22	0.05	0.06
query4	1.69	0.08	0.08
query5	0.52	0.49	0.51
query6	1.13	0.74	0.73
query7	0.02	0.02	0.01
query8	0.05	0.04	0.04
query9	0.55	0.48	0.49
query10	0.55	0.54	0.54
query11	0.16	0.12	0.11
query12	0.14	0.12	0.12
query13	0.61	0.59	0.58
query14	2.08	2.11	2.12
query15	0.86	0.82	0.82
query16	0.37	0.37	0.36
query17	1.05	1.05	1.06
query18	0.21	0.20	0.21
query19	1.94	1.83	1.83
query20	0.00	0.01	0.01
query21	15.43	0.68	0.66
query22	3.37	7.01	2.56
query23	18.27	1.37	1.22
query24	2.18	0.24	0.22
query25	0.16	0.08	0.10
query26	0.27	0.18	0.17
query27	0.08	0.08	0.07
query28	13.18	1.00	0.99
query29	12.63	3.28	3.32
query30	0.24	0.06	0.06
query31	2.88	0.40	0.38
query32	3.27	0.46	0.46
query33	2.94	2.99	3.03
query34	17.00	4.35	4.37
query35	4.43	4.42	4.40
query36	0.67	0.48	0.49
query37	0.19	0.16	0.16
query38	0.16	0.15	0.17
query39	0.05	0.03	0.03
query40	0.17	0.13	0.12
query41	0.09	0.05	0.05
query42	0.06	0.06	0.05
query43	0.05	0.04	0.04
Total cold run time: 110.04 s
Total hot run time: 32.66 s

morrySnow
morrySnow previously approved these changes Aug 28, 2024
@github-actions github-actions bot added the approved Indicates a PR has been approved by one committer. label Aug 28, 2024
Copy link
Contributor

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

@seawinde
Copy link
Contributor Author

run buildall

@github-actions github-actions bot removed the approved Indicates a PR has been approved by one committer. label Aug 29, 2024
@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17884	4435	4396	4396
q2	2540	182	172	172
q3	10906	1237	1112	1112
q4	10513	714	803	714
q5	7933	2890	2857	2857
q6	234	144	144	144
q7	962	621	618	618
q8	9434	2115	2047	2047
q9	6927	6549	6549	6549
q10	7015	2183	2238	2183
q11	439	257	249	249
q12	394	233	227	227
q13	17769	3051	3052	3051
q14	271	234	246	234
q15	538	482	490	482
q16	566	512	502	502
q17	984	664	725	664
q18	7242	6781	6844	6781
q19	1393	1111	1006	1006
q20	707	339	330	330
q21	3897	3187	2952	2952
q22	1132	1053	1030	1030
Total cold run time: 109680 ms
Total hot run time: 38300 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4339	4216	4278	4216
q2	372	284	276	276
q3	2853	2635	2660	2635
q4	1935	1613	1599	1599
q5	5390	5392	5453	5392
q6	222	136	133	133
q7	2099	1710	1754	1710
q8	3216	3354	3330	3330
q9	8407	8452	8464	8452
q10	3436	3184	3221	3184
q11	607	491	516	491
q12	779	632	599	599
q13	9719	3029	3052	3029
q14	318	275	269	269
q15	527	489	485	485
q16	642	572	566	566
q17	1776	1520	1470	1470
q18	7739	7461	7309	7309
q19	1654	1586	1564	1564
q20	2050	1830	1839	1830
q21	5492	5235	5286	5235
q22	1110	1072	1016	1016
Total cold run time: 64682 ms
Total hot run time: 54790 ms

@doris-robot
Copy link

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

query1	916	375	369	369
query2	6470	1943	1874	1874
query3	6648	216	218	216
query4	34522	23166	23353	23166
query5	4177	525	490	490
query6	274	168	178	168
query7	4590	304	289	289
query8	255	198	205	198
query9	8714	2485	2488	2485
query10	445	280	276	276
query11	18096	15151	15132	15132
query12	158	101	99	99
query13	1620	372	374	372
query14	9171	6288	7130	6288
query15	246	169	183	169
query16	8067	506	479	479
query17	1589	599	551	551
query18	2056	287	284	284
query19	256	145	140	140
query20	116	115	111	111
query21	205	104	103	103
query22	4294	4143	4196	4143
query23	33829	33391	33489	33391
query24	11357	2814	2830	2814
query25	623	382	377	377
query26	1212	158	155	155
query27	2896	282	279	279
query28	7512	2125	2109	2109
query29	818	437	431	431
query30	309	160	158	158
query31	973	785	776	776
query32	100	55	66	55
query33	759	289	285	285
query34	976	492	481	481
query35	870	751	719	719
query36	1103	944	921	921
query37	167	92	101	92
query38	4013	3948	3847	3847
query39	1459	1396	1433	1396
query40	196	119	117	117
query41	48	49	48	48
query42	117	95	95	95
query43	515	457	456	456
query44	1261	757	742	742
query45	199	172	168	168
query46	1099	752	775	752
query47	1872	1807	1835	1807
query48	384	299	297	297
query49	1095	447	432	432
query50	805	418	425	418
query51	7198	7065	7001	7001
query52	99	85	87	85
query53	258	184	181	181
query54	895	464	455	455
query55	77	75	79	75
query56	277	271	257	257
query57	1171	1072	1061	1061
query58	249	217	230	217
query59	2935	2691	2802	2691
query60	291	261	257	257
query61	101	96	103	96
query62	835	668	663	663
query63	221	186	180	180
query64	5218	674	653	653
query65	3214	3149	3133	3133
query66	1428	336	335	335
query67	15764	15332	15282	15282
query68	3146	607	575	575
query69	386	284	278	278
query70	1142	1106	1109	1106
query71	329	313	275	275
query72	6316	4071	2542	2542
query73	747	336	343	336
query74	9253	8851	8904	8851
query75	3367	2719	2668	2668
query76	1842	961	1012	961
query77	462	310	327	310
query78	9601	9015	9214	9015
query79	1044	552	542	542
query80	704	513	498	498
query81	460	234	232	232
query82	240	148	148	148
query83	169	151	149	149
query84	226	83	76	76
query85	674	288	318	288
query86	317	299	307	299
query87	4388	4277	4282	4277
query88	3257	2356	2356	2356
query89	383	295	292	292
query90	1802	202	201	201
query91	137	116	114	114
query92	63	59	53	53
query93	1018	555	552	552
query94	704	316	310	310
query95	367	281	279	279
query96	586	268	272	268
query97	3304	3102	3055	3055
query98	225	225	207	207
query99	1499	1303	1334	1303
Total cold run time: 287841 ms
Total hot run time: 186058 ms

@doris-robot
Copy link

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

query1	0.04	0.04	0.04
query2	0.08	0.04	0.04
query3	0.23	0.05	0.05
query4	1.68	0.10	0.09
query5	0.51	0.50	0.49
query6	1.13	0.72	0.72
query7	0.02	0.02	0.01
query8	0.05	0.05	0.04
query9	0.55	0.49	0.48
query10	0.54	0.55	0.55
query11	0.15	0.11	0.11
query12	0.15	0.12	0.12
query13	0.63	0.59	0.59
query14	2.04	2.11	2.05
query15	0.84	0.81	0.82
query16	0.38	0.38	0.35
query17	1.04	1.05	1.05
query18	0.21	0.20	0.21
query19	1.88	1.83	1.87
query20	0.02	0.01	0.01
query21	15.39	0.68	0.66
query22	4.19	6.88	1.88
query23	18.25	1.41	1.29
query24	2.11	0.23	0.22
query25	0.14	0.08	0.08
query26	0.28	0.18	0.18
query27	0.07	0.08	0.08
query28	13.32	1.00	0.99
query29	12.63	3.38	3.30
query30	0.24	0.05	0.06
query31	2.87	0.39	0.41
query32	3.24	0.47	0.48
query33	2.97	2.99	2.99
query34	17.05	4.36	4.40
query35	4.47	4.48	4.43
query36	0.65	0.47	0.48
query37	0.18	0.15	0.16
query38	0.15	0.16	0.15
query39	0.05	0.04	0.04
query40	0.15	0.12	0.12
query41	0.10	0.04	0.04
query42	0.05	0.05	0.05
query43	0.05	0.04	0.04
Total cold run time: 110.77 s
Total hot run time: 32.06 s

@seawinde
Copy link
Contributor Author

seawinde commented Sep 4, 2024

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17605	4375	4323	4323
q2	2020	180	176	176
q3	11704	1016	1166	1016
q4	10517	676	765	676
q5	7760	2854	2828	2828
q6	230	142	139	139
q7	958	611	588	588
q8	9364	2058	2093	2058
q9	7190	6528	6541	6528
q10	6995	2269	2205	2205
q11	459	238	237	237
q12	394	218	221	218
q13	17754	3129	3121	3121
q14	284	242	231	231
q15	532	496	486	486
q16	610	533	528	528
q17	983	700	692	692
q18	7237	6784	6791	6784
q19	1394	1087	967	967
q20	688	337	335	335
q21	3948	2999	2868	2868
q22	1133	997	1009	997
Total cold run time: 109759 ms
Total hot run time: 38001 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4334	4303	4281	4281
q2	371	280	285	280
q3	2862	2643	2661	2643
q4	1918	1616	1628	1616
q5	5570	5718	5688	5688
q6	221	135	138	135
q7	2286	1792	1887	1792
q8	3318	3421	3444	3421
q9	8873	8852	8802	8802
q10	3560	3352	3365	3352
q11	613	521	515	515
q12	835	637	644	637
q13	14608	3230	3352	3230
q14	326	281	296	281
q15	540	505	511	505
q16	627	566	570	566
q17	1833	1542	1517	1517
q18	8185	7919	7869	7869
q19	1717	1447	1505	1447
q20	2220	1902	1905	1902
q21	5754	5402	5298	5298
q22	1144	1056	1094	1056
Total cold run time: 71715 ms
Total hot run time: 56833 ms

@doris-robot
Copy link

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

query1	1240	900	874	874
query2	6396	1934	1898	1898
query3	10599	3944	4025	3944
query4	59393	24399	23039	23039
query5	5486	518	506	506
query6	424	188	179	179
query7	5771	311	296	296
query8	288	202	201	201
query9	8744	2505	2489	2489
query10	473	278	264	264
query11	18122	15002	15205	15002
query12	164	110	110	110
query13	1562	392	392	392
query14	10161	7372	7309	7309
query15	233	180	193	180
query16	7607	421	470	421
query17	1251	576	583	576
query18	2069	292	286	286
query19	309	145	149	145
query20	118	109	109	109
query21	208	106	103	103
query22	4588	4490	4437	4437
query23	34125	34024	33539	33539
query24	6003	2840	2818	2818
query25	521	388	372	372
query26	694	155	156	155
query27	1788	284	274	274
query28	3653	2058	2037	2037
query29	685	407	409	407
query30	239	151	156	151
query31	938	744	795	744
query32	83	48	55	48
query33	496	282	282	282
query34	853	477	475	475
query35	837	732	707	707
query36	1039	928	952	928
query37	154	91	87	87
query38	3999	3893	3900	3893
query39	1462	1400	1399	1399
query40	194	120	117	117
query41	48	49	47	47
query42	118	92	94	92
query43	497	479	467	467
query44	1103	740	744	740
query45	194	166	165	165
query46	1092	732	737	732
query47	1898	1799	1819	1799
query48	376	304	309	304
query49	763	436	448	436
query50	821	405	421	405
query51	6984	6895	6822	6822
query52	100	85	91	85
query53	254	179	179	179
query54	586	459	463	459
query55	85	81	74	74
query56	286	263	271	263
query57	1193	1079	1055	1055
query58	243	236	245	236
query59	2986	2842	2878	2842
query60	304	281	285	281
query61	122	118	117	117
query62	744	647	654	647
query63	224	195	185	185
query64	2932	781	748	748
query65	3234	3136	3149	3136
query66	638	348	347	347
query67	15431	15207	15124	15124
query68	3203	581	583	581
query69	402	285	288	285
query70	1144	1141	1114	1114
query71	348	290	277	277
query72	6503	4152	4219	4152
query73	738	322	324	322
query74	9222	8813	8864	8813
query75	3418	2701	2646	2646
query76	1524	1013	956	956
query77	521	323	313	313
query78	11378	11018	10602	10602
query79	1250	537	530	530
query80	967	528	507	507
query81	576	233	234	233
query82	285	145	147	145
query83	280	147	154	147
query84	269	78	77	77
query85	736	275	280	275
query86	423	290	269	269
query87	4536	4399	4221	4221
query88	3114	2335	2337	2335
query89	381	278	279	278
query90	2000	190	191	190
query91	127	104	100	100
query92	61	50	52	50
query93	1072	535	536	535
query94	789	294	297	294
query95	346	284	251	251
query96	590	261	269	261
query97	3258	3147	3090	3090
query98	219	203	197	197
query99	1558	1301	1246	1246
Total cold run time: 307463 ms
Total hot run time: 194272 ms

@doris-robot
Copy link

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

query1	0.04	0.04	0.04
query2	0.09	0.05	0.04
query3	0.22	0.04	0.05
query4	1.68	0.07	0.07
query5	0.51	0.50	0.49
query6	1.14	0.73	0.73
query7	0.02	0.02	0.01
query8	0.05	0.04	0.04
query9	0.56	0.49	0.47
query10	0.54	0.53	0.53
query11	0.16	0.12	0.12
query12	0.15	0.12	0.12
query13	0.60	0.58	0.59
query14	2.07	2.05	2.04
query15	0.91	0.86	0.81
query16	0.37	0.37	0.37
query17	1.04	1.00	1.06
query18	0.20	0.20	0.20
query19	1.89	1.79	1.83
query20	0.01	0.01	0.01
query21	15.42	0.68	0.68
query22	4.35	7.28	2.11
query23	18.31	1.35	1.28
query24	2.22	0.21	0.22
query25	0.16	0.08	0.08
query26	0.27	0.17	0.18
query27	0.07	0.07	0.08
query28	13.21	1.02	1.00
query29	12.59	3.40	3.40
query30	0.24	0.06	0.06
query31	2.89	0.41	0.39
query32	3.23	0.48	0.49
query33	2.98	3.01	3.05
query34	16.89	4.36	4.41
query35	4.43	4.43	4.46
query36	0.65	0.47	0.48
query37	0.19	0.16	0.16
query38	0.17	0.16	0.15
query39	0.05	0.04	0.04
query40	0.16	0.13	0.13
query41	0.10	0.05	0.05
query42	0.06	0.06	0.05
query43	0.04	0.04	0.04
Total cold run time: 110.93 s
Total hot run time: 32.32 s

@github-actions github-actions bot added the approved Indicates a PR has been approved by one committer. label Sep 6, 2024
Copy link
Contributor

github-actions bot commented Sep 6, 2024

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

Copy link
Contributor

@zddr zddr left a comment

Choose a reason for hiding this comment

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

LGTM

@morrySnow morrySnow merged commit 948fb2a into apache:master Sep 10, 2024
25 of 28 checks passed
seawinde added a commit to seawinde/doris that referenced this pull request Sep 14, 2024
…plain (apache#39998)

Optimize the explain materialized view info, add double horizontal
dividing line between `MATERIALIZATIONS` and`STATISTICS`.
Maybe think rewrite fail because` planed with unknown column statistics `,
actually is rewrite successfully.

Before:

| ========== MATERIALIZATIONS ==========                                                                                                                                                                                                                |
|                                                                                                                                                                                                                                                       |
| MaterializedView                                                                                                                                                                                                                                      |
| MaterializedViewRewriteSuccessAndChose:                                                                                                                                                                                                               |
|   internal#regression_test_nereids_rules_p0_mv_agg_with_roll_up#mv13_1 chose,                                                                                                                                                                         |
|                                                                                                                                                                                                                                                       |
| MaterializedViewRewriteSuccessButNotChose:                                                                                                                                                                                                            |
|   not chose: none,                                                                                                                                                                                                                                    |
|                                                                                                                                                                                                                                                       |
| MaterializedViewRewriteFail:                                                                                                                                                                                                                          |
|                                                                                                                                                                                                                                                       |
| Statistics                                                                                                                                                                                                                                            |
|  planed with unknown column statistics

After:

| ========== MATERIALIZATIONS ==========                                                                                                                                                                                                                |
|                                                                                                                                                                                                                                                       |
| MaterializedView                                                                                                                                                                                                                                      |
| MaterializedViewRewriteSuccessAndChose:                                                                                                                                                                                                               |
|   internal.regression_test_nereids_rules_p0_mv_agg_with_roll_up.mv13_1 chose,                                                                                                                                                                         |
|                                                                                                                                                                                                                                                       |
| MaterializedViewRewriteSuccessButNotChose:                                                                                                                                                                                                            |
|   not chose: none,                                                                                                                                                                                                                                    |
|                                                                                                                                                                                                                                                       |
| MaterializedViewRewriteFail:                                                                                                                                                                                                                          |
|                                                                                                                                                                                                                                                       |
|                                                                                                                                                                                                                                                       |
| ========== STATISTICS ==========                                                                                                                                                                                                                      |
| planed with unknown column statistics
yiguolei pushed a commit that referenced this pull request Sep 15, 2024
## Proposed changes
pr: #40485
commitId: 18a374f

pr: #40332
commitId: cd2062a

pr: #39998
commitId: 948fb2a
dataroaring pushed a commit that referenced this pull request Oct 9, 2024
…plain (#39998)

Optimize the explain materialized view info, add double horizontal
dividing line between `MATERIALIZATIONS` and`STATISTICS`. 
Maybe think rewrite fail because` planed with unknown column statistics `, 
actually is rewrite successfully.

Before:

| ========== MATERIALIZATIONS ==========                                                                                                                                                                                                                |
|                                                                                                                                                                                                                                                       |
| MaterializedView                                                                                                                                                                                                                                      |
| MaterializedViewRewriteSuccessAndChose:                                                                                                                                                                                                               |
|   internal#regression_test_nereids_rules_p0_mv_agg_with_roll_up#mv13_1 chose,                                                                                                                                                                         |
|                                                                                                                                                                                                                                                       |
| MaterializedViewRewriteSuccessButNotChose:                                                                                                                                                                                                            |
|   not chose: none,                                                                                                                                                                                                                                    |
|                                                                                                                                                                                                                                                       |
| MaterializedViewRewriteFail:                                                                                                                                                                                                                          |
|                                                                                                                                                                                                                                                       |
| Statistics                                                                                                                                                                                                                                            |
|  planed with unknown column statistics     

After:

| ========== MATERIALIZATIONS ==========                                                                                                                                                                                                                |
|                                                                                                                                                                                                                                                       |
| MaterializedView                                                                                                                                                                                                                                      |
| MaterializedViewRewriteSuccessAndChose:                                                                                                                                                                                                               |
|   internal.regression_test_nereids_rules_p0_mv_agg_with_roll_up.mv13_1 chose,                                                                                                                                                                         |
|                                                                                                                                                                                                                                                       |
| MaterializedViewRewriteSuccessButNotChose:                                                                                                                                                                                                            |
|   not chose: none,                                                                                                                                                                                                                                    |
|                                                                                                                                                                                                                                                       |
| MaterializedViewRewriteFail:                                                                                                                                                                                                                          |
|                                                                                                                                                                                                                                                       |
|                                                                                                                                                                                                                                                       |
| ========== STATISTICS ==========                                                                                                                                                                                                                      |
| planed with unknown column statistics
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/2.1.7-merged dev/3.0.3-merged reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants