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

[opt](mtmv) support rewrite when mv has date_trunc but query doesn't have #44948

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

seawinde
Copy link
Contributor

@seawinde seawinde commented Dec 3, 2024

What problem does this PR solve?

Such as mv def is as following:

            select
              l_shipmode,
              date_trunc(l_commitdate, 'day') as day_trunc,
              count(*)
            from
              lineitem
            group by
              l_shipmode,
              date_trunc(l_commitdate, 'day');

query is as following, if query filter is like l_commitdate >= '2023-10-17' and l_commitdate < '2023-10-18'
can be rewritten successfully by mv

            select
              l_shipmode,
              count(*)
            from
              lineitem
            where
              l_commitdate >= '2023-10-17' and  l_commitdate < '2023-10-18'
            group by
              l_shipmode;

Issue Number: close #xxx

Related PR: #xxx

Problem Summary:

Release note

support rewrite when mv has date_trunc but query doesn't have

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

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

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 3, 2024

run buildall

@morrySnow morrySnow marked this pull request as draft December 3, 2024 14:08
@seawinde seawinde force-pushed the support_date_trunc_mv_rewrite branch 3 times, most recently from 087b8f9 to 67befe3 Compare December 9, 2024 12:24
@seawinde seawinde marked this pull request as ready for review December 10, 2024 13:45
@seawinde
Copy link
Contributor Author

run buildall

2 similar comments
@seawinde
Copy link
Contributor Author

run buildall

@seawinde
Copy link
Contributor Author

run buildall

@seawinde seawinde changed the title [draft](mtmv) support rewrite when mv has date_trunc but query doesn't have [opt](mtmv) support rewrite when mv has date_trunc but query doesn't have Dec 12, 2024
Copy link
Contributor

PR approved by anyone and no changes requested.

Copy link
Contributor

@zfr9527 zfr9527 left a comment

Choose a reason for hiding this comment

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

1.Data insertion and query take boundary values into account, with the minimum granularity down to the millisecond level.
2."date_trunc" can be replaced with other units for testing.
3.It is compatible with the old functions. If "date_trunc" appears in a query, it can still be rewritten successfully.
4.The simplest materialized view without "group by" can be added.
5.When "date_trunc" changes the data of MTMV (Materialized Table Maintained by Views), resulting in the actual data of MTMV being inconsistent with that of the base table, whether an SQL query hits the target should be judged according to the actual situation.
eg:
mtmv:
date_trunc(, minute)

mv:
2024-12-01 00:00:00
2024-12-01 00:01:00
2024-12-01 00:02:00
2024-12-01 00:00:00
2024-12-01 00:01:00
2024-12-01 00:02:00
2024-12-01 00:03:00

tb:
2024-12-01 00:00:00
2024-12-01 00:01:00
2024-12-01 00:02:00
2024-12-01 00:00:02
2024-12-01 00:01:03
2024-12-01 00:02:59
2024-12-01 00:03:15

sql:
second >= 00:00:00 < 00:03:05
do not support rewrite

minute >= 00:00:00 < 00:03:00
support rewrite

day >= 00:00:00 < 00:00:00
day >= 00:00:00 < 00:00:00 + 1 day
support rewrite

6.When changes in the base table data cause some partitions of MTMV to become invalid, SQL can be rewritten normally through "union all".

morrySnow
morrySnow previously approved these changes Dec 25, 2024
@morrySnow
Copy link
Contributor

run buildall

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

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

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17585	6157	5985	5985
q2	2049	307	161	161
q3	10426	1234	749	749
q4	10259	856	431	431
q5	8467	2155	1973	1973
q6	211	181	152	152
q7	892	758	612	612
q8	9227	1334	1167	1167
q9	5359	4937	4942	4937
q10	6764	2317	1865	1865
q11	491	280	255	255
q12	354	364	221	221
q13	17844	3703	3047	3047
q14	236	246	219	219
q15	573	521	505	505
q16	644	608	596	596
q17	578	875	332	332
q18	7071	6782	6473	6473
q19	2790	967	556	556
q20	294	314	181	181
q21	2866	2199	1948	1948
q22	364	327	308	308
Total cold run time: 105344 ms
Total hot run time: 32673 ms

----- Round 2, with runtime_filter_mode=off -----
q1	6291	6170	6188	6170
q2	234	329	229	229
q3	2230	2628	2301	2301
q4	1409	1830	1328	1328
q5	4327	4750	4878	4750
q6	182	174	139	139
q7	2063	2015	1817	1817
q8	2600	2807	2690	2690
q9	7319	7279	7289	7279
q10	3052	3378	2749	2749
q11	568	501	491	491
q12	674	835	623	623
q13	3371	3710	3126	3126
q14	297	315	279	279
q15	558	521	516	516
q16	646	689	638	638
q17	1221	1730	1258	1258
q18	7850	7425	7348	7348
q19	811	995	1140	995
q20	2002	2019	1970	1970
q21	5698	5195	4839	4839
q22	632	598	572	572
Total cold run time: 54035 ms
Total hot run time: 52107 ms

@doris-robot
Copy link

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

query1	1311	1014	904	904
query2	6491	2313	2298	2298
query3	11056	4762	4804	4762
query4	32982	23829	23455	23455
query5	4287	604	473	473
query6	290	214	200	200
query7	3986	500	307	307
query8	322	260	253	253
query9	9459	2736	2737	2736
query10	476	305	244	244
query11	18021	15363	15529	15363
query12	172	104	101	101
query13	1656	541	410	410
query14	11147	7514	7605	7514
query15	263	210	191	191
query16	8110	631	457	457
query17	1552	784	593	593
query18	2209	424	339	339
query19	211	207	174	174
query20	137	116	119	116
query21	210	124	115	115
query22	4688	4697	4666	4666
query23	34801	33685	33594	33594
query24	6270	2365	2449	2365
query25	483	442	400	400
query26	1178	279	152	152
query27	2017	462	330	330
query28	5806	2516	2488	2488
query29	762	589	429	429
query30	219	186	158	158
query31	1017	946	853	853
query32	96	57	57	57
query33	515	377	292	292
query34	806	852	541	541
query35	811	815	741	741
query36	1024	1072	966	966
query37	120	108	75	75
query38	4139	4176	4279	4176
query39	1513	1503	1446	1446
query40	202	115	98	98
query41	45	44	44	44
query42	125	111	104	104
query43	530	534	513	513
query44	1323	826	841	826
query45	196	180	175	175
query46	910	1052	664	664
query47	2001	2025	1934	1934
query48	376	409	329	329
query49	752	479	406	406
query50	635	695	395	395
query51	7288	7158	7371	7158
query52	103	109	97	97
query53	240	256	195	195
query54	503	503	427	427
query55	82	80	87	80
query56	256	263	258	258
query57	1260	1240	1129	1129
query58	246	233	237	233
query59	3064	3346	3037	3037
query60	276	273	257	257
query61	110	105	106	105
query62	902	800	765	765
query63	232	204	205	204
query64	4395	1010	712	712
query65	3383	3300	3331	3300
query66	1019	422	312	312
query67	16301	15974	15497	15497
query68	9552	767	522	522
query69	476	291	251	251
query70	1209	1154	1130	1130
query71	446	289	260	260
query72	6297	3852	3797	3797
query73	667	749	364	364
query74	10114	9014	8996	8996
query75	4579	3132	2664	2664
query76	4501	1192	780	780
query77	908	346	284	284
query78	10254	10256	9548	9548
query79	3546	903	584	584
query80	703	504	536	504
query81	491	274	234	234
query82	627	149	122	122
query83	192	160	142	142
query84	282	92	79	79
query85	796	377	296	296
query86	355	318	297	297
query87	4401	4598	4379	4379
query88	4172	2248	2286	2248
query89	446	329	311	311
query90	1935	187	190	187
query91	130	138	104	104
query92	69	55	51	51
query93	1855	863	542	542
query94	656	389	282	282
query95	341	269	249	249
query96	487	601	293	293
query97	2787	2761	2667	2667
query98	223	200	192	192
query99	1696	1565	1406	1406
Total cold run time: 302561 ms
Total hot run time: 197753 ms

@doris-robot
Copy link

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

query1	0.03	0.03	0.04
query2	0.06	0.04	0.03
query3	0.23	0.07	0.06
query4	1.61	0.10	0.11
query5	0.43	0.41	0.42
query6	1.14	0.65	0.64
query7	0.02	0.02	0.01
query8	0.04	0.04	0.03
query9	0.55	0.53	0.50
query10	0.57	0.57	0.55
query11	0.14	0.10	0.10
query12	0.14	0.11	0.11
query13	0.62	0.60	0.60
query14	2.75	2.79	2.83
query15	0.90	0.82	0.82
query16	0.39	0.39	0.38
query17	1.00	1.01	1.06
query18	0.22	0.21	0.20
query19	1.97	1.89	2.00
query20	0.01	0.01	0.01
query21	15.37	0.94	0.58
query22	0.75	0.95	0.74
query23	15.05	1.40	0.57
query24	3.07	1.08	1.61
query25	0.13	0.19	0.30
query26	0.25	0.14	0.15
query27	0.06	0.06	0.04
query28	14.58	1.50	1.04
query29	12.59	3.92	3.29
query30	0.24	0.10	0.06
query31	2.83	0.58	0.38
query32	3.24	0.56	0.47
query33	3.11	3.10	3.15
query34	16.56	5.05	4.50
query35	4.54	4.45	4.47
query36	0.66	0.50	0.50
query37	0.09	0.07	0.06
query38	0.05	0.04	0.04
query39	0.03	0.02	0.03
query40	0.16	0.13	0.14
query41	0.07	0.03	0.03
query42	0.04	0.03	0.02
query43	0.04	0.03	0.02
Total cold run time: 106.33 s
Total hot run time: 31.72 s

@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 Dec 26, 2024
@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17576	6210	6049	6049
q2	2046	294	172	172
q3	10423	1269	727	727
q4	10211	862	432	432
q5	7549	2197	1985	1985
q6	208	186	153	153
q7	892	743	612	612
q8	9263	1375	1200	1200
q9	5288	4923	4917	4917
q10	6731	2309	1864	1864
q11	482	273	261	261
q12	366	370	225	225
q13	17769	3560	2981	2981
q14	228	223	210	210
q15	573	516	492	492
q16	647	619	588	588
q17	586	846	325	325
q18	7159	6571	6442	6442
q19	1232	988	575	575
q20	316	321	188	188
q21	2915	2207	2002	2002
q22	365	341	318	318
Total cold run time: 102825 ms
Total hot run time: 32718 ms

----- Round 2, with runtime_filter_mode=off -----
q1	6276	6258	6302	6258
q2	237	326	236	236
q3	2269	2656	2345	2345
q4	1392	1803	1375	1375
q5	4339	4717	4826	4717
q6	189	177	146	146
q7	2165	1967	1788	1788
q8	2560	2776	2654	2654
q9	7367	7241	7304	7241
q10	3052	3288	2822	2822
q11	590	520	496	496
q12	652	742	592	592
q13	3329	3797	3105	3105
q14	283	296	267	267
q15	560	506	509	506
q16	649	704	633	633
q17	1219	1739	1243	1243
q18	7492	7445	7259	7259
q19	835	964	1107	964
q20	1934	1948	1826	1826
q21	5582	5136	4863	4863
q22	632	623	587	587
Total cold run time: 53603 ms
Total hot run time: 51923 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 190343 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 56d78e8c470580920192a68dc9ba86b4271a6fd4, data reload: false

query1	954	389	379	379
query2	6524	2452	2465	2452
query3	6709	209	212	209
query4	33558	23667	23501	23501
query5	4307	626	465	465
query6	298	212	219	212
query7	4633	499	313	313
query8	306	268	244	244
query9	9480	2733	2717	2717
query10	467	323	265	265
query11	17976	15358	15350	15350
query12	157	105	109	105
query13	1680	568	412	412
query14	9875	8013	7258	7258
query15	240	203	190	190
query16	8295	593	461	461
query17	1584	762	582	582
query18	2134	394	288	288
query19	218	175	155	155
query20	127	139	109	109
query21	212	122	97	97
query22	4447	4531	4183	4183
query23	34446	33298	33335	33298
query24	6437	2260	2304	2260
query25	501	435	377	377
query26	1200	278	154	154
query27	1985	463	329	329
query28	5168	2428	2386	2386
query29	753	546	416	416
query30	230	186	145	145
query31	995	895	805	805
query32	90	64	59	59
query33	499	346	290	290
query34	814	851	512	512
query35	799	804	750	750
query36	1018	1040	939	939
query37	120	103	75	75
query38	4124	4051	4132	4051
query39	1499	1469	1435	1435
query40	200	115	101	101
query41	50	47	46	46
query42	121	106	103	103
query43	535	552	521	521
query44	1307	782	796	782
query45	185	171	170	170
query46	886	1053	639	639
query47	1875	1925	1837	1837
query48	381	410	321	321
query49	777	469	388	388
query50	637	652	379	379
query51	7125	7038	7182	7038
query52	98	102	97	97
query53	233	257	183	183
query54	487	499	402	402
query55	81	78	80	78
query56	264	249	244	244
query57	1215	1195	1117	1117
query58	245	229	226	226
query59	3064	3240	3051	3051
query60	284	258	251	251
query61	114	109	112	109
query62	930	816	730	730
query63	228	193	191	191
query64	4606	989	651	651
query65	3262	3168	3200	3168
query66	1051	413	321	321
query67	15856	15779	15502	15502
query68	9152	761	504	504
query69	458	283	266	266
query70	1227	1130	1142	1130
query71	433	283	250	250
query72	5882	3816	3811	3811
query73	666	770	362	362
query74	10026	9264	8889	8889
query75	4591	3362	2709	2709
query76	5381	1182	774	774
query77	981	353	271	271
query78	10242	10297	9421	9421
query79	4229	878	570	570
query80	715	501	418	418
query81	475	266	224	224
query82	671	149	115	115
query83	202	161	146	146
query84	360	94	76	76
query85	778	372	297	297
query86	362	325	302	302
query87	4474	4391	4540	4391
query88	4402	2228	2213	2213
query89	430	339	294	294
query90	1939	191	191	191
query91	131	136	110	110
query92	66	55	54	54
query93	2540	872	513	513
query94	661	382	286	286
query95	337	265	252	252
query96	501	614	284	284
query97	2782	2829	2694	2694
query98	231	203	196	196
query99	1696	1580	1456	1456
Total cold run time: 297977 ms
Total hot run time: 190343 ms

@doris-robot
Copy link

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

query1	0.03	0.03	0.03
query2	0.07	0.03	0.04
query3	0.23	0.07	0.07
query4	1.62	0.10	0.11
query5	0.42	0.44	0.42
query6	1.16	0.65	0.65
query7	0.02	0.01	0.02
query8	0.04	0.03	0.03
query9	0.58	0.51	0.50
query10	0.57	0.57	0.56
query11	0.15	0.11	0.11
query12	0.13	0.11	0.10
query13	0.62	0.60	0.61
query14	2.70	2.75	2.84
query15	0.90	0.83	0.82
query16	0.38	0.38	0.38
query17	1.09	1.00	1.08
query18	0.23	0.22	0.21
query19	1.99	1.80	2.00
query20	0.01	0.01	0.00
query21	15.36	0.97	0.58
query22	0.76	0.84	0.84
query23	15.07	1.42	0.54
query24	2.87	1.92	0.61
query25	0.09	0.15	0.16
query26	0.31	0.15	0.14
query27	0.05	0.07	0.06
query28	13.86	1.57	1.05
query29	12.55	3.93	3.22
query30	0.25	0.09	0.06
query31	2.83	0.59	0.39
query32	3.22	0.55	0.47
query33	3.06	3.14	3.11
query34	17.27	5.14	4.55
query35	4.53	4.53	4.51
query36	0.64	0.49	0.48
query37	0.09	0.06	0.06
query38	0.06	0.04	0.04
query39	0.04	0.03	0.02
query40	0.17	0.14	0.12
query41	0.08	0.02	0.02
query42	0.03	0.02	0.02
query43	0.04	0.03	0.03
Total cold run time: 106.17 s
Total hot run time: 31.24 s

@seawinde
Copy link
Contributor Author

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17573	6189	5985	5985
q2	2043	311	169	169
q3	10412	1249	760	760
q4	10254	853	433	433
q5	8314	2183	2003	2003
q6	206	177	144	144
q7	885	744	612	612
q8	9245	1373	1235	1235
q9	5274	5000	5026	5000
q10	6754	2307	1862	1862
q11	474	274	256	256
q12	346	357	224	224
q13	17763	3554	2989	2989
q14	228	231	224	224
q15	563	490	493	490
q16	624	612	577	577
q17	560	843	324	324
q18	6909	6560	6452	6452
q19	2197	966	547	547
q20	301	317	191	191
q21	2837	2186	1983	1983
q22	354	338	304	304
Total cold run time: 104116 ms
Total hot run time: 32764 ms

----- Round 2, with runtime_filter_mode=off -----
q1	6321	6263	6263	6263
q2	235	320	232	232
q3	2238	2651	2325	2325
q4	1417	1806	1375	1375
q5	4349	4745	4809	4745
q6	186	182	140	140
q7	2038	1958	1850	1850
q8	2656	2767	2692	2692
q9	7381	7252	7312	7252
q10	3099	3372	2778	2778
q11	567	513	490	490
q12	658	800	584	584
q13	3369	3750	3072	3072
q14	298	326	291	291
q15	569	516	499	499
q16	668	682	676	676
q17	1197	1730	1268	1268
q18	7657	7441	7302	7302
q19	873	1184	1057	1057
q20	2035	2022	1888	1888
q21	5728	5252	5115	5115
q22	613	614	585	585
Total cold run time: 54152 ms
Total hot run time: 52479 ms

@doris-robot
Copy link

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

query1	1311	951	944	944
query2	6517	2345	2356	2345
query3	11149	4674	4748	4674
query4	32860	23715	23603	23603
query5	4317	614	448	448
query6	280	206	188	188
query7	3989	511	310	310
query8	309	254	247	247
query9	9279	2768	2725	2725
query10	447	309	246	246
query11	17949	15486	15225	15225
query12	166	108	106	106
query13	1680	569	408	408
query14	11192	6918	8070	6918
query15	246	210	209	209
query16	8011	627	514	514
query17	1555	764	596	596
query18	2110	423	318	318
query19	213	191	158	158
query20	126	114	121	114
query21	210	123	111	111
query22	4704	4763	4436	4436
query23	34508	33667	33913	33667
query24	6381	2332	2381	2332
query25	475	468	387	387
query26	798	269	157	157
query27	2137	503	346	346
query28	5181	2512	2490	2490
query29	629	560	428	428
query30	212	182	152	152
query31	983	975	888	888
query32	73	59	58	58
query33	469	359	298	298
query34	770	884	521	521
query35	789	832	782	782
query36	1026	1059	960	960
query37	115	98	81	81
query38	4261	4235	4427	4235
query39	1545	1473	1439	1439
query40	206	119	112	112
query41	45	46	43	43
query42	125	107	108	107
query43	553	525	517	517
query44	1356	832	839	832
query45	187	184	170	170
query46	966	1105	683	683
query47	2016	1977	1952	1952
query48	405	426	322	322
query49	734	505	426	426
query50	671	688	394	394
query51	7310	7093	7164	7093
query52	101	103	96	96
query53	239	267	197	197
query54	493	506	420	420
query55	85	89	87	87
query56	260	263	241	241
query57	1267	1234	1162	1162
query58	229	221	224	221
query59	3140	3319	3286	3286
query60	281	259	257	257
query61	107	107	108	107
query62	860	839	756	756
query63	229	210	200	200
query64	3440	1007	645	645
query65	3371	3285	3303	3285
query66	771	401	299	299
query67	16597	15967	15557	15557
query68	9697	791	516	516
query69	491	295	297	295
query70	1265	1140	1108	1108
query71	450	303	265	265
query72	5959	3811	3923	3811
query73	1541	760	360	360
query74	10029	9028	8915	8915
query75	4601	3164	2681	2681
query76	5558	1187	811	811
query77	1017	393	276	276
query78	9920	10195	9374	9374
query79	3362	893	601	601
query80	701	524	427	427
query81	478	283	231	231
query82	209	152	122	122
query83	193	168	141	141
query84	349	87	71	71
query85	738	347	303	303
query86	347	309	293	293
query87	4626	4627	4509	4509
query88	3868	2218	2188	2188
query89	437	347	291	291
query90	2139	184	188	184
query91	148	142	103	103
query92	63	57	55	55
query93	2776	895	524	524
query94	683	384	253	253
query95	336	262	255	255
query96	493	627	278	278
query97	2732	2823	2669	2669
query98	212	202	195	195
query99	1644	1572	1443	1443
Total cold run time: 302078 ms
Total hot run time: 197079 ms

@doris-robot
Copy link

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

query1	0.03	0.03	0.06
query2	0.07	0.03	0.04
query3	0.23	0.08	0.07
query4	1.64	0.10	0.10
query5	0.42	0.43	0.42
query6	1.13	0.65	0.65
query7	0.02	0.01	0.02
query8	0.04	0.03	0.03
query9	0.58	0.50	0.50
query10	0.57	0.58	0.56
query11	0.14	0.11	0.11
query12	0.14	0.11	0.12
query13	0.62	0.59	0.60
query14	2.83	2.71	2.78
query15	0.89	0.82	0.83
query16	0.36	0.37	0.37
query17	1.08	1.01	1.05
query18	0.23	0.20	0.21
query19	1.99	1.84	2.02
query20	0.02	0.00	0.01
query21	15.36	0.95	0.58
query22	0.77	0.71	0.68
query23	15.34	1.45	0.59
query24	2.87	1.37	0.84
query25	0.26	0.18	0.06
query26	0.27	0.15	0.13
query27	0.07	0.05	0.07
query28	14.09	1.54	1.05
query29	12.57	3.91	3.20
query30	0.25	0.09	0.07
query31	2.83	0.59	0.38
query32	3.23	0.54	0.45
query33	3.07	3.05	3.04
query34	16.70	5.14	4.50
query35	4.51	4.48	4.50
query36	0.65	0.49	0.50
query37	0.10	0.06	0.06
query38	0.04	0.04	0.03
query39	0.04	0.02	0.03
query40	0.16	0.13	0.13
query41	0.08	0.03	0.02
query42	0.03	0.02	0.02
query43	0.03	0.02	0.03
Total cold run time: 106.35 s
Total hot run time: 31.05 s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants