Skip to content

Conversation

@Mryange
Copy link
Contributor

@Mryange Mryange commented Mar 22, 2024

Proposed changes

fe code #32004
test pr #32770

Further comments

If this is a relatively large or complex change, kick off the discussion at dev@doris.apache.org 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.

@Mryange
Copy link
Contributor Author

Mryange commented Mar 22, 2024

run buildall

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

clang-tidy made some suggestions

// input expr -> intermediate_projections[0] -> intermediate_projections[1] -> intermediate_projections[2] ... -> final projections -> output expr
// prepare _row_descriptor intermediate_row_desc[0] intermediate_row_desc[1] intermediate_row_desc.end() _output_row_descriptor

[[nodiscard]] const RowDescriptor& projections_row_desc() const {
Copy link
Contributor

Choose a reason for hiding this comment

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

warning: method 'projections_row_desc' can be made static [readability-convert-member-functions-to-static]

Suggested change
[[nodiscard]] const RowDescriptor& projections_row_desc() const {
[[nodiscard]] static const RowDescriptor& projections_row_desc() {

// input expr -> intermediate_projections[0] -> intermediate_projections[1] -> intermediate_projections[2] ... -> final projections -> output expr
// prepare _row_descriptor intermediate_row_desc[0] intermediate_row_desc[1] intermediate_row_desc.end() _output_row_descriptor

[[nodiscard]] const RowDescriptor& projections_row_desc() const {
Copy link
Contributor

Choose a reason for hiding this comment

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

warning: method 'projections_row_desc' can be made static [readability-convert-member-functions-to-static]

Suggested change
[[nodiscard]] const RowDescriptor& projections_row_desc() const {
[[nodiscard]] static const RowDescriptor& projections_row_desc() {

@doris-robot
Copy link

TeamCity be ut coverage result:
Function Coverage: 35.27% (8733/24759)
Line Coverage: 27.08% (71533/264192)
Region Coverage: 26.32% (37121/141029)
Branch Coverage: 23.22% (18982/81766)
Coverage Report: http://coverage.selectdb-in.cc/coverage/5cbe4712a124163a5a36822225565b57a5aa4bc4_5cbe4712a124163a5a36822225565b57a5aa4bc4/report/index.html

@Mryange
Copy link
Contributor Author

Mryange commented Mar 22, 2024

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17925	4705	4301	4301
q2	2526	158	155	155
q3	11999	1135	1194	1135
q4	10587	842	756	756
q5	7875	3109	3058	3058
q6	212	128	126	126
q7	1060	624	592	592
q8	9538	2052	2052	2052
q9	7298	6613	6518	6518
q10	8444	3405	3527	3405
q11	432	220	220	220
q12	369	199	197	197
q13	17791	2873	2886	2873
q14	239	198	204	198
q15	495	471	462	462
q16	498	366	365	365
q17	973	544	556	544
q18	7483	6558	6504	6504
q19	1579	1414	1439	1414
q20	557	282	265	265
q21	3512	2902	3005	2902
q22	358	304	313	304
Total cold run time: 111750 ms
Total hot run time: 38346 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4208	4126	4068	4068
q2	330	227	230	227
q3	3013	2939	2800	2800
q4	1928	1623	1615	1615
q5	5253	5313	5259	5259
q6	194	116	116	116
q7	2257	1888	1847	1847
q8	3169	3293	3313	3293
q9	8618	8584	8612	8584
q10	3684	3710	3683	3683
q11	538	448	447	447
q12	710	564	551	551
q13	16877	2879	2849	2849
q14	269	254	263	254
q15	484	459	446	446
q16	487	402	414	402
q17	1736	1509	1483	1483
q18	7544	7278	7183	7183
q19	1621	1554	1528	1528
q20	1933	1759	1732	1732
q21	4694	4806	4713	4713
q22	533	442	430	430
Total cold run time: 70080 ms
Total hot run time: 53510 ms

@doris-robot
Copy link

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

query1	944	375	352	352
query2	7509	2091	2063	2063
query3	6707	212	217	212
query4	31224	20891	20565	20565
query5	4507	441	429	429
query6	271	178	172	172
query7	4655	298	289	289
query8	226	171	169	169
query9	9386	2402	2369	2369
query10	569	260	251	251
query11	17112	14223	14108	14108
query12	136	95	88	88
query13	1629	422	419	419
query14	12178	10405	10705	10405
query15	260	199	201	199
query16	8240	268	264	264
query17	1991	568	531	531
query18	2097	287	272	272
query19	350	155	155	155
query20	94	89	90	89
query21	208	130	125	125
query22	4575	4459	4415	4415
query23	32204	31167	31239	31167
query24	10597	2808	2824	2808
query25	608	373	360	360
query26	1415	161	158	158
query27	3004	352	356	352
query28	7838	1928	1914	1914
query29	892	634	626	626
query30	304	152	152	152
query31	954	729	720	720
query32	94	58	56	56
query33	787	267	254	254
query34	1057	466	488	466
query35	827	614	598	598
query36	997	889	874	874
query37	127	86	80	80
query38	3607	3502	3422	3422
query39	1396	1401	1373	1373
query40	218	113	115	113
query41	52	49	48	48
query42	106	97	104	97
query43	502	470	448	448
query44	1189	760	714	714
query45	276	265	262	262
query46	1092	710	694	694
query47	1677	1577	1614	1577
query48	455	368	374	368
query49	1105	349	344	344
query50	776	385	379	379
query51	6872	6839	6733	6733
query52	123	92	99	92
query53	343	281	276	276
query54	309	249	254	249
query55	82	77	79	77
query56	272	238	253	238
query57	1096	1025	1024	1024
query58	239	215	215	215
query59	2964	2684	2506	2506
query60	285	260	268	260
query61	116	118	118	118
query62	612	397	394	394
query63	312	270	280	270
query64	5738	3893	3948	3893
query65	3115	2993	3039	2993
query66	1458	380	358	358
query67	15185	14503	14449	14449
query68	8843	548	539	539
query69	647	393	392	392
query70	1354	1106	1157	1106
query71	531	298	297	297
query72	6902	2697	2480	2480
query73	1450	318	326	318
query74	8212	6594	6587	6587
query75	4472	2978	2944	2944
query76	5423	906	970	906
query77	635	273	272	272
query78	10469	9709	9787	9709
query79	11448	533	532	532
query80	1671	382	388	382
query81	530	214	213	213
query82	364	201	192	192
query83	213	150	172	150
query84	283	76	76	76
query85	1127	337	312	312
query86	348	275	307	275
query87	3783	3569	3563	3563
query88	5284	2371	2365	2365
query89	489	376	360	360
query90	2045	179	178	178
query91	174	138	140	138
query92	61	49	49	49
query93	6477	508	504	504
query94	1337	179	180	179
query95	438	344	338	338
query96	612	273	271	271
query97	3052	2873	2853	2853
query98	233	214	210	210
query99	1060	755	739	739
Total cold run time: 318112 ms
Total hot run time: 181939 ms

@doris-robot
Copy link

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

Load test result on commit ed6ba236ea10865640f87ca01510652652d527de 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:       20.6 seconds inserted 10000000 Rows, about 485K ops/s

@doris-robot
Copy link

TeamCity be ut coverage result:
Function Coverage: 35.26% (8733/24767)
Line Coverage: 27.06% (71529/264308)
Region Coverage: 26.30% (37110/141117)
Branch Coverage: 23.20% (18981/81832)
Coverage Report: http://coverage.selectdb-in.cc/coverage/ed6ba236ea10865640f87ca01510652652d527de_ed6ba236ea10865640f87ca01510652652d527de/report/index.html

@Mryange
Copy link
Contributor Author

Mryange commented Mar 22, 2024

run buildall

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

clang-tidy made some suggestions

}
}

[[nodiscard]] const RowDescriptor& intermediate_row_desc(int idx) {
Copy link
Contributor

Choose a reason for hiding this comment

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

warning: method 'intermediate_row_desc' can be made const [readability-make-member-function-const]

Suggested change
[[nodiscard]] const RowDescriptor& intermediate_row_desc(int idx) {
[[nodiscard]] const RowDescriptor& intermediate_row_desc(int idx) const {

}
}

[[nodiscard]] const RowDescriptor& intermediate_row_desc(int idx) {
Copy link
Contributor

Choose a reason for hiding this comment

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

warning: method 'intermediate_row_desc' can be made const [readability-make-member-function-const]

Suggested change
[[nodiscard]] const RowDescriptor& intermediate_row_desc(int idx) {
[[nodiscard]] const RowDescriptor& intermediate_row_desc(int idx) const {

@doris-robot
Copy link

TeamCity be ut coverage result:
Function Coverage: 35.25% (8731/24771)
Line Coverage: 27.05% (71497/264349)
Region Coverage: 26.29% (37099/141137)
Branch Coverage: 23.18% (18968/81842)
Coverage Report: http://coverage.selectdb-in.cc/coverage/0bc8d67bae3148a6194d61a05e8698da11664ef8_0bc8d67bae3148a6194d61a05e8698da11664ef8/report/index.html

@Mryange
Copy link
Contributor Author

Mryange commented Mar 22, 2024

run buildall

@doris-robot
Copy link

TeamCity be ut coverage result:
Function Coverage: 35.26% (8734/24771)
Line Coverage: 27.06% (71531/264349)
Region Coverage: 26.30% (37122/141137)
Branch Coverage: 23.20% (18984/81842)
Coverage Report: http://coverage.selectdb-in.cc/coverage/9f2526ef11acf8ee12357dc3c8e15c56a86c47aa_9f2526ef11acf8ee12357dc3c8e15c56a86c47aa/report/index.html

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17648	4277	4142	4142
q2	2116	153	158	153
q3	10596	1183	1182	1182
q4	10226	817	828	817
q5	7458	3025	3001	3001
q6	210	127	123	123
q7	1057	577	581	577
q8	9327	2001	2014	2001
q9	7151	6594	6583	6583
q10	8455	3467	3605	3467
q11	432	224	216	216
q12	418	195	190	190
q13	17792	2839	2854	2839
q14	230	202	213	202
q15	515	455	466	455
q16	496	382	373	373
q17	962	541	584	541
q18	7183	6522	6403	6403
q19	1671	1430	1480	1430
q20	559	241	242	241
q21	3626	2958	2847	2847
q22	335	293	296	293
Total cold run time: 108463 ms
Total hot run time: 38076 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4124	4051	4048	4048
q2	335	235	239	235
q3	2948	2880	2821	2821
q4	1864	1540	1540	1540
q5	5307	5337	5350	5337
q6	193	118	121	118
q7	2223	1898	1877	1877
q8	3167	3320	3282	3282
q9	8724	8698	8769	8698
q10	3775	3822	3763	3763
q11	530	441	443	441
q12	711	537	542	537
q13	16946	2866	2862	2862
q14	289	238	254	238
q15	491	454	464	454
q16	475	425	417	417
q17	1730	1473	1449	1449
q18	7550	7202	7130	7130
q19	1609	1547	1528	1528
q20	1904	1722	1720	1720
q21	4863	4579	4690	4579
q22	520	427	445	427
Total cold run time: 70278 ms
Total hot run time: 53501 ms

@doris-robot
Copy link

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

query1	935	373	345	345
query2	7420	1960	2063	1960
query3	6712	206	218	206
query4	31899	21597	21407	21407
query5	4241	403	476	403
query6	275	185	176	176
query7	4631	299	283	283
query8	238	164	176	164
query9	9459	2298	2271	2271
query10	556	250	252	250
query11	17503	14448	14455	14448
query12	140	90	90	90
query13	1626	429	406	406
query14	14557	11036	11068	11036
query15	267	212	196	196
query16	8181	255	249	249
query17	1996	564	534	534
query18	2100	278	271	271
query19	352	170	155	155
query20	96	90	84	84
query21	200	130	131	130
query22	4996	4772	4841	4772
query23	33530	32911	32950	32911
query24	10730	2904	2815	2815
query25	638	389	389	389
query26	1185	156	156	156
query27	2553	342	346	342
query28	7274	1863	1844	1844
query29	876	627	637	627
query30	307	151	148	148
query31	967	727	750	727
query32	98	59	57	57
query33	778	263	257	257
query34	1024	474	492	474
query35	832	617	606	606
query36	1014	889	892	889
query37	125	79	77	77
query38	3556	3483	3433	3433
query39	1497	1472	1460	1460
query40	220	122	113	113
query41	51	48	48	48
query42	104	98	104	98
query43	499	463	460	460
query44	1125	722	716	716
query45	296	272	266	266
query46	1112	729	708	708
query47	1925	1854	1859	1854
query48	462	354	357	354
query49	1105	336	341	336
query50	764	374	375	374
query51	6699	6652	6614	6614
query52	100	93	91	91
query53	351	270	282	270
query54	307	242	260	242
query55	96	82	82	82
query56	251	231	241	231
query57	1225	1145	1136	1136
query58	240	203	212	203
query59	2847	2677	2757	2677
query60	276	330	270	270
query61	117	115	134	115
query62	670	447	489	447
query63	303	277	279	277
query64	5346	4138	4178	4138
query65	3095	3044	3015	3015
query66	901	365	367	365
query67	15337	14726	14654	14654
query68	8974	552	532	532
query69	683	404	381	381
query70	1424	1193	1173	1173
query71	503	277	282	277
query72	6738	2715	2596	2596
query73	1586	309	312	309
query74	7065	6631	6831	6631
query75	4362	2835	2894	2835
query76	5744	948	858	858
query77	651	276	263	263
query78	10941	10298	10161	10161
query79	8918	525	515	515
query80	1488	399	424	399
query81	516	212	214	212
query82	363	213	199	199
query83	217	154	142	142
query84	291	86	76	76
query85	1072	317	316	316
query86	346	279	289	279
query87	3733	3552	3523	3523
query88	4962	2296	2285	2285
query89	471	374	375	374
query90	2073	183	178	178
query91	171	139	136	136
query92	65	48	49	48
query93	5790	495	475	475
query94	1330	193	180	180
query95	428	346	341	341
query96	616	263	271	263
query97	3049	2882	2871	2871
query98	234	219	213	213
query99	1134	929	932	929
Total cold run time: 317126 ms
Total hot run time: 187172 ms

@doris-robot
Copy link

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

Load test result on commit 9f2526ef11acf8ee12357dc3c8e15c56a86c47aa with default session variables
Stream load json:         18 seconds loaded 2358488459 Bytes, about 124 MB/s
Stream load orc:          58 seconds loaded 1101869774 Bytes, about 18 MB/s
Stream load parquet:      32 seconds loaded 861443392 Bytes, about 25 MB/s
Insert into select:       21.2 seconds inserted 10000000 Rows, about 471K ops/s

@Mryange
Copy link
Contributor Author

Mryange commented Mar 23, 2024

run buildall

@Mryange
Copy link
Contributor Author

Mryange commented Mar 23, 2024

run buildall

@doris-robot
Copy link

TeamCity be ut coverage result:
Function Coverage: 35.25% (8731/24770)
Line Coverage: 27.05% (71497/264327)
Region Coverage: 26.29% (37100/141125)
Branch Coverage: 23.18% (18967/81832)
Coverage Report: http://coverage.selectdb-in.cc/coverage/3e771b3a126dc19faa56c7ff35a0929a4fa340f4_3e771b3a126dc19faa56c7ff35a0929a4fa340f4/report/index.html

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17628	4217	4090	4090
q2	2105	157	151	151
q3	10581	1170	1205	1170
q4	10233	833	793	793
q5	7461	2978	2958	2958
q6	203	124	120	120
q7	1029	583	570	570
q8	9363	1997	1953	1953
q9	7348	6637	6549	6549
q10	8412	3471	3570	3471
q11	434	221	210	210
q12	400	198	195	195
q13	17793	2866	2874	2866
q14	251	200	205	200
q15	501	464	456	456
q16	484	367	369	367
q17	950	525	594	525
q18	7153	6498	6322	6322
q19	4892	1408	1466	1408
q20	551	250	246	246
q21	3521	2914	2816	2816
q22	335	302	291	291
Total cold run time: 111628 ms
Total hot run time: 37727 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4124	4095	4075	4075
q2	327	234	229	229
q3	2943	2828	2816	2816
q4	1835	1545	1524	1524
q5	5288	5351	5331	5331
q6	195	114	116	114
q7	2192	1873	1840	1840
q8	3160	3289	3256	3256
q9	8685	8677	8653	8653
q10	3816	3784	3769	3769
q11	536	434	438	434
q12	737	551	592	551
q13	16903	2848	2893	2848
q14	297	239	255	239
q15	493	447	452	447
q16	448	409	426	409
q17	1715	1487	1470	1470
q18	7482	7222	7076	7076
q19	1587	1484	1546	1484
q20	1912	1719	1700	1700
q21	4751	4612	4738	4612
q22	509	445	459	445
Total cold run time: 69935 ms
Total hot run time: 53322 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 186464 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 3e771b3a126dc19faa56c7ff35a0929a4fa340f4, data reload: false

query1	927	375	366	366
query2	7351	1979	1974	1974
query3	6709	209	217	209
query4	32360	21192	21339	21192
query5	4410	413	410	410
query6	267	190	189	189
query7	4633	294	295	294
query8	232	168	170	168
query9	8966	2307	2288	2288
query10	550	242	270	242
query11	17340	14311	14302	14302
query12	139	88	90	88
query13	1638	449	429	429
query14	11777	11123	11280	11123
query15	261	206	202	202
query16	8069	261	266	261
query17	1944	579	552	552
query18	1993	293	284	284
query19	217	159	161	159
query20	96	88	90	88
query21	207	134	128	128
query22	5022	4811	4845	4811
query23	34131	32738	33001	32738
query24	10749	2890	2871	2871
query25	614	387	390	387
query26	1187	162	166	162
query27	2602	354	357	354
query28	7223	1927	1933	1927
query29	883	673	626	626
query30	297	151	149	149
query31	972	747	753	747
query32	89	61	58	58
query33	783	267	265	265
query34	1033	486	505	486
query35	823	618	625	618
query36	1021	897	920	897
query37	130	80	76	76
query38	3514	3442	3441	3441
query39	1473	1468	1397	1397
query40	216	119	117	117
query41	51	53	47	47
query42	106	98	100	98
query43	492	444	458	444
query44	1217	741	744	741
query45	275	262	269	262
query46	1128	724	721	721
query47	1941	1844	1855	1844
query48	453	370	351	351
query49	1144	336	345	336
query50	760	378	379	378
query51	6749	6558	6639	6558
query52	106	100	90	90
query53	383	284	283	283
query54	322	255	265	255
query55	94	83	84	83
query56	254	246	259	246
query57	1216	1151	1127	1127
query58	242	211	225	211
query59	2827	2496	2542	2496
query60	290	265	269	265
query61	116	117	119	117
query62	653	454	456	454
query63	313	289	297	289
query64	5833	4088	3835	3835
query65	3068	3024	3016	3016
query66	872	364	358	358
query67	15064	14766	14942	14766
query68	6971	539	552	539
query69	621	382	378	378
query70	1207	1145	1121	1121
query71	512	285	288	285
query72	6428	2742	2532	2532
query73	724	309	317	309
query74	6956	6722	6554	6554
query75	4024	2849	2813	2813
query76	4972	955	935	935
query77	656	260	266	260
query78	10850	10090	10053	10053
query79	8288	535	524	524
query80	1561	394	396	394
query81	520	210	209	209
query82	844	200	207	200
query83	213	154	145	145
query84	281	83	81	81
query85	1470	318	318	318
query86	422	291	268	268
query87	3743	3555	3497	3497
query88	4775	2311	2280	2280
query89	501	380	388	380
query90	2024	180	177	177
query91	176	134	139	134
query92	61	49	51	49
query93	6471	514	502	502
query94	1099	180	176	176
query95	434	330	343	330
query96	607	267	272	267
query97	3048	2886	2890	2886
query98	234	213	210	210
query99	1200	912	942	912
Total cold run time: 310710 ms
Total hot run time: 186464 ms

@doris-robot
Copy link

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

Load test result on commit 3e771b3a126dc19faa56c7ff35a0929a4fa340f4 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.2 seconds inserted 10000000 Rows, about 471K ops/s

@Mryange
Copy link
Contributor Author

Mryange commented Mar 23, 2024

run buildall

@doris-robot
Copy link

TeamCity be ut coverage result:
Function Coverage: 35.25% (8732/24774)
Line Coverage: 27.04% (71511/264486)
Region Coverage: 26.28% (37106/141219)
Branch Coverage: 23.17% (18975/81898)
Coverage Report: http://coverage.selectdb-in.cc/coverage/c1cf41b366d10c196cef55c0c19d8ee06f6b75fa_c1cf41b366d10c196cef55c0c19d8ee06f6b75fa/report/index.html

@englefly englefly self-requested a review March 25, 2024 13:34
englefly
englefly previously approved these changes Mar 25, 2024
@github-actions github-actions bot added the approved Indicates a PR has been approved by one committer. label Mar 25, 2024
@github-actions
Copy link
Contributor

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


vectorized::Block input_block = *origin_block;

const size_t rows = input_block.rows();
Copy link
Contributor

Choose a reason for hiding this comment

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

do the check before copy *origin_block

}

void Block::shuffle_columns(std::vector<int>& result_column_ids) {
Container tmp_data;
Copy link
Contributor

Choose a reason for hiding this comment

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

tmp_data(result_column_ids.size())

row_same_bit = std::move(other.row_same_bit);
}

void Block::shuffle_columns(std::vector<int>& result_column_ids) {
Copy link
Contributor

Choose a reason for hiding this comment

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

const reference?

std::unique_ptr<RowDescriptor> _output_row_descriptor;
vectorized::VExprContextSPtrs _projections;

std::vector<std::unique_ptr<RowDescriptor>> _intermediate_output_row_descriptor;
Copy link
Contributor

@HappenLee HappenLee Mar 27, 2024

Choose a reason for hiding this comment

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

why here need unique_ptr ? not std::vector
recheck the logic:_output_row_descriptor

Copy link
Contributor Author

Choose a reason for hiding this comment

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

_output_row_descriptor needs to be a pointer because it could be null, null means that no projection is required.

}
_projections = _intermediate_projections.back();
_intermediate_projections.pop_back();

Copy link
Contributor

Choose a reason for hiding this comment

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

del space

@github-actions github-actions bot removed the approved Indicates a PR has been approved by one committer. label Mar 27, 2024
@Mryange
Copy link
Contributor Author

Mryange commented Mar 27, 2024

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17690	4382	4233	4233
q2	2794	165	166	165
q3	11530	1142	1225	1142
q4	11215	752	875	752
q5	7578	3145	3103	3103
q6	214	128	124	124
q7	1058	607	589	589
q8	9506	2082	2076	2076
q9	7352	6701	6669	6669
q10	8371	3538	3620	3538
q11	437	235	234	234
q12	367	199	208	199
q13	17781	2927	2846	2846
q14	234	213	216	213
q15	512	474	461	461
q16	472	378	372	372
q17	970	537	637	537
q18	7269	6499	6397	6397
q19	1566	1488	1426	1426
q20	578	261	268	261
q21	3594	2996	2953	2953
q22	338	285	301	285
Total cold run time: 111426 ms
Total hot run time: 38575 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4148	4147	4196	4147
q2	343	243	235	235
q3	2974	2855	2847	2847
q4	1841	1537	1553	1537
q5	5412	5371	5378	5371
q6	202	122	121	121
q7	2270	1909	1875	1875
q8	3176	3361	3298	3298
q9	8683	8729	8730	8729
q10	3829	3840	3761	3761
q11	556	444	439	439
q12	738	581	559	559
q13	16082	2831	2857	2831
q14	283	249	255	249
q15	496	466	461	461
q16	495	424	419	419
q17	1728	1504	1462	1462
q18	7466	7308	7098	7098
q19	1628	1499	1569	1499
q20	1905	1738	1698	1698
q21	4759	4627	4649	4627
q22	515	427	449	427
Total cold run time: 69529 ms
Total hot run time: 53690 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 182097 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 0d7d534d8d4c35a5a54659a6b055c36f09c9ccc9, data reload: false

query1	948	388	358	358
query2	6564	1907	1843	1843
query3	6711	211	213	211
query4	31877	21482	21360	21360
query5	4326	402	408	402
query6	267	172	179	172
query7	4625	290	288	288
query8	241	190	179	179
query9	9137	2341	2320	2320
query10	560	254	256	254
query11	17225	14224	14271	14224
query12	138	97	90	90
query13	1636	435	425	425
query14	9486	8072	7222	7222
query15	246	193	203	193
query16	8233	266	261	261
query17	1979	575	556	556
query18	2098	293	287	287
query19	358	156	159	156
query20	96	90	88	88
query21	204	125	126	125
query22	5069	4871	4847	4847
query23	33848	33255	33254	33254
query24	12077	2921	2951	2921
query25	656	378	388	378
query26	1824	158	155	155
query27	3162	360	355	355
query28	7842	1902	1890	1890
query29	1051	653	624	624
query30	306	153	149	149
query31	954	738	748	738
query32	94	56	57	56
query33	774	258	255	255
query34	1078	492	493	492
query35	841	614	627	614
query36	1029	865	899	865
query37	280	66	67	66
query38	3596	3457	3416	3416
query39	1477	1553	1414	1414
query40	292	115	117	115
query41	57	47	48	47
query42	107	100	96	96
query43	483	446	452	446
query44	1212	746	752	746
query45	279	264	265	264
query46	1133	724	700	700
query47	1926	1876	1877	1876
query48	452	351	357	351
query49	1244	346	346	346
query50	771	374	384	374
query51	6865	6748	6753	6748
query52	105	92	97	92
query53	354	272	284	272
query54	319	246	249	246
query55	88	82	79	79
query56	241	233	226	226
query57	1253	1165	1163	1163
query58	251	234	211	211
query59	2745	2554	2776	2554
query60	272	251	255	251
query61	115	116	115	115
query62	667	460	445	445
query63	310	284	286	284
query64	6931	3998	3838	3838
query65	3145	3083	3061	3061
query66	1414	367	359	359
query67	15709	15239	14901	14901
query68	8554	523	526	523
query69	618	380	383	380
query70	1245	1173	1167	1167
query71	510	273	260	260
query72	6880	2779	2572	2572
query73	758	323	322	322
query74	8383	6340	6450	6340
query75	3815	2211	2205	2205
query76	5184	842	878	842
query77	635	279	255	255
query78	10824	10128	10196	10128
query79	7809	526	521	521
query80	1396	373	363	363
query81	503	219	215	215
query82	760	93	83	83
query83	216	148	144	144
query84	289	80	77	77
query85	1433	343	314	314
query86	403	283	287	283
query87	3724	3577	3540	3540
query88	4472	2330	2295	2295
query89	501	371	370	370
query90	1989	179	176	176
query91	170	140	136	136
query92	62	47	48	47
query93	5886	494	482	482
query94	1133	176	175	175
query95	421	321	330	321
query96	609	267	281	267
query97	2676	2510	2482	2482
query98	235	217	212	212
query99	1257	955	891	891
Total cold run time: 315003 ms
Total hot run time: 182097 ms

@doris-robot
Copy link

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

Load test result on commit 0d7d534d8d4c35a5a54659a6b055c36f09c9ccc9 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:       13.8 seconds inserted 10000000 Rows, about 724K ops/s

@doris-robot
Copy link

TeamCity be ut coverage result:
Function Coverage: 35.24% (8741/24801)
Line Coverage: 27.03% (71570/264803)
Region Coverage: 26.27% (37138/141369)
Branch Coverage: 23.17% (18994/81970)
Coverage Report: http://coverage.selectdb-in.cc/coverage/0d7d534d8d4c35a5a54659a6b055c36f09c9ccc9_0d7d534d8d4c35a5a54659a6b055c36f09c9ccc9/report/index.html

Copy link
Contributor

@HappenLee HappenLee 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 Mar 29, 2024
@github-actions
Copy link
Contributor

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

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. meta-change reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants