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

[Enhancement](Nereids) Nereids supports group_commit with insert #32523

Merged
merged 52 commits into from
Jun 6, 2024

Conversation

zzzzzzzs
Copy link
Contributor

Proposed changes

Nereids supports group_commit with insert

Further comments

If this is a relatively large or complex change, kick off the discussion at [email protected] by explaining why you chose the solution you did and what alternatives you considered, etc...

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

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17782	4525	4248	4248
q2	2475	158	150	150
q3	11153	1137	1221	1137
q4	10840	775	830	775
q5	7541	3061	3023	3023
q6	204	128	125	125
q7	1078	629	587	587
q8	10027	2106	2023	2023
q9	7253	6600	6572	6572
q10	8932	3375	3504	3375
q11	438	226	217	217
q12	368	191	192	191
q13	17849	2846	2851	2846
q14	242	207	203	203
q15	496	464	452	452
q16	452	365	348	348
q17	965	514	643	514
q18	7292	6457	6437	6437
q19	1586	1485	1421	1421
q20	536	259	243	243
q21	3546	2976	2938	2938
q22	347	325	310	310
Total cold run time: 111402 ms
Total hot run time: 38135 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4161	4105	4112	4105
q2	323	227	223	223
q3	3027	2857	2867	2857
q4	1848	1544	1581	1544
q5	5223	5297	5263	5263
q6	194	117	119	117
q7	2271	1881	1870	1870
q8	3164	3286	3316	3286
q9	8579	8606	8648	8606
q10	3719	3705	3659	3659
q11	542	442	440	440
q12	741	549	536	536
q13	16918	2894	2871	2871
q14	274	247	248	247
q15	500	440	448	440
q16	458	415	410	410
q17	1723	1497	1479	1479
q18	7449	7177	7110	7110
q19	1628	1570	1528	1528
q20	1906	1701	1706	1701
q21	4845	4910	4676	4676
q22	532	474	464	464
Total cold run time: 70025 ms
Total hot run time: 53432 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 180904 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 9dee599ea49b9e0660386e04c501915ac8a8f40d, data reload: false

query1	916	368	345	345
query2	7478	2110	2041	2041
query3	6705	211	214	211
query4	31311	20685	20731	20685
query5	4395	411	397	397
query6	265	183	170	170
query7	4613	290	281	281
query8	228	158	166	158
query9	10216	2276	2252	2252
query10	457	257	261	257
query11	17236	14297	14231	14231
query12	141	92	86	86
query13	1645	422	417	417
query14	11596	10359	10356	10356
query15	258	206	196	196
query16	8147	249	243	243
query17	1980	556	521	521
query18	2073	284	266	266
query19	264	149	147	147
query20	87	87	83	83
query21	197	125	132	125
query22	4662	4473	4408	4408
query23	31851	30938	31222	30938
query24	10805	2803	2837	2803
query25	633	378	382	378
query26	1217	150	149	149
query27	3105	352	353	352
query28	8169	1887	1904	1887
query29	869	639	618	618
query30	299	146	141	141
query31	945	752	725	725
query32	95	64	55	55
query33	762	255	337	255
query34	987	472	465	465
query35	820	616	603	603
query36	1015	866	868	866
query37	127	76	76	76
query38	3566	3450	3443	3443
query39	1443	1349	1401	1349
query40	210	117	115	115
query41	50	46	48	46
query42	103	96	99	96
query43	508	493	490	490
query44	1092	720	698	698
query45	271	253	261	253
query46	1073	671	672	671
query47	1672	1588	1601	1588
query48	431	360	362	360
query49	1128	353	335	335
query50	756	367	370	367
query51	6617	6605	6614	6605
query52	111	88	90	88
query53	345	271	274	271
query54	300	243	252	243
query55	86	80	80	80
query56	263	242	229	229
query57	1058	1034	1035	1034
query58	234	204	205	204
query59	2965	2727	2894	2727
query60	284	251	265	251
query61	116	112	112	112
query62	624	404	388	388
query63	301	272	271	271
query64	5681	3796	3959	3796
query65	3092	3016	3002	3002
query66	1462	357	355	355
query67	15187	14392	14762	14392
query68	6931	512	531	512
query69	625	388	376	376
query70	1227	1193	1105	1105
query71	522	282	275	275
query72	6787	2650	2493	2493
query73	741	320	309	309
query74	7065	6504	6582	6504
query75	4121	2877	2901	2877
query76	4923	932	974	932
query77	646	261	258	258
query78	10397	9668	9567	9567
query79	11053	523	518	518
query80	1817	388	369	369
query81	539	211	205	205
query82	887	201	206	201
query83	213	158	163	158
query84	290	83	76	76
query85	1520	324	311	311
query86	474	308	333	308
query87	3804	3519	3499	3499
query88	5475	2271	2275	2271
query89	511	355	358	355
query90	1986	178	169	169
query91	161	127	152	127
query92	58	46	50	46
query93	7500	494	476	476
query94	1231	173	172	172
query95	420	327	325	325
query96	606	277	264	264
query97	3064	2849	2854	2849
query98	233	211	203	203
query99	1256	770	748	748
Total cold run time: 314681 ms
Total hot run time: 180904 ms

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17683	4458	4091	4091
q2	2023	151	148	148
q3	10605	1120	1174	1120
q4	10223	819	784	784
q5	7454	2946	2901	2901
q6	200	124	127	124
q7	1022	569	555	555
q8	9326	2024	1966	1966
q9	7324	6484	6420	6420
q10	8415	3321	3490	3321
q11	429	217	213	213
q12	390	198	201	198
q13	17792	2852	2851	2851
q14	243	202	199	199
q15	530	468	442	442
q16	467	357	358	357
q17	947	633	550	550
q18	7117	6539	6407	6407
q19	2404	1386	1471	1386
q20	541	244	244	244
q21	3531	2918	2840	2840
q22	324	302	301	301
Total cold run time: 108990 ms
Total hot run time: 37418 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4168	4109	4053	4053
q2	323	226	229	226
q3	2945	2855	2820	2820
q4	1809	1558	1543	1543
q5	5236	5225	5218	5218
q6	199	117	119	117
q7	2232	1838	1803	1803
q8	3140	3292	3248	3248
q9	8546	8582	8567	8567
q10	3677	3640	3626	3626
q11	551	452	445	445
q12	704	539	542	539
q13	16908	2854	2838	2838
q14	277	237	239	237
q15	494	457	459	457
q16	456	423	411	411
q17	1729	1498	1488	1488
q18	7392	7222	7036	7036
q19	1632	1590	1500	1500
q20	1883	1696	1675	1675
q21	4922	4647	4795	4647
q22	517	453	444	444
Total cold run time: 69740 ms
Total hot run time: 52938 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 181604 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 9dee599ea49b9e0660386e04c501915ac8a8f40d, data reload: false

query1	940	360	343	343
query2	7399	2061	2016	2016
query3	6718	208	207	207
query4	31141	20729	20869	20729
query5	4326	406	414	406
query6	265	175	171	171
query7	4612	292	296	292
query8	247	164	172	164
query9	9492	2285	2300	2285
query10	462	232	252	232
query11	17091	14151	14125	14125
query12	140	87	83	83
query13	1630	409	407	407
query14	11916	10945	10943	10943
query15	307	204	199	199
query16	8203	258	260	258
query17	2038	568	548	548
query18	2019	283	277	277
query19	354	161	160	160
query20	92	88	83	83
query21	201	128	126	126
query22	4665	4528	4490	4490
query23	31874	31110	31012	31012
query24	10622	2795	2739	2739
query25	599	378	387	378
query26	827	152	155	152
query27	2297	352	354	352
query28	6442	1901	1901	1901
query29	880	632	649	632
query30	303	147	146	146
query31	956	740	717	717
query32	95	59	58	58
query33	780	254	256	254
query34	1061	470	480	470
query35	825	606	597	597
query36	1017	873	859	859
query37	112	78	75	75
query38	3531	3410	3430	3410
query39	1405	1354	1379	1354
query40	206	127	111	111
query41	50	47	47	47
query42	106	95	95	95
query43	486	446	448	446
query44	1159	744	717	717
query45	276	258	252	252
query46	1085	672	667	667
query47	1661	1591	1586	1586
query48	453	358	386	358
query49	1074	356	341	341
query50	765	369	364	364
query51	6666	6673	6639	6639
query52	112	85	94	85
query53	343	279	282	279
query54	326	257	245	245
query55	88	81	75	75
query56	246	235	234	234
query57	1071	1021	1017	1017
query58	231	220	207	207
query59	2875	2743	2602	2602
query60	280	261	264	261
query61	115	112	111	111
query62	607	418	401	401
query63	311	283	275	275
query64	5439	3969	3846	3846
query65	3015	3016	2986	2986
query66	866	344	329	329
query67	15160	14566	14718	14566
query68	8958	521	541	521
query69	624	369	372	369
query70	1272	1142	1176	1142
query71	516	278	278	278
query72	6339	2668	2506	2506
query73	1385	311	323	311
query74	8383	6655	6615	6615
query75	4559	2783	2770	2770
query76	5487	913	889	889
query77	666	254	263	254
query78	10399	9686	9530	9530
query79	12642	503	509	503
query80	1888	376	387	376
query81	525	216	206	206
query82	812	207	196	196
query83	213	141	139	139
query84	281	79	76	76
query85	1287	325	310	310
query86	412	278	265	265
query87	3853	3526	3570	3526
query88	5236	2291	2307	2291
query89	515	367	356	356
query90	1981	170	170	170
query91	169	133	134	133
query92	68	49	46	46
query93	7087	501	478	478
query94	1221	176	174	174
query95	430	317	320	317
query96	615	268	269	268
query97	3059	2864	2848	2848
query98	220	213	208	208
query99	1073	741	742	741
Total cold run time: 315131 ms
Total hot run time: 181604 ms

@doris-robot
Copy link

Load test result on machine: 'aliyun_ecs.c7a.8xlarge_32C64G'

Load test result on commit 9dee599ea49b9e0660386e04c501915ac8a8f40d with default session variables
Stream load json:         19 seconds loaded 2358488459 Bytes, about 118 MB/s
Stream load orc:          59 seconds loaded 1101869774 Bytes, about 17 MB/s
Stream load parquet:      31 seconds loaded 861443392 Bytes, about 26 MB/s
Insert into select:       22.6 seconds inserted 10000000 Rows, about 442K ops/s

@zzzzzzzs
Copy link
Contributor Author

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17632	4628	4173	4173
q2	2110	158	151	151
q3	11183	1272	1270	1270
q4	10516	747	779	747
q5	7852	3143	3098	3098
q6	214	125	123	123
q7	1043	611	582	582
q8	9468	2020	2038	2020
q9	7431	6789	6715	6715
q10	9111	3475	3589	3475
q11	430	234	217	217
q12	366	203	200	200
q13	17794	2863	2908	2863
q14	246	204	208	204
q15	513	459	446	446
q16	497	369	372	369
q17	967	570	532	532
q18	7212	6496	6636	6496
q19	2721	1378	1422	1378
q20	557	256	256	256
q21	3553	2861	2986	2861
q22	347	308	310	308
Total cold run time: 111763 ms
Total hot run time: 38484 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4200	4097	4109	4097
q2	334	237	235	235
q3	2998	2843	2831	2831
q4	1894	1567	1537	1537
q5	5326	5385	5335	5335
q6	198	116	115	115
q7	2217	1856	1875	1856
q8	3162	3314	3297	3297
q9	8748	8895	8798	8798
q10	3834	3854	3806	3806
q11	542	443	448	443
q12	719	567	536	536
q13	16900	2880	2880	2880
q14	284	252	254	252
q15	495	452	457	452
q16	467	409	422	409
q17	1750	1515	1500	1500
q18	7533	7243	7049	7049
q19	1606	1504	1501	1501
q20	1919	1734	1726	1726
q21	4881	4768	4780	4768
q22	535	447	443	443
Total cold run time: 70542 ms
Total hot run time: 53866 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 186787 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 112a3c4b2e82c24caaa5b2c611e11bd65f1f7985, data reload: false

query1	933	370	353	353
query2	7379	2057	1982	1982
query3	6718	217	211	211
query4	32029	21462	21455	21455
query5	4371	412	495	412
query6	270	186	170	170
query7	4632	290	305	290
query8	227	170	177	170
query9	8892	2316	2273	2273
query10	564	246	246	246
query11	15199	14518	14524	14518
query12	139	94	84	84
query13	1622	405	401	401
query14	12552	11741	11207	11207
query15	340	217	185	185
query16	8262	258	261	258
query17	2066	600	555	555
query18	2119	295	280	280
query19	349	159	166	159
query20	93	88	88	88
query21	201	129	125	125
query22	4973	4851	4739	4739
query23	33675	32667	32536	32536
query24	10559	2881	2855	2855
query25	617	400	401	400
query26	1491	165	159	159
query27	2956	365	358	358
query28	7712	1873	1836	1836
query29	949	674	635	635
query30	303	157	148	148
query31	977	752	742	742
query32	94	56	54	54
query33	774	257	249	249
query34	1068	487	492	487
query35	820	610	617	610
query36	1015	904	915	904
query37	119	78	81	78
query38	3570	3472	3454	3454
query39	1487	1458	1439	1439
query40	216	118	111	111
query41	50	48	47	47
query42	110	98	99	98
query43	485	444	448	444
query44	1201	735	734	734
query45	271	226	260	226
query46	1115	711	722	711
query47	1920	1836	1848	1836
query48	450	349	349	349
query49	1132	351	338	338
query50	766	383	385	383
query51	6760	6524	6599	6524
query52	105	92	91	91
query53	344	280	279	279
query54	308	250	242	242
query55	89	81	79	79
query56	251	233	244	233
query57	1198	1131	1139	1131
query58	240	207	205	205
query59	2802	2560	2599	2560
query60	280	247	261	247
query61	114	125	115	115
query62	673	455	448	448
query63	310	286	293	286
query64	5994	4046	4162	4046
query65	3098	3031	3043	3031
query66	1436	363	383	363
query67	15504	14688	14665	14665
query68	9076	536	542	536
query69	683	373	371	371
query70	1383	1183	1147	1147
query71	515	287	270	270
query72	6963	2708	2554	2554
query73	1591	325	314	314
query74	8317	6609	6701	6609
query75	4607	2917	2921	2917
query76	5900	907	957	907
query77	657	263	268	263
query78	10865	10253	10080	10080
query79	12536	529	525	525
query80	1778	401	385	385
query81	517	213	214	213
query82	382	200	205	200
query83	214	155	152	152
query84	285	78	83	78
query85	1128	314	309	309
query86	349	318	306	306
query87	3766	3572	3518	3518
query88	5087	2276	2279	2276
query89	487	358	369	358
query90	2024	176	173	173
query91	167	137	135	135
query92	64	46	47	46
query93	7096	506	477	477
query94	1329	175	173	173
query95	436	334	322	322
query96	607	264	276	264
query97	3076	2897	2900	2897
query98	240	207	205	205
query99	1171	880	899	880
Total cold run time: 322634 ms
Total hot run time: 186787 ms

@doris-robot
Copy link

Load test result on machine: 'aliyun_ecs.c7a.8xlarge_32C64G'

Load test result on commit 112a3c4b2e82c24caaa5b2c611e11bd65f1f7985 with default session variables
Stream load json:         19 seconds loaded 2358488459 Bytes, about 118 MB/s
Stream load orc:          59 seconds loaded 1101869774 Bytes, about 17 MB/s
Stream load parquet:      33 seconds loaded 861443392 Bytes, about 24 MB/s
Insert into select:       19.8 seconds inserted 10000000 Rows, about 505K ops/s

@zzzzzzzs
Copy link
Contributor Author

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17754	4587	4194	4194
q2	3109	167	166	166
q3	11871	1139	1173	1139
q4	10560	756	830	756
q5	8041	3084	3075	3075
q6	209	130	132	130
q7	1043	604	621	604
q8	9422	2039	2004	2004
q9	7355	6666	6629	6629
q10	8383	3461	3585	3461
q11	455	227	215	215
q12	370	199	196	196
q13	17793	2837	2853	2837
q14	239	201	219	201
q15	498	473	461	461
q16	500	371	369	369
q17	951	608	556	556
q18	7352	6452	6485	6452
q19	1589	1421	1460	1421
q20	543	269	271	269
q21	3556	2938	2929	2929
q22	357	307	291	291
Total cold run time: 111950 ms
Total hot run time: 38355 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4142	4076	4062	4062
q2	328	230	229	229
q3	3008	2840	2821	2821
q4	1862	1543	1527	1527
q5	5295	5367	5367	5367
q6	199	117	118	117
q7	2262	1883	1803	1803
q8	3177	3331	3317	3317
q9	8739	8759	8773	8759
q10	3810	3759	3788	3759
q11	545	446	444	444
q12	709	548	551	548
q13	16891	2842	2854	2842
q14	292	243	244	243
q15	493	452	458	452
q16	477	421	447	421
q17	1734	1540	1479	1479
q18	7579	7207	7170	7170
q19	1620	1540	1510	1510
q20	1897	1747	1711	1711
q21	4890	4554	4673	4554
q22	529	447	447	447
Total cold run time: 70478 ms
Total hot run time: 53582 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 186015 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 2a6b1b0be4ba46e5391edb471542bbe5358b7ed8, data reload: false

query1	949	367	350	350
query2	7425	1998	1929	1929
query3	6718	203	214	203
query4	31852	21183	21272	21183
query5	4340	406	397	397
query6	270	191	175	175
query7	4629	289	288	288
query8	227	163	171	163
query9	9113	2302	2294	2294
query10	557	239	246	239
query11	17398	14341	14352	14341
query12	132	88	90	88
query13	1632	407	407	407
query14	11367	11319	10672	10672
query15	272	203	198	198
query16	8131	256	269	256
query17	1936	580	555	555
query18	2087	288	277	277
query19	249	162	159	159
query20	95	91	87	87
query21	200	129	124	124
query22	5056	4814	4871	4814
query23	33380	32955	32710	32710
query24	10838	2857	2866	2857
query25	610	395	400	395
query26	1216	155	155	155
query27	2982	353	348	348
query28	7595	1881	1822	1822
query29	896	655	643	643
query30	297	150	149	149
query31	983	730	729	729
query32	96	61	56	56
query33	764	252	302	252
query34	1049	473	475	473
query35	830	605	605	605
query36	1044	892	895	892
query37	128	75	78	75
query38	3522	3472	3408	3408
query39	1501	1452	1429	1429
query40	215	116	113	113
query41	51	47	47	47
query42	100	95	95	95
query43	481	436	448	436
query44	1197	714	722	714
query45	295	265	272	265
query46	1115	698	698	698
query47	1903	1853	1838	1838
query48	459	351	349	349
query49	1146	338	356	338
query50	759	364	369	364
query51	6685	6617	6678	6617
query52	110	89	92	89
query53	349	280	280	280
query54	328	241	237	237
query55	87	84	88	84
query56	270	234	228	228
query57	1204	1130	1138	1130
query58	232	202	210	202
query59	2765	2587	2687	2587
query60	274	256	258	256
query61	117	114	114	114
query62	671	465	459	459
query63	324	280	276	276
query64	5867	4134	4000	4000
query65	3074	3013	2992	2992
query66	930	354	358	354
query67	15428	14945	15004	14945
query68	8993	520	548	520
query69	662	373	375	373
query70	1321	1181	1160	1160
query71	518	281	286	281
query72	6933	2713	2545	2545
query73	1641	309	314	309
query74	7279	6638	6702	6638
query75	4346	2810	2843	2810
query76	5557	954	889	889
query77	655	251	253	251
query78	10852	10114	10140	10114
query79	10714	521	509	509
query80	1335	374	366	366
query81	515	209	214	209
query82	359	209	199	199
query83	216	147	145	145
query84	284	80	75	75
query85	1100	319	317	317
query86	359	289	312	289
query87	3695	3518	3547	3518
query88	5170	2272	2267	2267
query89	485	364	369	364
query90	2047	175	172	172
query91	163	138	136	136
query92	57	48	47	47
query93	5969	493	477	477
query94	1333	172	179	172
query95	434	332	320	320
query96	605	268	258	258
query97	3042	2872	2882	2872
query98	235	221	202	202
query99	1098	907	919	907
Total cold run time: 316774 ms
Total hot run time: 186015 ms

@doris-robot
Copy link

Load test result on machine: 'aliyun_ecs.c7a.8xlarge_32C64G'

Load test result on commit 2a6b1b0be4ba46e5391edb471542bbe5358b7ed8 with default session variables
Stream load json:         18 seconds loaded 2358488459 Bytes, about 124 MB/s
Stream load orc:          59 seconds loaded 1101869774 Bytes, about 17 MB/s
Stream load parquet:      31 seconds loaded 861443392 Bytes, about 26 MB/s
Insert into select:       21.7 seconds inserted 10000000 Rows, about 460K ops/s

@zzzzzzzs
Copy link
Contributor Author

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	18373	4599	4236	4236
q2	2454	167	160	160
q3	11308	1116	1189	1116
q4	10841	810	783	783
q5	7704	3055	3082	3055
q6	215	131	128	128
q7	1058	610	618	610
q8	9693	2093	2002	2002
q9	7405	6805	6696	6696
q10	8456	3466	3560	3466
q11	426	221	216	216
q12	380	208	200	200
q13	17815	2867	2826	2826
q14	249	217	205	205
q15	509	464	452	452
q16	502	371	375	371
q17	966	655	559	559
q18	7202	6488	6477	6477
q19	1633	1407	1411	1407
q20	559	262	260	260
q21	3583	2902	3052	2902
q22	357	302	301	301
Total cold run time: 111688 ms
Total hot run time: 38428 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4156	4103	4066	4066
q2	330	234	242	234
q3	2970	2845	2957	2845
q4	1862	1563	1582	1563
q5	5285	5344	5332	5332
q6	194	119	120	119
q7	2223	1855	1879	1855
q8	3174	3315	3317	3315
q9	8685	8645	8683	8645
q10	3772	3805	3783	3783
q11	556	435	455	435
q12	711	565	552	552
q13	16918	2861	2844	2844
q14	275	249	243	243
q15	486	458	458	458
q16	467	424	403	403
q17	1715	1514	1469	1469
q18	7518	7281	7039	7039
q19	1619	1505	1516	1505
q20	1912	1726	1714	1714
q21	4804	4753	4752	4752
q22	550	455	444	444
Total cold run time: 70182 ms
Total hot run time: 53615 ms

@doris-robot
Copy link

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

query1	923	378	345	345
query2	7366	2006	1932	1932
query3	6712	207	211	207
query4	31641	21250	21186	21186
query5	4335	501	415	415
query6	264	173	168	168
query7	4628	291	290	290
query8	220	167	196	167
query9	9246	2266	2247	2247
query10	561	247	267	247
query11	14852	14315	14482	14315
query12	136	95	85	85
query13	1651	411	414	411
query14	12851	10705	10948	10705
query15	264	204	196	196
query16	8000	260	261	260
query17	1956	592	554	554
query18	1733	295	263	263
query19	258	152	150	150
query20	93	91	85	85
query21	201	123	126	123
query22	5166	4912	4953	4912
query23	33567	32960	32872	32872
query24	10538	2854	2848	2848
query25	597	360	357	357
query26	1224	150	149	149
query27	2699	343	346	343
query28	7355	1882	1856	1856
query29	881	623	610	610
query30	295	148	162	148
query31	976	754	737	737
query32	95	58	54	54
query33	762	260	340	260
query34	983	495	489	489
query35	832	609	604	604
query36	1046	872	870	870
query37	127	79	78	78
query38	3585	3394	3439	3394
query39	1487	1446	1411	1411
query40	211	115	114	114
query41	50	47	49	47
query42	106	101	96	96
query43	472	444	451	444
query44	1120	725	718	718
query45	280	263	262	262
query46	1118	699	694	694
query47	1946	1848	1905	1848
query48	440	355	364	355
query49	1128	348	347	347
query50	774	378	386	378
query51	6769	6654	6701	6654
query52	111	90	90	90
query53	345	280	274	274
query54	311	242	244	242
query55	84	81	83	81
query56	250	306	229	229
query57	1230	1178	1163	1163
query58	245	208	218	208
query59	2900	2406	2640	2406
query60	265	255	248	248
query61	114	114	112	112
query62	659	441	449	441
query63	303	278	273	273
query64	5844	4178	4104	4104
query65	3082	3002	3015	3002
query66	875	385	388	385
query67	15283	14886	14687	14687
query68	7440	524	534	524
query69	633	383	387	383
query70	1241	1133	1111	1111
query71	525	289	298	289
query72	6955	2717	2506	2506
query73	719	310	316	310
query74	8497	6723	6681	6681
query75	4249	2768	2831	2768
query76	5081	929	977	929
query77	658	260	254	254
query78	10898	10181	10073	10073
query79	8506	513	530	513
query80	1586	375	376	375
query81	544	223	215	215
query82	903	196	207	196
query83	221	145	138	138
query84	284	76	76	76
query85	1519	321	318	318
query86	470	314	309	309
query87	3688	3495	3513	3495
query88	4981	2281	2275	2275
query89	510	366	372	366
query90	1970	178	179	178
query91	172	132	158	132
query92	57	46	46	46
query93	6668	499	486	486
query94	1137	176	174	174
query95	423	328	319	319
query96	600	273	277	273
query97	3090	2896	2859	2859
query98	224	219	206	206
query99	1217	921	955	921
Total cold run time: 312087 ms
Total hot run time: 185943 ms

@doris-robot
Copy link

Load test result on machine: 'aliyun_ecs.c7a.8xlarge_32C64G'

Load test result on commit c8189e3b6da682ed661dd42886c6183d7884cc30 with default session variables
Stream load json:         19 seconds loaded 2358488459 Bytes, about 118 MB/s
Stream load orc:          59 seconds loaded 1101869774 Bytes, about 17 MB/s
Stream load parquet:      33 seconds loaded 861443392 Bytes, about 24 MB/s
Insert into select:       21.2 seconds inserted 10000000 Rows, about 471K ops/s

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17648	4297	4103	4103
q2	2118	162	152	152
q3	10580	1137	1178	1137
q4	10242	745	747	745
q5	7451	3012	2941	2941
q6	199	121	122	121
q7	1043	582	564	564
q8	9324	1983	1970	1970
q9	7414	6564	6570	6564
q10	8456	3469	3581	3469
q11	429	223	214	214
q12	442	200	197	197
q13	17802	2807	2866	2807
q14	231	197	202	197
q15	504	464	464	464
q16	508	370	372	370
q17	938	518	601	518
q18	7086	6508	6406	6406
q19	3949	1404	1450	1404
q20	544	262	263	262
q21	3576	2847	2832	2832
q22	347	305	299	299
Total cold run time: 110831 ms
Total hot run time: 37736 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4162	4023	4077	4023
q2	329	231	226	226
q3	2972	2834	2804	2804
q4	1810	1553	1569	1553
q5	5270	5314	5300	5300
q6	189	115	116	115
q7	2204	1792	1830	1792
q8	3136	3281	3290	3281
q9	8636	8656	8632	8632
q10	3752	3771	3769	3769
q11	545	443	431	431
q12	713	511	550	511
q13	16922	2818	2853	2818
q14	274	244	239	239
q15	492	455	446	446
q16	465	414	402	402
q17	1722	1488	1476	1476
q18	7450	7234	7119	7119
q19	1608	1506	1530	1506
q20	1894	1716	1688	1688
q21	4792	4648	4700	4648
q22	508	425	430	425
Total cold run time: 69845 ms
Total hot run time: 53204 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 184702 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 2627ca8b5c9bfe7af007d2255a092179eb8689a6, data reload: false

query1	916	365	359	359
query2	6532	1962	1769	1769
query3	6711	206	214	206
query4	31887	21204	21227	21204
query5	4336	386	387	386
query6	263	175	171	171
query7	4640	281	279	279
query8	233	175	173	173
query9	9176	2256	2251	2251
query10	564	243	257	243
query11	14675	14199	14239	14199
query12	126	93	85	85
query13	1616	416	392	392
query14	13783	10808	11637	10808
query15	267	201	188	188
query16	8169	258	267	258
query17	1952	586	555	555
query18	2104	295	282	282
query19	283	162	157	157
query20	94	89	87	87
query21	206	137	126	126
query22	4961	4801	4857	4801
query23	33246	32553	32708	32553
query24	11005	2874	2860	2860
query25	613	392	388	388
query26	1271	151	170	151
query27	2973	350	341	341
query28	7529	1857	1826	1826
query29	903	650	628	628
query30	305	151	146	146
query31	969	764	746	746
query32	97	61	55	55
query33	770	259	252	252
query34	1022	469	482	469
query35	825	603	603	603
query36	1023	901	902	901
query37	121	84	74	74
query38	3505	3425	3378	3378
query39	1467	1433	1416	1416
query40	218	112	112	112
query41	51	48	47	47
query42	107	97	99	97
query43	481	439	431	431
query44	1155	702	718	702
query45	284	264	270	264
query46	1115	719	716	716
query47	1932	1851	1848	1848
query48	450	355	356	355
query49	1141	343	332	332
query50	765	379	366	366
query51	6716	6637	6530	6530
query52	97	92	93	92
query53	345	271	279	271
query54	306	244	240	240
query55	92	78	80	78
query56	255	235	225	225
query57	1233	1152	1146	1146
query58	241	210	218	210
query59	2767	2468	2491	2468
query60	263	250	252	250
query61	116	129	114	114
query62	681	436	451	436
query63	302	282	276	276
query64	5672	4120	4013	4013
query65	3071	3007	3017	3007
query66	868	361	350	350
query67	15318	14734	14815	14734
query68	7164	521	506	506
query69	625	385	372	372
query70	1254	1134	1202	1134
query71	514	263	262	262
query72	6414	2720	2554	2554
query73	717	323	317	317
query74	8141	6238	6379	6238
query75	4116	2825	2878	2825
query76	4981	861	839	839
query77	656	264	248	248
query78	10888	10192	10153	10153
query79	8437	512	521	512
query80	1666	375	369	369
query81	526	213	219	213
query82	883	208	201	201
query83	219	139	138	138
query84	283	80	79	79
query85	1454	333	307	307
query86	459	287	289	287
query87	3702	3525	3497	3497
query88	4935	2285	2269	2269
query89	495	361	356	356
query90	1986	173	170	170
query91	162	135	143	135
query92	64	48	52	48
query93	6694	487	477	477
query94	1099	172	172	172
query95	435	321	323	321
query96	612	272	263	263
query97	3027	2855	2880	2855
query98	252	210	201	201
query99	1216	926	908	908
Total cold run time: 311256 ms
Total hot run time: 184702 ms

@doris-robot
Copy link

Load test result on machine: 'aliyun_ecs.c7a.8xlarge_32C64G'

Load test result on commit 2627ca8b5c9bfe7af007d2255a092179eb8689a6 with default session variables
Stream load json:         19 seconds loaded 2358488459 Bytes, about 118 MB/s
Stream load orc:          59 seconds loaded 1101869774 Bytes, about 17 MB/s
Stream load parquet:      31 seconds loaded 861443392 Bytes, about 26 MB/s
Insert into select:       21.1 seconds inserted 10000000 Rows, about 473K ops/s

dataroaring
dataroaring previously approved these changes Jun 4, 2024
Copy link
Contributor

@dataroaring dataroaring left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

github-actions bot commented Jun 4, 2024

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

@github-actions github-actions bot added the approved Indicates a PR has been approved by one committer. label Jun 4, 2024
@Override
protected void onFail(Throwable t) {
errMsg = t.getMessage() == null ? "unknown reason" : t.getMessage();
StringBuilder sb = new StringBuilder();
Copy link
Contributor

Choose a reason for hiding this comment

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

the sb is unused

@Override
protected void beforeExec() {
String queryId = DebugUtil.printId(ctx.queryId());
LOG.info("start insert [{}] with query id {} and txn id {}", labelName, queryId, txnId);
Copy link
Contributor

Choose a reason for hiding this comment

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

the txnId is -1, no need to log it

try {
handleGroupCommit(ctx, sink, olapSink, planner);
} catch (TException | RpcException | ExecutionException | InterruptedException e) {
LOG.error("errors when group commit insert. {}", e);
Copy link
Contributor

Choose a reason for hiding this comment

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

the {} is not unused

ctx.getState().setError(ErrorCode.ERR_UNKNOWN_ERROR, t.getMessage());
// set insert result in connection context,
// so that user can use `show insert result` to get info of the last insert operation.
ctx.setOrUpdateInsertResult(txnId, labelName, database.getFullName(), table.getName(),
Copy link
Contributor

Choose a reason for hiding this comment

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

when execute error, should we set row num?

// TODO: in legacy, there is a retry, we need to implement
if (code == TStatusCode.DATA_QUALITY_ERROR && !errorMsgsList.isEmpty() && errorMsgsList.get(0)
.contains("schema version not match")) {
LOG.info("group commit insert failed. query id: {}, backend id: {}, status: {}, "
Copy link
Contributor

Choose a reason for hiding this comment

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

log here and return success to client, will cause the data lost?

@@ -80,7 +93,7 @@ suite("insert_group_commit_into_max_filter_ratio") {
logger.warn("insert result: " + result + ", expected_row_count: " + expected_row_count + ", sql: " + sql)
}
// assertEquals(result, expected_row_count)
assertTrue(serverInfo.contains("'status':'ABORTED'"))
assertTrue(serverInfo.contains("too many filtered rows"))
Copy link
Contributor

Choose a reason for hiding this comment

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

why change it, we can both check status and error msg

@zzzzzzzs
Copy link
Contributor Author

zzzzzzzs commented Jun 5, 2024

run buildall

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

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

------ Round 1 ----------------------------------
q1	17633	4488	4278	4278
q2	2044	184	200	184
q3	10469	1185	1114	1114
q4	10207	849	733	733
q5	7493	2724	2757	2724
q6	227	144	137	137
q7	980	621	641	621
q8	9218	2134	2133	2133
q9	9358	6747	6674	6674
q10	9345	3940	3988	3940
q11	453	236	236	236
q12	485	241	238	238
q13	17291	3292	3269	3269
q14	266	231	228	228
q15	522	483	472	472
q16	505	402	418	402
q17	1019	831	750	750
q18	8392	7897	7738	7738
q19	8179	1385	1242	1242
q20	651	330	328	328
q21	5160	3362	3392	3362
q22	395	328	340	328
Total cold run time: 120292 ms
Total hot run time: 41131 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4705	4473	4456	4456
q2	375	260	267	260
q3	3176	2923	2981	2923
q4	2052	1831	1680	1680
q5	5327	5519	5516	5516
q6	227	125	131	125
q7	2182	1817	1861	1817
q8	3256	3366	3397	3366
q9	8647	8647	8628	8628
q10	4083	3879	3915	3879
q11	577	483	490	483
q12	769	629	587	587
q13	16005	3101	3139	3101
q14	313	263	278	263
q15	529	478	471	471
q16	469	427	430	427
q17	1809	1503	1497	1497
q18	8052	7689	7390	7390
q19	1795	1651	1525	1525
q20	3050	1779	1778	1778
q21	4864	4802	4854	4802
q22	594	536	528	528
Total cold run time: 72856 ms
Total hot run time: 55502 ms

@doris-robot
Copy link

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

query1	925	376	376	376
query2	6468	2336	2166	2166
query3	6656	209	215	209
query4	19301	17442	17309	17309
query5	4120	436	447	436
query6	248	160	150	150
query7	4587	296	286	286
query8	305	268	275	268
query9	8469	2361	2351	2351
query10	441	310	260	260
query11	10666	10145	10015	10015
query12	134	84	84	84
query13	1635	363	361	361
query14	10115	7508	7769	7508
query15	231	184	175	175
query16	7834	265	269	265
query17	1555	517	523	517
query18	1947	272	275	272
query19	212	158	162	158
query20	92	87	90	87
query21	211	127	134	127
query22	4510	4139	4160	4139
query23	33473	33022	33128	33022
query24	11053	2858	2882	2858
query25	607	352	360	352
query26	1193	158	152	152
query27	2763	337	326	326
query28	7113	2070	2035	2035
query29	869	602	585	585
query30	283	147	157	147
query31	950	773	756	756
query32	93	52	53	52
query33	753	289	271	271
query34	952	466	476	466
query35	747	627	614	614
query36	1049	940	916	916
query37	156	66	69	66
query38	2890	2721	2711	2711
query39	880	793	781	781
query40	200	128	122	122
query41	56	52	51	51
query42	115	98	98	98
query43	559	523	541	523
query44	1252	730	757	730
query45	191	164	160	160
query46	1065	732	723	723
query47	1882	1756	1790	1756
query48	373	306	321	306
query49	1006	399	407	399
query50	772	392	390	390
query51	6834	6655	6617	6617
query52	95	94	88	88
query53	365	283	284	283
query54	880	461	455	455
query55	79	75	76	75
query56	320	250	261	250
query57	1104	1069	1056	1056
query58	274	267	248	248
query59	3402	3234	3052	3052
query60	288	267	268	267
query61	91	87	84	84
query62	664	451	426	426
query63	318	289	285	285
query64	8868	2275	1722	1722
query65	3144	3076	3071	3071
query66	809	330	330	330
query67	15532	14976	15077	14976
query68	4488	547	541	541
query69	479	315	311	311
query70	1165	1137	1155	1137
query71	360	275	261	261
query72	7210	5259	5486	5259
query73	743	325	326	325
query74	5972	5561	5478	5478
query75	3350	2626	2648	2626
query76	2315	910	893	893
query77	471	294	295	294
query78	10317	9782	9712	9712
query79	2241	515	524	515
query80	915	460	449	449
query81	581	214	218	214
query82	824	103	99	99
query83	243	165	171	165
query84	258	84	85	84
query85	1439	265	258	258
query86	504	306	303	303
query87	3306	3144	3109	3109
query88	4181	2437	2432	2432
query89	481	406	390	390
query90	1789	190	191	190
query91	125	98	97	97
query92	62	47	52	47
query93	2261	515	496	496
query94	1186	188	187	187
query95	405	316	305	305
query96	590	274	270	270
query97	3114	3000	3005	3000
query98	225	211	201	201
query99	1418	834	834	834
Total cold run time: 270042 ms
Total hot run time: 172654 ms

@doris-robot
Copy link

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

query1	0.04	0.04	0.04
query2	0.08	0.04	0.04
query3	0.23	0.05	0.06
query4	1.68	0.07	0.07
query5	0.49	0.50	0.48
query6	1.14	0.73	0.72
query7	0.02	0.02	0.01
query8	0.05	0.04	0.04
query9	0.55	0.49	0.49
query10	0.54	0.54	0.53
query11	0.16	0.12	0.12
query12	0.14	0.12	0.12
query13	0.62	0.60	0.60
query14	0.79	0.76	0.80
query15	0.82	0.81	0.82
query16	0.35	0.37	0.36
query17	1.02	1.00	0.96
query18	0.20	0.27	0.23
query19	1.91	1.68	1.72
query20	0.02	0.01	0.01
query21	15.52	0.66	0.64
query22	4.17	7.15	2.06
query23	18.29	1.31	1.20
query24	2.07	0.23	0.22
query25	0.16	0.07	0.09
query26	0.27	0.17	0.18
query27	0.07	0.08	0.07
query28	13.22	1.00	0.99
query29	13.12	3.35	3.32
query30	0.24	0.05	0.06
query31	2.90	0.40	0.38
query32	3.24	0.47	0.47
query33	2.91	2.90	2.97
query34	17.26	4.41	4.49
query35	4.51	4.56	4.55
query36	0.67	0.51	0.49
query37	0.17	0.15	0.15
query38	0.15	0.16	0.14
query39	0.04	0.04	0.03
query40	0.17	0.13	0.14
query41	0.09	0.04	0.05
query42	0.05	0.04	0.04
query43	0.03	0.04	0.04
Total cold run time: 110.17 s
Total hot run time: 30.68 s

Copy link
Contributor

@dataroaring dataroaring 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 Jun 6, 2024
Copy link
Contributor

github-actions bot commented Jun 6, 2024

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

@dataroaring dataroaring merged commit 161b6b3 into apache:master Jun 6, 2024
28 of 30 checks passed
dataroaring pushed a commit that referenced this pull request Jun 7, 2024
…atus (#35995)


1. Modify group commit p2 case to use nereids since
#32523 support it.
2. We get many same logs when group commit is cancelled: 
    ```
group_commit_mgr.cpp:182] cancel group commit, instance_id=xx, label=xx,
status=[OK]
    ```
the problem is that `runtime_state->is_cancelled` is true, but
`runtime_state->cancel_reason()` is `OK`
dataroaring pushed a commit that referenced this pull request Jun 7, 2024
)

## Proposed changes

Nereids supports group_commit with insert

Co-authored-by: abmdocrt <[email protected]>
Co-authored-by: meiyi <[email protected]>
dataroaring pushed a commit that referenced this pull request Jun 7, 2024
…atus (#35995)


1. Modify group commit p2 case to use nereids since
#32523 support it.
2. We get many same logs when group commit is cancelled: 
    ```
group_commit_mgr.cpp:182] cancel group commit, instance_id=xx, label=xx,
status=[OK]
    ```
the problem is that `runtime_state->is_cancelled` is true, but
`runtime_state->cancel_reason()` is `OK`
mymeiyi added a commit to mymeiyi/doris that referenced this pull request Jul 7, 2024
…atus (apache#35995)

1. Modify group commit p2 case to use nereids since
apache#32523 support it.
2. We get many same logs when group commit is cancelled:
    ```
group_commit_mgr.cpp:182] cancel group commit, instance_id=xx, label=xx,
status=[OK]
    ```
the problem is that `runtime_state->is_cancelled` is true, but
`runtime_state->cancel_reason()` is `OK`
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/3.0.0-merged not-merge/2.1 reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants