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](iceberg)Add a new appearance to display the pushDown count #37046

Merged
merged 5 commits into from
Jul 10, 2024

Conversation

wuwenchi
Copy link
Contributor

@wuwenchi wuwenchi commented Jul 1, 2024

Proposed changes

  1. When the count can be pushed down, the specific data will be displayed later.

|      pushdown agg=COUNT (1)     |
  1. Add a session variable enable_count_push_down_for_external_table to control whether a pushdown count operation is required. Default is true;
mysql> show variables like 'enable_count_push_down_for_external_table';
+-------------------------------------------+-------+---------------+---------+
| Variable_name                             | Value | Default_Value | Changed |
+-------------------------------------------+-------+---------------+---------+
| enable_count_push_down_for_external_table | false | true          | 1       |
+-------------------------------------------+-------+---------------+---------+
1 row in set (0.02 sec)

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

@wuwenchi
Copy link
Contributor Author

wuwenchi commented Jul 1, 2024

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17622	4854	4256	4256
q2	2011	192	204	192
q3	10463	1217	1174	1174
q4	10206	807	729	729
q5	7533	2667	2674	2667
q6	222	134	137	134
q7	962	597	604	597
q8	9243	2060	2100	2060
q9	9069	6499	6444	6444
q10	8986	3695	3705	3695
q11	444	243	236	236
q12	490	237	240	237
q13	17754	2999	2985	2985
q14	273	227	223	223
q15	528	468	484	468
q16	520	387	374	374
q17	974	670	699	670
q18	7945	7424	7472	7424
q19	5397	1493	1442	1442
q20	701	327	322	322
q21	5106	3246	3923	3246
q22	403	342	362	342
Total cold run time: 116852 ms
Total hot run time: 39917 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4366	4303	4199	4199
q2	362	257	270	257
q3	3013	2956	2919	2919
q4	2067	1705	1790	1705
q5	5566	5473	5467	5467
q6	227	132	129	129
q7	2234	1927	1863	1863
q8	3274	3448	3409	3409
q9	8708	8710	8699	8699
q10	4157	3728	3851	3728
q11	601	485	506	485
q12	840	630	617	617
q13	16981	3230	3219	3219
q14	296	277	284	277
q15	516	506	474	474
q16	499	450	431	431
q17	1794	1556	1514	1514
q18	8125	7972	7896	7896
q19	1824	1646	1597	1597
q20	2201	1888	1875	1875
q21	5043	4619	4838	4619
q22	659	572	557	557
Total cold run time: 73353 ms
Total hot run time: 55936 ms

@doris-robot
Copy link

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

query1	908	380	379	379
query2	6445	2431	2371	2371
query3	6627	206	209	206
query4	20369	17425	17452	17425
query5	3626	484	499	484
query6	250	166	162	162
query7	4592	302	291	291
query8	314	286	295	286
query9	8337	2399	2385	2385
query10	588	315	301	301
query11	10643	10024	10014	10014
query12	112	84	81	81
query13	1658	383	366	366
query14	8648	7980	7651	7651
query15	243	190	199	190
query16	7892	273	267	267
query17	1882	565	526	526
query18	2007	279	276	276
query19	205	156	157	156
query20	92	82	86	82
query21	223	137	131	131
query22	4323	4174	4104	4104
query23	34164	33564	33669	33564
query24	9306	2909	2924	2909
query25	615	413	397	397
query26	713	165	167	165
query27	2162	324	324	324
query28	5871	2160	2157	2157
query29	905	672	649	649
query30	265	159	165	159
query31	982	734	755	734
query32	99	55	55	55
query33	676	322	296	296
query34	877	488	501	488
query35	744	678	655	655
query36	1129	991	975	975
query37	139	79	82	79
query38	2964	2838	2880	2838
query39	950	838	836	836
query40	222	126	124	124
query41	53	51	52	51
query42	118	104	106	104
query43	562	555	548	548
query44	1089	739	717	717
query45	187	165	169	165
query46	1073	713	711	711
query47	1850	1769	1769	1769
query48	367	319	289	289
query49	850	426	415	415
query50	769	379	388	379
query51	6900	6720	6766	6720
query52	109	92	92	92
query53	362	299	296	296
query54	884	450	444	444
query55	75	75	75	75
query56	275	257	265	257
query57	1113	1060	1047	1047
query58	236	236	265	236
query59	3641	3113	3071	3071
query60	300	278	275	275
query61	96	92	93	92
query62	585	445	432	432
query63	314	295	289	289
query64	8552	2246	1749	1749
query65	3172	3103	3093	3093
query66	738	318	336	318
query67	15918	14970	15863	14970
query68	7710	547	560	547
query69	740	471	341	341
query70	1231	1142	1124	1124
query71	491	275	270	270
query72	8787	5491	5496	5491
query73	821	323	320	320
query74	5808	5460	5480	5460
query75	5075	2687	2671	2671
query76	4464	963	900	900
query77	788	307	298	298
query78	10370	9863	9850	9850
query79	6279	521	524	521
query80	1012	472	519	472
query81	547	220	216	216
query82	775	109	103	103
query83	339	166	170	166
query84	276	93	83	83
query85	1224	275	269	269
query86	388	285	320	285
query87	3320	3077	3126	3077
query88	3978	2386	2367	2367
query89	490	403	387	387
query90	1962	183	189	183
query91	124	99	100	99
query92	60	48	48	48
query93	5426	510	510	510
query94	1235	188	230	188
query95	406	310	317	310
query96	617	264	265	264
query97	3209	3055	3052	3052
query98	213	200	191	191
query99	1157	833	839	833
Total cold run time: 282277 ms
Total hot run time: 175038 ms

@doris-robot
Copy link

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

query1	0.04	0.04	0.03
query2	0.08	0.04	0.05
query3	0.24	0.05	0.05
query4	1.68	0.08	0.08
query5	0.48	0.48	0.49
query6	1.14	0.72	0.72
query7	0.02	0.02	0.01
query8	0.05	0.04	0.05
query9	0.53	0.47	0.48
query10	0.54	0.53	0.54
query11	0.15	0.11	0.11
query12	0.14	0.12	0.12
query13	0.60	0.58	0.60
query14	0.74	0.80	0.78
query15	0.84	0.82	0.81
query16	0.38	0.37	0.37
query17	1.00	1.04	0.96
query18	0.25	0.25	0.27
query19	1.83	1.84	1.85
query20	0.01	0.01	0.02
query21	15.43	0.76	0.67
query22	4.46	7.45	1.61
query23	18.28	1.41	1.23
query24	2.16	0.25	0.22
query25	0.15	0.08	0.08
query26	0.27	0.17	0.18
query27	0.08	0.08	0.08
query28	13.19	1.01	0.99
query29	13.03	3.31	3.36
query30	0.25	0.06	0.05
query31	2.88	0.39	0.38
query32	3.31	0.47	0.47
query33	2.87	2.92	2.88
query34	17.07	4.36	4.46
query35	4.46	4.56	4.45
query36	0.67	0.50	0.46
query37	0.18	0.15	0.15
query38	0.15	0.14	0.14
query39	0.05	0.03	0.03
query40	0.16	0.15	0.14
query41	0.09	0.05	0.04
query42	0.05	0.05	0.04
query43	0.05	0.04	0.04
Total cold run time: 110.03 s
Total hot run time: 30.27 s

Copy link
Contributor

@morningman morningman left a comment

Choose a reason for hiding this comment

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

Should be used for all external table

@@ -1800,6 +1802,10 @@ public void setEnableLeftZigZag(boolean enableLeftZigZag) {
description = {"强制使用jni方式读取外表", "Force the use of jni mode to read external table"})
private boolean forceJniScanner = false;

@VariableMgr.VarAttr(name = OPTIMIZE_PUSH_DOWN_COUNT,
description = {"对`COUNT`使用下推进行优化", "Optimize `COUNT` using pushdown"})
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
description = {"对`COUNT`使用下推进行优化", "Optimize `COUNT` using pushdown"})
description = {"对外表启用 count(*) 下推优化", "enable count(*) pushdown optimization for external table"})

@@ -1800,6 +1802,10 @@ public void setEnableLeftZigZag(boolean enableLeftZigZag) {
description = {"强制使用jni方式读取外表", "Force the use of jni mode to read external table"})
private boolean forceJniScanner = false;

@VariableMgr.VarAttr(name = OPTIMIZE_PUSH_DOWN_COUNT,
description = {"对`COUNT`使用下推进行优化", "Optimize `COUNT` using pushdown"})
private boolean optimizePushDownCount = true;
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
private boolean optimizePushDownCount = true;
private boolean enableCountPushDownForExternalTable = true;

@@ -584,6 +584,8 @@ public class SessionVariable implements Serializable, Writable {

public static final String FORCE_JNI_SCANNER = "force_jni_scanner";

public static final String OPTIMIZE_PUSH_DOWN_COUNT = "optimize_push_down_count";
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
public static final String OPTIMIZE_PUSH_DOWN_COUNT = "optimize_push_down_count";
public static final String ENABLE_COUNT_PUSH_DOWN_FOR_EXTERNAL_TABLE = "enable_count_push_down_for_external_table";

@wuwenchi wuwenchi marked this pull request as draft July 2, 2024 02:37
@wuwenchi wuwenchi marked this pull request as ready for review July 2, 2024 13:23
@wuwenchi
Copy link
Contributor Author

wuwenchi commented Jul 2, 2024

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17880	4411	4271	4271
q2	2030	197	188	188
q3	10834	1180	1078	1078
q4	10676	807	772	772
q5	7535	2686	2592	2592
q6	232	141	140	140
q7	972	609	611	609
q8	9624	2122	2101	2101
q9	9075	6621	6494	6494
q10	9000	3762	3718	3718
q11	444	232	233	232
q12	441	236	220	220
q13	17755	2959	2948	2948
q14	260	221	215	215
q15	527	480	474	474
q16	499	376	372	372
q17	958	688	690	688
q18	7980	7405	7345	7345
q19	3766	1435	1455	1435
q20	652	304	318	304
q21	5002	3857	3215	3215
q22	387	330	331	330
Total cold run time: 116529 ms
Total hot run time: 39741 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4390	4200	4222	4200
q2	362	270	259	259
q3	2958	2703	2722	2703
q4	1885	1608	1648	1608
q5	5201	5251	5233	5233
q6	221	129	128	128
q7	2049	1690	1706	1690
q8	3174	3368	3299	3299
q9	8305	8322	8262	8262
q10	3826	3649	3634	3634
q11	571	470	479	470
q12	777	631	601	601
q13	17610	2958	2984	2958
q14	284	256	263	256
q15	523	483	474	474
q16	464	403	410	403
q17	1782	1506	1477	1477
q18	7497	7357	7194	7194
q19	1684	1518	1479	1479
q20	1968	1767	1775	1767
q21	4867	4766	4675	4675
q22	593	539	526	526
Total cold run time: 70991 ms
Total hot run time: 53296 ms

@doris-robot
Copy link

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

query1	923	373	360	360
query2	6459	2393	2337	2337
query3	6660	209	216	209
query4	21847	17564	17150	17150
query5	4189	472	468	468
query6	265	192	169	169
query7	4595	296	285	285
query8	307	269	295	269
query9	8469	2366	2349	2349
query10	605	300	283	283
query11	10332	9973	9981	9973
query12	150	90	84	84
query13	1654	363	358	358
query14	8688	7611	6091	6091
query15	238	184	180	180
query16	7861	278	302	278
query17	1855	515	522	515
query18	1975	273	264	264
query19	195	145	147	145
query20	89	81	82	81
query21	211	127	124	124
query22	4226	4249	3980	3980
query23	33519	32872	32956	32872
query24	11720	2850	2723	2723
query25	676	357	369	357
query26	1843	151	148	148
query27	3082	309	302	302
query28	7688	2035	2023	2023
query29	1111	617	595	595
query30	285	150	147	147
query31	954	736	725	725
query32	90	51	57	51
query33	771	300	301	300
query34	975	454	460	454
query35	746	640	610	610
query36	1093	923	940	923
query37	270	74	73	73
query38	2844	2730	2736	2730
query39	876	806	805	805
query40	276	126	119	119
query41	54	51	50	50
query42	113	96	102	96
query43	597	517	550	517
query44	1230	708	716	708
query45	190	163	158	158
query46	1066	723	696	696
query47	1851	1785	1758	1758
query48	370	296	299	296
query49	1211	404	432	404
query50	765	375	379	375
query51	6921	6636	6751	6636
query52	101	88	88	88
query53	356	299	291	291
query54	1012	436	432	432
query55	72	73	71	71
query56	280	260	274	260
query57	1133	1045	1039	1039
query58	246	248	243	243
query59	3523	3151	3224	3151
query60	297	270	283	270
query61	93	93	105	93
query62	668	434	433	433
query63	320	291	285	285
query64	9887	2294	1705	1705
query65	3190	3078	3118	3078
query66	1391	349	324	324
query67	15391	14885	14890	14885
query68	4640	542	547	542
query69	468	304	305	304
query70	1169	1030	1144	1030
query71	403	270	318	270
query72	6968	5435	5517	5435
query73	729	322	322	322
query74	5914	5467	5406	5406
query75	3439	2627	2615	2615
query76	2741	996	947	947
query77	446	311	296	296
query78	10376	9913	9668	9668
query79	2723	511	499	499
query80	2169	457	458	457
query81	571	221	220	220
query82	835	105	111	105
query83	305	179	169	169
query84	267	88	86	86
query85	1588	283	263	263
query86	443	307	329	307
query87	3268	3111	3080	3080
query88	4099	2335	2330	2330
query89	470	371	387	371
query90	1827	191	187	187
query91	125	102	99	99
query92	70	50	48	48
query93	1683	489	493	489
query94	1224	188	180	180
query95	395	307	302	302
query96	582	281	263	263
query97	3173	3029	2980	2980
query98	217	201	197	197
query99	1160	838	854	838
Total cold run time: 277427 ms
Total hot run time: 170556 ms

@doris-robot
Copy link

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

query1	0.04	0.03	0.03
query2	0.08	0.04	0.04
query3	0.22	0.05	0.04
query4	1.67	0.07	0.07
query5	0.50	0.49	0.50
query6	1.14	0.73	0.73
query7	0.02	0.02	0.01
query8	0.06	0.05	0.05
query9	0.55	0.49	0.50
query10	0.54	0.53	0.54
query11	0.16	0.12	0.11
query12	0.15	0.12	0.12
query13	0.59	0.59	0.59
query14	0.76	0.78	0.78
query15	0.83	0.81	0.82
query16	0.36	0.36	0.37
query17	1.03	0.95	0.92
query18	0.22	0.22	0.26
query19	1.78	1.75	1.79
query20	0.02	0.01	0.00
query21	15.49	0.78	0.67
query22	4.09	6.52	2.58
query23	18.24	1.39	1.20
query24	2.10	0.23	0.22
query25	0.15	0.09	0.08
query26	0.26	0.18	0.18
query27	0.08	0.08	0.08
query28	13.22	1.01	1.00
query29	12.63	3.28	3.28
query30	0.25	0.07	0.06
query31	2.84	0.39	0.38
query32	3.29	0.49	0.48
query33	2.85	2.88	2.90
query34	17.17	4.44	4.45
query35	4.49	4.51	4.48
query36	0.66	0.46	0.46
query37	0.18	0.15	0.15
query38	0.16	0.15	0.15
query39	0.04	0.04	0.03
query40	0.18	0.14	0.14
query41	0.09	0.05	0.05
query42	0.05	0.05	0.04
query43	0.04	0.05	0.05
Total cold run time: 109.27 s
Total hot run time: 31.22 s

@wuwenchi
Copy link
Contributor Author

wuwenchi commented Jul 2, 2024

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17958	4507	4349	4349
q2	2025	192	189	189
q3	10559	1172	1086	1086
q4	10244	781	791	781
q5	7495	2688	2623	2623
q6	225	142	142	142
q7	984	606	617	606
q8	9248	2105	2093	2093
q9	8973	6540	6490	6490
q10	9045	3748	3710	3710
q11	482	243	238	238
q12	447	234	243	234
q13	17779	2976	2967	2967
q14	265	216	230	216
q15	511	472	473	472
q16	506	372	373	372
q17	988	667	735	667
q18	8114	7557	7350	7350
q19	5605	1486	1401	1401
q20	656	326	323	323
q21	4946	3185	4004	3185
q22	404	336	331	331
Total cold run time: 117459 ms
Total hot run time: 39825 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4420	4295	4258	4258
q2	369	271	267	267
q3	3002	2949	2879	2879
q4	2049	1706	1749	1706
q5	5658	5542	5468	5468
q6	227	135	132	132
q7	2248	1901	1848	1848
q8	3257	3431	3426	3426
q9	8676	8745	8967	8745
q10	4159	3918	3840	3840
q11	588	487	492	487
q12	860	641	656	641
q13	16108	3211	3216	3211
q14	310	279	272	272
q15	538	494	492	492
q16	473	428	431	428
q17	1824	1532	1539	1532
q18	8118	7984	7732	7732
q19	1765	1563	1658	1563
q20	2236	1878	1890	1878
q21	5191	5177	4977	4977
q22	600	560	532	532
Total cold run time: 72676 ms
Total hot run time: 56314 ms

@doris-robot
Copy link

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

query1	917	376	379	376
query2	6443	2433	2302	2302
query3	6635	208	214	208
query4	18811	17579	17335	17335
query5	3626	502	503	502
query6	277	163	162	162
query7	4602	315	295	295
query8	314	297	284	284
query9	8606	2390	2367	2367
query10	572	320	290	290
query11	10557	10069	10194	10069
query12	115	96	83	83
query13	1653	377	368	368
query14	10279	8091	7064	7064
query15	239	183	193	183
query16	7860	276	270	270
query17	1904	576	534	534
query18	2013	289	283	283
query19	213	164	157	157
query20	92	85	86	85
query21	216	135	131	131
query22	4277	4047	3870	3870
query23	33765	33799	33723	33723
query24	10671	2934	2960	2934
query25	606	436	395	395
query26	719	166	163	163
query27	2227	330	332	330
query28	5935	2163	2160	2160
query29	891	678	654	654
query30	265	164	166	164
query31	966	762	766	762
query32	95	55	57	55
query33	665	316	306	306
query34	918	506	515	506
query35	762	637	644	637
query36	1144	1001	973	973
query37	137	88	85	85
query38	2953	2880	2827	2827
query39	908	863	843	843
query40	215	137	135	135
query41	54	55	55	55
query42	122	190	102	102
query43	581	535	527	527
query44	1101	761	744	744
query45	204	170	159	159
query46	1101	727	700	700
query47	1866	1793	1751	1751
query48	392	314	297	297
query49	839	419	433	419
query50	795	410	400	400
query51	7014	6744	6821	6744
query52	107	97	91	91
query53	377	304	302	302
query54	873	465	456	456
query55	76	73	75	73
query56	297	269	269	269
query57	1126	1061	1050	1050
query58	252	259	253	253
query59	3482	3236	3235	3235
query60	312	284	298	284
query61	93	95	90	90
query62	596	449	451	449
query63	333	296	293	293
query64	8527	2280	1779	1779
query65	3165	3094	3135	3094
query66	704	325	338	325
query67	15778	14871	14941	14871
query68	8159	575	564	564
query69	747	500	336	336
query70	1251	1150	1072	1072
query71	484	293	279	279
query72	8847	5694	5163	5163
query73	1065	332	331	331
query74	5829	5436	5436	5436
query75	5051	2711	2719	2711
query76	4711	974	979	974
query77	778	313	319	313
query78	10678	9735	9781	9735
query79	7435	527	534	527
query80	1117	497	488	488
query81	540	227	220	220
query82	759	116	111	111
query83	333	175	171	171
query84	269	85	91	85
query85	1256	282	268	268
query86	406	290	329	290
query87	3268	3157	3128	3128
query88	4803	2457	2443	2443
query89	503	394	396	394
query90	1919	192	192	192
query91	131	101	103	101
query92	61	50	50	50
query93	5841	529	528	528
query94	1224	194	191	191
query95	423	327	330	327
query96	636	275	277	275
query97	3172	3058	3000	3000
query98	216	191	191	191
query99	1180	840	856	840
Total cold run time: 287322 ms
Total hot run time: 174416 ms

@doris-robot
Copy link

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

query1	0.04	0.03	0.04
query2	0.08	0.04	0.04
query3	0.23	0.05	0.05
query4	1.67	0.08	0.09
query5	0.50	0.49	0.49
query6	1.13	0.73	0.73
query7	0.02	0.02	0.02
query8	0.05	0.05	0.05
query9	0.55	0.47	0.48
query10	0.55	0.53	0.54
query11	0.15	0.12	0.11
query12	0.15	0.12	0.13
query13	0.60	0.58	0.58
query14	0.76	0.78	0.78
query15	0.86	0.82	0.82
query16	0.37	0.37	0.36
query17	1.03	0.99	0.96
query18	0.24	0.24	0.26
query19	1.87	1.74	1.78
query20	0.01	0.01	0.01
query21	15.44	0.75	0.66
query22	3.99	7.24	2.34
query23	18.32	1.40	1.27
query24	2.08	0.24	0.22
query25	0.15	0.09	0.09
query26	0.26	0.18	0.17
query27	0.08	0.08	0.07
query28	13.26	1.01	0.99
query29	12.60	3.25	3.24
query30	0.26	0.06	0.06
query31	2.85	0.39	0.38
query32	3.29	0.48	0.46
query33	2.86	2.93	2.89
query34	17.19	4.44	4.43
query35	4.48	4.48	4.48
query36	0.65	0.49	0.47
query37	0.18	0.16	0.15
query38	0.15	0.14	0.15
query39	0.04	0.04	0.04
query40	0.16	0.14	0.14
query41	0.09	0.04	0.06
query42	0.05	0.05	0.04
query43	0.05	0.04	0.03
Total cold run time: 109.34 s
Total hot run time: 31.01 s

@wuwenchi
Copy link
Contributor Author

wuwenchi commented Jul 3, 2024

run feut

@wuwenchi
Copy link
Contributor Author

wuwenchi commented Jul 5, 2024

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	18383	4595	4427	4427
q2	2787	198	196	196
q3	12002	1207	1163	1163
q4	10601	830	809	809
q5	8096	2701	2617	2617
q6	223	138	134	134
q7	946	603	598	598
q8	9237	2099	2071	2071
q9	9009	6493	6430	6430
q10	8875	3755	3666	3666
q11	448	241	242	241
q12	397	226	232	226
q13	18053	3006	3019	3006
q14	272	225	239	225
q15	540	500	493	493
q16	512	378	381	378
q17	976	659	660	659
q18	8113	7460	7436	7436
q19	7283	1596	1502	1502
q20	653	336	334	334
q21	5034	3124	3870	3124
q22	397	339	337	337
Total cold run time: 122837 ms
Total hot run time: 40072 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4397	4229	4208	4208
q2	379	257	270	257
q3	2963	2745	2714	2714
q4	1874	1632	1607	1607
q5	5278	5303	5282	5282
q6	218	128	130	128
q7	2099	1720	1730	1720
q8	3223	3329	3303	3303
q9	8315	8319	8302	8302
q10	3878	3671	3663	3663
q11	575	499	515	499
q12	790	610	612	610
q13	16641	3016	2986	2986
q14	285	253	270	253
q15	509	480	486	480
q16	475	413	427	413
q17	1775	1474	1474	1474
q18	7623	7429	7260	7260
q19	1697	1487	1402	1402
q20	1952	1771	1768	1768
q21	4799	4745	4835	4745
q22	623	551	549	549
Total cold run time: 70368 ms
Total hot run time: 53623 ms

@doris-robot
Copy link

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

query1	914	366	364	364
query2	6467	2369	2236	2236
query3	6642	220	219	219
query4	24842	17392	17146	17146
query5	4193	496	466	466
query6	295	166	161	161
query7	4608	298	295	295
query8	313	291	292	291
query9	8616	2347	2329	2329
query10	603	306	290	290
query11	11566	10012	9992	9992
query12	128	88	87	87
query13	1648	376	371	371
query14	10284	7681	7168	7168
query15	267	184	188	184
query16	7829	312	325	312
query17	1805	588	543	543
query18	1982	298	306	298
query19	207	151	158	151
query20	95	83	85	83
query21	212	139	130	130
query22	4170	4020	4040	4020
query23	33693	33068	33235	33068
query24	12031	2796	2870	2796
query25	691	447	372	372
query26	1781	155	150	150
query27	2991	314	318	314
query28	7613	2024	2003	2003
query29	1064	631	644	631
query30	284	150	146	146
query31	951	755	722	722
query32	94	51	54	51
query33	768	294	302	294
query34	947	487	494	487
query35	738	624	613	613
query36	1080	929	967	929
query37	278	76	76	76
query38	2850	2753	2733	2733
query39	854	799	804	799
query40	279	131	128	128
query41	55	54	51	51
query42	118	100	108	100
query43	579	537	538	537
query44	1235	744	737	737
query45	200	163	157	157
query46	1078	720	732	720
query47	1830	1745	1770	1745
query48	378	299	319	299
query49	1188	422	403	403
query50	766	397	401	397
query51	6877	6845	6758	6758
query52	112	96	96	96
query53	355	310	307	307
query54	1034	452	442	442
query55	77	77	76	76
query56	299	278	299	278
query57	1160	1084	1072	1072
query58	260	254	281	254
query59	3346	3156	3177	3156
query60	320	282	294	282
query61	98	96	96	96
query62	659	451	464	451
query63	323	292	291	291
query64	9865	2337	1790	1790
query65	3163	3128	3105	3105
query66	1390	348	331	331
query67	15501	14821	14875	14821
query68	7195	538	548	538
query69	618	521	348	348
query70	1229	1156	1132	1132
query71	511	282	283	282
query72	7293	5566	5736	5566
query73	824	329	322	322
query74	5991	5556	5489	5489
query75	4147	2632	2659	2632
query76	4572	994	888	888
query77	702	316	320	316
query78	11547	9312	8832	8832
query79	7061	517	525	517
query80	906	476	487	476
query81	565	225	221	221
query82	573	113	112	112
query83	206	176	177	176
query84	279	86	90	86
query85	709	322	304	304
query86	464	325	311	311
query87	3266	3058	3103	3058
query88	4760	2478	2533	2478
query89	482	385	381	381
query90	1859	196	194	194
query91	133	105	103	103
query92	65	50	50	50
query93	4183	502	502	502
query94	1062	208	210	208
query95	408	322	315	315
query96	608	269	267	267
query97	3225	2984	3008	2984
query98	219	204	195	195
query99	1251	838	830	830
Total cold run time: 295852 ms
Total hot run time: 172313 ms

@doris-robot
Copy link

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

query1	0.04	0.04	0.02
query2	0.07	0.04	0.04
query3	0.23	0.05	0.05
query4	1.68	0.06	0.06
query5	0.50	0.48	0.50
query6	1.14	0.73	0.71
query7	0.02	0.02	0.01
query8	0.05	0.04	0.05
query9	0.56	0.49	0.49
query10	0.55	0.53	0.55
query11	0.15	0.12	0.11
query12	0.15	0.13	0.12
query13	0.59	0.59	0.58
query14	0.77	0.79	0.77
query15	0.85	0.81	0.82
query16	0.36	0.37	0.37
query17	1.03	1.06	1.04
query18	0.22	0.25	0.25
query19	1.81	1.73	1.71
query20	0.02	0.01	0.01
query21	15.40	0.75	0.65
query22	4.14	7.06	2.04
query23	18.27	1.44	1.35
query24	2.07	0.22	0.21
query25	0.16	0.08	0.09
query26	0.29	0.20	0.20
query27	0.45	0.22	0.22
query28	13.36	1.01	0.98
query29	12.66	3.29	3.26
query30	0.25	0.06	0.05
query31	2.87	0.39	0.39
query32	3.29	0.47	0.46
query33	2.90	2.93	2.95
query34	17.16	4.37	4.30
query35	4.41	4.43	4.46
query36	0.65	0.47	0.46
query37	0.19	0.15	0.15
query38	0.16	0.14	0.15
query39	0.04	0.04	0.03
query40	0.15	0.12	0.12
query41	0.09	0.04	0.04
query42	0.05	0.05	0.04
query43	0.05	0.04	0.04
Total cold run time: 109.85 s
Total hot run time: 30.77 s

Copy link
Contributor

@morningman morningman 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 Jul 6, 2024
Copy link
Contributor

github-actions bot commented Jul 6, 2024

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

Copy link
Contributor

github-actions bot commented Jul 6, 2024

PR approved by anyone and no changes requested.

Copy link
Contributor

@morningman morningman left a comment

Choose a reason for hiding this comment

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

LGTM

@morningman
Copy link
Contributor

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17627	4323	4247	4247
q2	2021	197	186	186
q3	10456	1184	1103	1103
q4	10187	768	769	768
q5	7486	2704	2597	2597
q6	215	137	137	137
q7	947	591	587	587
q8	9228	2027	2066	2027
q9	8730	6498	6465	6465
q10	8936	3714	3731	3714
q11	462	239	239	239
q12	485	227	230	227
q13	17763	2989	2996	2989
q14	259	232	228	228
q15	517	492	480	480
q16	510	373	375	373
q17	962	652	754	652
q18	7895	7449	7301	7301
q19	3614	1487	1545	1487
q20	679	322	333	322
q21	4827	3298	3910	3298
q22	398	340	339	339
Total cold run time: 114204 ms
Total hot run time: 39766 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4382	4266	4235	4235
q2	375	263	277	263
q3	2970	2735	2851	2735
q4	1919	1621	1726	1621
q5	5523	5596	5437	5437
q6	219	132	134	132
q7	2219	1831	1831	1831
q8	3248	3404	3375	3375
q9	8624	8636	8686	8636
q10	4149	3883	3835	3835
q11	598	490	487	487
q12	786	623	604	604
q13	17187	3190	3134	3134
q14	295	285	285	285
q15	547	493	482	482
q16	501	425	440	425
q17	1826	1489	1495	1489
q18	8077	8106	7850	7850
q19	1847	1532	1524	1524
q20	2391	1866	1947	1866
q21	5104	4795	5045	4795
q22	620	577	557	557
Total cold run time: 73407 ms
Total hot run time: 55598 ms

@doris-robot
Copy link

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

query1	918	363	361	361
query2	6437	2465	2332	2332
query3	6652	208	231	208
query4	25706	17328	17293	17293
query5	3635	481	481	481
query6	297	169	162	162
query7	4575	279	291	279
query8	312	304	291	291
query9	8553	2387	2367	2367
query10	560	289	274	274
query11	10870	10108	10104	10104
query12	114	84	80	80
query13	1646	358	361	358
query14	10180	7473	7667	7473
query15	229	192	189	189
query16	7344	319	295	295
query17	1376	559	537	537
query18	1947	290	286	286
query19	199	160	149	149
query20	90	83	81	81
query21	213	131	130	130
query22	4256	4054	4111	4054
query23	34090	33644	33706	33644
query24	9097	2801	2909	2801
query25	640	380	428	380
query26	699	144	141	141
query27	2255	275	270	270
query28	5895	2108	2110	2108
query29	888	638	650	638
query30	257	154	152	152
query31	1008	777	757	757
query32	101	65	56	56
query33	627	294	296	294
query34	894	499	497	497
query35	676	595	585	585
query36	1122	993	995	993
query37	134	77	82	77
query38	3013	2850	2876	2850
query39	876	841	841	841
query40	206	125	119	119
query41	52	51	50	50
query42	115	97	100	97
query43	584	556	536	536
query44	1059	714	717	714
query45	194	160	157	157
query46	1067	726	722	722
query47	1875	1794	1783	1783
query48	366	287	295	287
query49	824	401	412	401
query50	768	389	386	386
query51	6895	6860	6709	6709
query52	102	90	92	90
query53	359	294	282	282
query54	729	432	434	432
query55	74	76	74	74
query56	311	267	284	267
query57	1165	1040	1061	1040
query58	234	244	249	244
query59	3649	3897	3438	3438
query60	314	285	269	269
query61	97	95	95	95
query62	779	628	640	628
query63	318	285	288	285
query64	9073	2160	1687	1687
query65	3135	3100	3055	3055
query66	734	326	325	325
query67	15434	14993	14794	14794
query68	4907	527	527	527
query69	693	431	331	331
query70	1157	1148	1065	1065
query71	421	279	267	267
query72	8201	5869	5528	5528
query73	765	316	315	315
query74	6074	5731	5527	5527
query75	3548	2653	2706	2653
query76	2994	961	864	864
query77	633	294	297	294
query78	9420	9222	10446	9222
query79	2012	527	505	505
query80	1948	478	476	476
query81	613	221	213	213
query82	584	135	131	131
query83	293	165	165	165
query84	264	88	86	86
query85	1389	379	338	338
query86	474	319	302	302
query87	3307	3177	3111	3111
query88	3520	2316	2343	2316
query89	476	386	372	372
query90	1788	193	189	189
query91	129	105	103	103
query92	63	48	48	48
query93	1037	492	492	492
query94	1235	213	203	203
query95	403	303	304	303
query96	572	265	260	260
query97	3219	3012	3031	3012
query98	222	200	195	195
query99	1533	1242	1266	1242
Total cold run time: 272787 ms
Total hot run time: 174489 ms

@doris-robot
Copy link

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

query1	0.04	0.03	0.03
query2	0.08	0.04	0.04
query3	0.22	0.04	0.04
query4	1.68	0.06	0.07
query5	0.49	0.50	0.48
query6	1.14	0.72	0.73
query7	0.01	0.01	0.02
query8	0.05	0.04	0.04
query9	0.54	0.48	0.49
query10	0.54	0.55	0.55
query11	0.15	0.11	0.11
query12	0.15	0.11	0.12
query13	0.59	0.59	0.58
query14	0.76	0.78	0.76
query15	0.84	0.82	0.81
query16	0.37	0.36	0.37
query17	1.03	1.01	0.99
query18	0.22	0.21	0.21
query19	1.75	1.65	1.68
query20	0.01	0.01	0.01
query21	15.39	0.74	0.64
query22	3.56	8.06	1.86
query23	18.29	1.42	1.24
query24	2.09	0.22	0.24
query25	0.16	0.09	0.09
query26	0.30	0.21	0.20
query27	0.45	0.23	0.22
query28	13.20	1.00	1.00
query29	12.61	3.26	3.24
query30	0.26	0.06	0.05
query31	2.88	0.38	0.39
query32	3.29	0.48	0.46
query33	2.87	2.91	2.95
query34	17.08	4.36	4.37
query35	4.41	4.40	4.42
query36	0.66	0.45	0.48
query37	0.17	0.15	0.14
query38	0.15	0.14	0.14
query39	0.04	0.04	0.04
query40	0.15	0.12	0.12
query41	0.09	0.05	0.05
query42	0.05	0.04	0.04
query43	0.04	0.04	0.04
Total cold run time: 108.85 s
Total hot run time: 30.33 s

@morningman morningman merged commit 49180fe into apache:master Jul 10, 2024
27 of 29 checks passed
yiguolei pushed a commit that referenced this pull request Jul 16, 2024
seawinde pushed a commit to seawinde/doris that referenced this pull request Jul 17, 2024
…pache#37046)

## Proposed changes

1. When the count can be pushed down, the specific data will be
displayed later.
```

|      pushdown agg=COUNT (1)     |
```

2. Add a session variable `enable_count_push_down_for_external_table `
to control whether a pushdown count operation is required. Default is
`true`;
```
mysql> show variables like 'enable_count_push_down_for_external_table';
+-------------------------------------------+-------+---------------+---------+
| Variable_name                             | Value | Default_Value | Changed |
+-------------------------------------------+-------+---------------+---------+
| enable_count_push_down_for_external_table | false | true          | 1       |
+-------------------------------------------+-------+---------------+---------+
1 row in set (0.02 sec)
```
dataroaring pushed a commit that referenced this pull request Jul 17, 2024
…37046)

## Proposed changes

1. When the count can be pushed down, the specific data will be
displayed later.
```

|      pushdown agg=COUNT (1)     |
```

2. Add a session variable `enable_count_push_down_for_external_table `
to control whether a pushdown count operation is required. Default is
`true`;
```
mysql> show variables like 'enable_count_push_down_for_external_table';
+-------------------------------------------+-------+---------------+---------+
| Variable_name                             | Value | Default_Value | Changed |
+-------------------------------------------+-------+---------------+---------+
| enable_count_push_down_for_external_table | false | true          | 1       |
+-------------------------------------------+-------+---------------+---------+
1 row in set (0.02 sec)
```
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.5-merged dev/3.0.1-merged reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants