Skip to content

Conversation

@feiniaofeiafei
Copy link
Contributor

cherry-pick #39252 to branch-3.0

add rewrite rule:
select id, max(a) from t group by id having max(a)>10;
 ->
 select id, max(a) from t where a>10 group by id;
select id, min(a) from t group by id having min(a)<10;
->
 select id, min(a) from t where a<10 group by id;
@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.

@feiniaofeiafei
Copy link
Contributor Author

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17591	7402	7286	7286
q2	2047	146	150	146
q3	10737	1048	1140	1048
q4	10535	770	731	731
q5	7724	2758	2699	2699
q6	232	152	154	152
q7	987	634	599	599
q8	9575	1891	1939	1891
q9	7951	6371	6374	6371
q10	6978	2284	2264	2264
q11	428	248	243	243
q12	406	218	212	212
q13	17794	2940	2936	2936
q14	259	213	204	204
q15	552	504	510	504
q16	491	426	406	406
q17	967	540	564	540
q18	7245	6704	6440	6440
q19	2798	1017	947	947
q20	559	269	252	252
q21	3934	3284	3035	3035
q22	1067	988	964	964
Total cold run time: 110857 ms
Total hot run time: 39870 ms

----- Round 2, with runtime_filter_mode=off -----
q1	7272	7192	7191	7191
q2	320	226	222	222
q3	2902	2852	2880	2852
q4	1977	1789	1728	1728
q5	5676	5606	5648	5606
q6	226	145	146	145
q7	2178	1746	1759	1746
q8	3274	3534	3478	3478
q9	8729	8811	8753	8753
q10	3527	3481	3497	3481
q11	578	474	481	474
q12	774	625	600	600
q13	16411	3148	3088	3088
q14	301	284	266	266
q15	564	521	514	514
q16	515	466	451	451
q17	1798	1587	1625	1587
q18	8116	7641	7694	7641
q19	4283	1522	1406	1406
q20	2070	1796	1863	1796
q21	5311	5253	5203	5203
q22	1097	996	1020	996
Total cold run time: 77899 ms
Total hot run time: 59224 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 192307 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 45d8ef655f7e0ff3b343196fce0e4ec9daac5daa, data reload: false

query1	1262	887	874	874
query2	6279	1948	1962	1948
query3	10768	3771	3734	3734
query4	62689	27918	23279	23279
query5	5044	464	469	464
query6	386	176	188	176
query7	5395	303	292	292
query8	279	211	207	207
query9	7797	2664	2637	2637
query10	432	287	276	276
query11	16762	14962	15745	14962
query12	160	106	102	102
query13	1390	472	457	457
query14	10496	7361	7099	7099
query15	209	173	163	163
query16	7112	483	442	442
query17	1182	604	582	582
query18	1472	313	314	313
query19	225	152	144	144
query20	126	103	106	103
query21	209	106	106	106
query22	4755	4607	4883	4607
query23	34162	33552	33750	33552
query24	5989	2826	2852	2826
query25	509	392	397	392
query26	645	155	155	155
query27	1635	294	298	294
query28	4016	2166	2148	2148
query29	665	413	427	413
query30	231	153	155	153
query31	969	759	831	759
query32	70	52	52	52
query33	419	293	282	282
query34	908	477	495	477
query35	843	762	712	712
query36	1067	931	915	915
query37	128	80	76	76
query38	3930	3844	3904	3844
query39	1464	1423	1435	1423
query40	211	95	94	94
query41	45	43	42	42
query42	115	95	95	95
query43	496	471	474	471
query44	1151	759	755	755
query45	194	171	163	163
query46	1116	744	698	698
query47	1916	1831	1815	1815
query48	432	327	323	323
query49	649	366	365	365
query50	830	408	401	401
query51	6989	6934	6953	6934
query52	102	90	84	84
query53	248	177	178	177
query54	576	455	451	451
query55	75	72	70	70
query56	260	246	243	243
query57	1238	1121	1116	1116
query58	217	231	228	228
query59	3179	2879	2809	2809
query60	286	256	265	256
query61	101	98	109	98
query62	768	651	684	651
query63	211	180	177	177
query64	1386	627	570	570
query65	3256	3167	3133	3133
query66	673	300	291	291
query67	15773	15452	15235	15235
query68	4075	538	555	538
query69	616	281	276	276
query70	1132	1110	1090	1090
query71	483	278	265	265
query72	8202	3885	3822	3822
query73	746	331	327	327
query74	10342	8937	8906	8906
query75	4731	2648	2684	2648
query76	3899	800	890	800
query77	779	270	272	270
query78	10006	9152	9058	9058
query79	3207	568	572	568
query80	3028	422	421	421
query81	562	216	221	216
query82	889	129	129	129
query83	319	133	136	133
query84	295	83	82	82
query85	1514	294	269	269
query86	471	303	296	296
query87	4538	4171	4214	4171
query88	4416	2357	2362	2357
query89	401	286	286	286
query90	2148	181	181	181
query91	152	102	104	102
query92	59	48	45	45
query93	4301	527	524	524
query94	1151	284	285	284
query95	334	241	241	241
query96	632	277	270	270
query97	3308	3113	3073	3073
query98	220	195	195	195
query99	1602	1290	1279	1279
Total cold run time: 323130 ms
Total hot run time: 192307 ms

@924060929 924060929 merged commit 54d730c into apache:branch-3.0 Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants