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

[improvement](spill) fuzzy spill and fix bugs #33291

Merged
merged 1 commit into from
May 17, 2024

Conversation

jacktengg
Copy link
Contributor

Proposed changes

Issue Number: close #xxx

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.

@jacktengg
Copy link
Contributor Author

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

return Status::OK();
}

Status PartitionedHashJoinProbeOperatorX::close(RuntimeState* state) {
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 'close' can be made static [readability-convert-member-functions-to-static]

be/src/pipeline/exec/partitioned_hash_join_probe_operator.h:155:

-     Status close(RuntimeState* state) override;
+     static Status close(RuntimeState* state) override;

}
void SpillSortSharedState::clear() {

void SpillSortSharedState::close() {
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 'close' can be made static [readability-convert-member-functions-to-static]

be/src/pipeline/pipeline_x/dependency.h:514:

-     void close();
+     static void close();

@@ -103,9 +113,9 @@ Status SpillStream::wait_spill() {
return Status::OK();
}

Status SpillStream::spill_block(const Block& block, bool eof) {
Status SpillStream::spill_block(RuntimeState* state, const Block& block, bool eof) {
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 'spill_block' can be made static [readability-convert-member-functions-to-static]

be/src/vec/spill/spill_stream.h:55:

-     Status spill_block(RuntimeState* state, const Block& block, bool eof);
+     static Status spill_block(RuntimeState* state, const Block& block, bool eof);

PrettyPrinter::print_bytes(_used_bytes),
PrettyPrinter::print_bytes(_available_bytes),
PrettyPrinter::print_bytes(incoming_data_size));
return true;
Copy link
Contributor

Choose a reason for hiding this comment

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

warning: redundant boolean literal in conditional return statement [readability-simplify-boolean-expr]

be/src/vec/spill/spill_stream_manager.cpp:305:

-         if (_used_bytes + incoming_data_size > _limit_bytes ||
-             left_bytes <= config::storage_flood_stage_left_capacity_bytes) {
-             LOG(WARNING) << fmt::format(
-                     "spill data reach limit, path: {}, limit: {}, used: {}, available: {}, "
-                     "incoming "
-                     "bytes: {}",
-                     _path, PrettyPrinter::print_bytes(_limit_bytes),
-                     PrettyPrinter::print_bytes(_used_bytes),
-                     PrettyPrinter::print_bytes(_available_bytes),
-                     PrettyPrinter::print_bytes(incoming_data_size));
-             return true;
-         }
-         return false;
+         return _used_bytes + incoming_data_size > _limit_bytes ||
+             left_bytes <= config::storage_flood_stage_left_capacity_bytes;

_path, PrettyPrinter::print_bytes(_disk_capacity_bytes),
PrettyPrinter::print_bytes(_available_bytes),
PrettyPrinter::print_bytes(incoming_data_size));
return true;
Copy link
Contributor

Choose a reason for hiding this comment

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

warning: redundant boolean literal in conditional return statement [readability-simplify-boolean-expr]

be/src/vec/spill/spill_stream_manager.cpp:328:

-         if (used_pct >= config::spill_storage_usage_percent / 100.0) {
-             LOG(WARNING) << fmt::format(
-                     "spill data reach limit, path: {}, capacity: {}, available: {}, incoming "
-                     "bytes: {}",
-                     _path, PrettyPrinter::print_bytes(_disk_capacity_bytes),
-                     PrettyPrinter::print_bytes(_available_bytes),
-                     PrettyPrinter::print_bytes(incoming_data_size));
-             return true;
-         }
-         return false;
+         return used_pct >= config::spill_storage_usage_percent / 100.0;

}
}

int64_t get_used_bytes() {
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 'get_used_bytes' can be made const [readability-make-member-function-const]

Suggested change
int64_t get_used_bytes() {
int64_t get_used_bytes() const {

}
}

double get_usage(int64_t incoming_data_size) {
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 'get_usage' can be made const [readability-make-member-function-const]

Suggested change
double get_usage(int64_t incoming_data_size) {
double get_usage(int64_t incoming_data_size) const {

}
}

int64_t storage_limit() {
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 'storage_limit' can be made const [readability-make-member-function-const]

Suggested change
int64_t storage_limit() {
int64_t storage_limit() const {

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17682	4145	4073	4073
q2	2018	186	179	179
q3	10484	1136	1365	1136
q4	10195	862	976	862
q5	7491	3002	2961	2961
q6	219	135	137	135
q7	1113	603	605	603
q8	9395	2076	2051	2051
q9	6710	6222	6156	6156
q10	8483	3581	3514	3514
q11	420	240	251	240
q12	382	214	210	210
q13	17784	2905	2897	2897
q14	265	234	239	234
q15	517	484	480	480
q16	499	396	368	368
q17	969	932	922	922
q18	7268	6506	6469	6469
q19	1635	1543	1549	1543
q20	563	325	325	325
q21	3488	3091	3073	3073
q22	353	305	311	305
Total cold run time: 107933 ms
Total hot run time: 38736 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4092	4080	4034	4034
q2	327	216	214	214
q3	2955	2935	2949	2935
q4	1862	1863	1838	1838
q5	5238	5220	5236	5220
q6	204	124	125	124
q7	2246	1803	1788	1788
q8	3222	3288	3265	3265
q9	8454	8482	8514	8482
q10	3739	4009	4046	4009
q11	557	456	445	445
q12	743	571	582	571
q13	16858	3087	3159	3087
q14	311	259	291	259
q15	534	506	503	503
q16	487	440	468	440
q17	1776	1756	1748	1748
q18	8283	7624	7655	7624
q19	1712	1698	1684	1684
q20	2009	1817	1857	1817
q21	5311	5014	4988	4988
q22	499	456	433	433
Total cold run time: 71419 ms
Total hot run time: 55508 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 180630 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 7563f8e38c5069f01dd6ec4bdf89b3e4fefe13ba, data reload: false

query1	1222	358	1108	358
query2	6355	2001	1880	1880
query3	6663	210	200	200
query4	24307	21334	21469	21334
query5	4168	386	395	386
query6	287	186	171	171
query7	4594	292	302	292
query8	238	183	174	174
query9	8483	2263	2246	2246
query10	445	236	252	236
query11	14970	14477	14432	14432
query12	138	87	88	87
query13	1641	375	378	375
query14	8535	6841	6910	6841
query15	214	169	169	169
query16	6800	262	262	262
query17	1018	591	563	563
query18	1841	278	271	271
query19	205	152	157	152
query20	91	89	92	89
query21	198	127	128	127
query22	4947	4850	4775	4775
query23	33482	32846	32732	32732
query24	10474	3211	3193	3193
query25	665	425	413	413
query26	952	172	159	159
query27	3093	367	374	367
query28	6943	1897	1918	1897
query29	1069	606	606	606
query30	306	169	177	169
query31	995	761	751	751
query32	100	55	58	55
query33	665	249	244	244
query34	1236	501	542	501
query35	833	726	720	720
query36	1031	878	869	869
query37	112	73	79	73
query38	3674	3575	3541	3541
query39	1617	1596	1598	1596
query40	175	136	132	132
query41	49	46	51	46
query42	114	110	110	110
query43	482	444	423	423
query44	1211	752	782	752
query45	284	276	288	276
query46	1077	818	829	818
query47	1946	1845	1845	1845
query48	378	306	301	301
query49	894	386	371	371
query50	818	398	410	398
query51	6814	6700	6766	6700
query52	103	93	87	87
query53	355	284	302	284
query54	263	225	234	225
query55	89	74	71	71
query56	243	226	231	226
query57	1285	1201	1166	1166
query58	235	218	215	215
query59	2739	2506	2398	2398
query60	253	228	227	227
query61	91	89	90	89
query62	654	441	459	441
query63	299	278	282	278
query64	4492	3183	3137	3137
query65	3035	2991	2994	2991
query66	846	316	310	310
query67	15255	14920	14998	14920
query68	9191	569	572	569
query69	579	322	312	312
query70	1450	1153	1099	1099
query71	478	266	263	263
query72	6982	2571	2371	2371
query73	1599	319	318	318
query74	6675	6276	6216	6216
query75	3579	2298	2261	2261
query76	5901	1084	1245	1084
query77	663	242	242	242
query78	10776	10175	10050	10050
query79	10062	523	523	523
query80	1675	418	444	418
query81	490	234	224	224
query82	391	94	91	91
query83	202	161	167	161
query84	265	84	82	82
query85	887	285	296	285
query86	350	286	290	286
query87	3713	3438	3499	3438
query88	3805	2279	2288	2279
query89	547	375	377	375
query90	1910	173	178	173
query91	130	98	98	98
query92	60	46	47	46
query93	6703	526	528	526
query94	1171	180	177	177
query95	438	314	307	307
query96	619	270	278	270
query97	2659	2514	2526	2514
query98	228	212	218	212
query99	1171	882	817	817
Total cold run time: 294435 ms
Total hot run time: 180630 ms

@doris-robot
Copy link

TeamCity be ut coverage result:
Function Coverage: 35.64% (8887/24935)
Line Coverage: 27.36% (72968/266687)
Region Coverage: 26.53% (37724/142178)
Branch Coverage: 23.34% (19224/82370)
Coverage Report: http://coverage.selectdb-in.cc/coverage/7563f8e38c5069f01dd6ec4bdf89b3e4fefe13ba_7563f8e38c5069f01dd6ec4bdf89b3e4fefe13ba/report/index.html

@doris-robot
Copy link

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

query1	0.04	0.04	0.04
query2	0.07	0.04	0.04
query3	0.23	0.05	0.05
query4	1.68	0.08	0.07
query5	0.49	0.48	0.49
query6	1.15	0.66	0.65
query7	0.02	0.02	0.01
query8	0.06	0.04	0.04
query9	0.56	0.50	0.52
query10	0.56	0.57	0.57
query11	0.15	0.12	0.11
query12	0.14	0.12	0.13
query13	0.62	0.59	0.60
query14	0.77	0.78	0.78
query15	0.84	0.83	0.85
query16	0.35	0.36	0.35
query17	0.96	1.00	0.98
query18	0.25	0.25	0.25
query19	1.77	1.70	1.72
query20	0.01	0.01	0.01
query21	15.40	0.64	0.63
query22	4.02	7.04	1.24
query23	17.87	1.29	1.17
query24	1.52	0.42	0.19
query25	0.16	0.07	0.08
query26	0.29	0.17	0.16
query27	0.07	0.07	0.08
query28	13.31	0.97	0.94
query29	12.54	3.34	3.29
query30	0.26	0.06	0.05
query31	2.87	0.38	0.38
query32	3.30	0.47	0.47
query33	2.87	2.84	2.89
query34	15.47	4.39	4.34
query35	4.37	4.39	4.41
query36	0.67	0.47	0.47
query37	0.18	0.15	0.14
query38	0.15	0.14	0.13
query39	0.04	0.04	0.03
query40	0.18	0.15	0.15
query41	0.10	0.04	0.05
query42	0.05	0.05	0.05
query43	0.04	0.04	0.03
Total cold run time: 106.45 s
Total hot run time: 29.44 s

@doris-robot
Copy link

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

Load test result on commit 7563f8e38c5069f01dd6ec4bdf89b3e4fefe13ba with default session variables
Stream load json:         19 seconds loaded 2358488459 Bytes, about 118 MB/s
Stream load orc:          58 seconds loaded 1101869774 Bytes, about 18 MB/s
Stream load parquet:      31 seconds loaded 861443392 Bytes, about 26 MB/s
Insert into select:       16.0 seconds inserted 10000000 Rows, about 625K ops/s

@jacktengg
Copy link
Contributor Author

run buildall

@doris-robot
Copy link

TeamCity be ut coverage result:
Function Coverage: 35.63% (8885/24935)
Line Coverage: 27.36% (72954/266686)
Region Coverage: 26.52% (37708/142177)
Branch Coverage: 23.33% (19219/82370)
Coverage Report: http://coverage.selectdb-in.cc/coverage/4bdb91326ceeced20d90db9bd2102e833499f60d_4bdb91326ceeced20d90db9bd2102e833499f60d/report/index.html

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17688	4090	4083	4083
q2	2014	195	183	183
q3	10470	1152	1245	1152
q4	10210	857	988	857
q5	7507	2990	2942	2942
q6	217	138	135	135
q7	1097	629	603	603
q8	9442	2034	2018	2018
q9	6964	6190	6199	6190
q10	8468	3576	3518	3518
q11	421	242	242	242
q12	382	217	212	212
q13	17782	2891	2923	2891
q14	268	234	237	234
q15	527	482	477	477
q16	508	370	378	370
q17	954	886	889	886
q18	7235	6566	6345	6345
q19	3539	1537	1530	1530
q20	551	321	305	305
q21	3572	3115	3088	3088
q22	357	300	302	300
Total cold run time: 110173 ms
Total hot run time: 38561 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4129	4063	4039	4039
q2	322	212	217	212
q3	2956	2962	2932	2932
q4	1869	1833	1827	1827
q5	5213	5210	5243	5210
q6	210	122	128	122
q7	2241	1792	1808	1792
q8	3197	3254	3252	3252
q9	8438	8475	8448	8448
q10	3787	4470	4013	4013
q11	570	461	465	461
q12	761	616	642	616
q13	17164	3138	3127	3127
q14	302	270	272	270
q15	529	484	502	484
q16	467	420	409	409
q17	1783	1781	1757	1757
q18	7991	7782	7653	7653
q19	1748	1665	1646	1646
q20	1976	1805	1824	1805
q21	5210	4899	5013	4899
q22	520	438	450	438
Total cold run time: 71383 ms
Total hot run time: 55412 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 180915 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 4bdb91326ceeced20d90db9bd2102e833499f60d, data reload: false

query1	1214	370	1112	370
query2	6194	2004	1950	1950
query3	6662	205	203	203
query4	24683	21374	21448	21374
query5	4170	397	407	397
query6	270	190	175	175
query7	4612	299	297	297
query8	233	170	181	170
query9	8478	2250	2263	2250
query10	454	251	244	244
query11	14961	14443	14434	14434
query12	140	88	86	86
query13	1636	364	362	362
query14	8495	6865	6972	6865
query15	208	171	183	171
query16	6720	269	268	268
query17	999	591	569	569
query18	1848	283	277	277
query19	195	156	159	156
query20	92	89	87	87
query21	197	140	130	130
query22	4934	4852	4843	4843
query23	33439	33122	32590	32590
query24	11702	3234	3228	3228
query25	711	432	433	432
query26	1903	166	158	158
query27	3287	375	370	370
query28	7358	1872	1869	1869
query29	1302	598	636	598
query30	307	168	172	168
query31	987	781	752	752
query32	101	57	55	55
query33	667	243	243	243
query34	1331	518	526	518
query35	855	706	716	706
query36	998	882	885	882
query37	276	73	71	71
query38	3562	3691	3535	3535
query39	1650	1570	1588	1570
query40	243	138	129	129
query41	54	45	45	45
query42	112	105	107	105
query43	467	432	426	426
query44	1205	763	769	763
query45	291	288	274	274
query46	1113	827	813	813
query47	1963	1843	1862	1843
query48	372	307	304	304
query49	972	375	387	375
query50	822	413	403	403
query51	6824	6721	6721	6721
query52	108	96	96	96
query53	363	298	288	288
query54	282	239	240	239
query55	86	80	82	80
query56	251	242	233	233
query57	1255	1202	1141	1141
query58	231	212	220	212
query59	2857	2427	2346	2346
query60	244	228	232	228
query61	95	90	89	89
query62	671	446	462	446
query63	305	288	286	286
query64	5790	3191	3157	3157
query65	3077	3007	3016	3007
query66	1311	322	318	318
query67	15282	14760	14717	14717
query68	7756	560	584	560
query69	559	314	300	300
query70	1342	1096	1133	1096
query71	521	273	272	272
query72	6260	2553	2409	2409
query73	795	320	321	320
query74	6784	6283	6493	6283
query75	3595	2271	2332	2271
query76	6059	1240	1246	1240
query77	636	246	245	245
query78	10899	10130	10102	10102
query79	9797	527	536	527
query80	1851	434	430	430
query81	522	238	230	230
query82	685	91	95	91
query83	206	166	165	165
query84	269	88	84	84
query85	1373	293	281	281
query86	452	285	297	285
query87	3725	3531	3472	3472
query88	4164	2251	2282	2251
query89	553	368	373	368
query90	1931	185	179	179
query91	133	106	107	106
query92	59	52	47	47
query93	6802	527	522	522
query94	1041	176	179	176
query95	422	322	307	307
query96	624	267	267	267
query97	2682	2464	2502	2464
query98	235	220	228	220
query99	1309	838	838	838
Total cold run time: 298518 ms
Total hot run time: 180915 ms

@doris-robot
Copy link

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

query1	0.04	0.04	0.03
query2	0.09	0.04	0.04
query3	0.24	0.06	0.05
query4	1.66	0.08	0.08
query5	0.48	0.48	0.48
query6	1.16	0.66	0.66
query7	0.03	0.01	0.01
query8	0.05	0.04	0.04
query9	0.57	0.50	0.50
query10	0.54	0.56	0.57
query11	0.16	0.12	0.11
query12	0.14	0.12	0.12
query13	0.61	0.60	0.60
query14	0.77	0.78	0.81
query15	0.86	0.84	0.83
query16	0.35	0.35	0.36
query17	1.00	1.00	1.00
query18	0.25	0.24	0.27
query19	1.88	1.74	1.72
query20	0.02	0.01	0.01
query21	15.40	0.64	0.63
query22	3.78	6.90	1.42
query23	17.92	1.35	1.33
query24	1.61	0.21	0.19
query25	0.15	0.08	0.07
query26	0.27	0.16	0.16
query27	0.08	0.07	0.08
query28	13.80	0.96	0.95
query29	12.57	3.31	3.28
query30	0.26	0.06	0.06
query31	2.86	0.40	0.37
query32	3.27	0.47	0.47
query33	2.90	2.89	2.96
query34	15.50	4.33	4.34
query35	4.37	4.39	4.37
query36	0.69	0.47	0.47
query37	0.18	0.15	0.16
query38	0.16	0.14	0.13
query39	0.04	0.03	0.04
query40	0.18	0.15	0.18
query41	0.09	0.04	0.04
query42	0.06	0.04	0.05
query43	0.04	0.03	0.04
Total cold run time: 107.08 s
Total hot run time: 29.84 s

@doris-robot
Copy link

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

Load test result on commit 4bdb91326ceeced20d90db9bd2102e833499f60d with default session variables
Stream load json:         19 seconds loaded 2358488459 Bytes, about 118 MB/s
Stream load orc:          58 seconds loaded 1101869774 Bytes, about 18 MB/s
Stream load parquet:      31 seconds loaded 861443392 Bytes, about 26 MB/s
Insert into select:       17.0 seconds inserted 10000000 Rows, about 588K ops/s

@jacktengg jacktengg force-pushed the fuzzy-spill branch 2 times, most recently from 4293418 to 5c3196f Compare April 7, 2024 07:26
@jacktengg
Copy link
Contributor Author

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

@@ -570,6 +563,15 @@ Status PartitionedHashJoinProbeOperatorX::push(RuntimeState* state, vectorized::
return Status::OK();
}

Status PartitionedHashJoinProbeOperatorX::_setup_internal_operator_for_non_spill(
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 '_setup_internal_operator_for_non_spill' can be made static [readability-convert-member-functions-to-static]

be/src/pipeline/exec/partitioned_hash_join_probe_operator.h:197:

-     [[nodiscard]] Status _setup_internal_operator_for_non_spill(
+     [[nodiscard]] static Status _setup_internal_operator_for_non_spill(

@@ -55,10 +57,69 @@ Status PartitionedHashJoinSinkLocalState::close(RuntimeState* state, Status exec
return PipelineXSpillSinkLocalState::close(state, exec_status);
}

size_t PartitionedHashJoinSinkLocalState::revocable_mem_size(RuntimeState* state) 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 'revocable_mem_size' can be made static [readability-convert-member-functions-to-static]

Suggested change
size_t PartitionedHashJoinSinkLocalState::revocable_mem_size(RuntimeState* state) const {
size_t PartitionedHashJoinSinkLocalState::revocable_mem_size(RuntimeState* state) {

be/src/pipeline/exec/partitioned_hash_join_sink_operator.h:50:

-     size_t revocable_mem_size(RuntimeState* state) const;
+     static size_t revocable_mem_size(RuntimeState* state) ;

@@ -124,14 +185,53 @@
return Status::OK();
}

Status PartitionedHashJoinSinkLocalState::_partition_block(RuntimeState* state,
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 '_partition_block' can be made static [readability-convert-member-functions-to-static]

be/src/pipeline/exec/partitioned_hash_join_sink_operator.h:59:

-     Status _partition_block(RuntimeState* state, vectorized::Block* in_block, size_t begin,
+     static Status _partition_block(RuntimeState* state, vectorized::Block* in_block, size_t begin,

return _inner_sink_operator->open(state);
}

Status PartitionedHashJoinSinkOperatorX::_setup_internal_operator(RuntimeState* state) {
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 '_setup_internal_operator' can be made static [readability-convert-member-functions-to-static]

be/src/pipeline/exec/partitioned_hash_join_sink_operator.h:138:

-     Status _setup_internal_operator(RuntimeState* state);
+     static Status _setup_internal_operator(RuntimeState* state);

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17596	4138	4082	4082
q2	2016	187	179	179
q3	10473	1162	1286	1162
q4	10207	819	1002	819
q5	7556	2920	2949	2920
q6	217	129	131	129
q7	1090	651	613	613
q8	9414	2010	2049	2010
q9	6784	6233	6163	6163
q10	8450	3507	3522	3507
q11	420	235	231	231
q12	389	204	202	202
q13	17783	2923	2921	2921
q14	265	232	228	228
q15	509	481	487	481
q16	512	382	371	371
q17	960	910	861	861
q18	7273	6464	6385	6385
q19	1612	1551	1520	1520
q20	569	309	296	296
q21	3547	3076	3046	3046
q22	335	293	294	293
Total cold run time: 107977 ms
Total hot run time: 38419 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4066	4031	4068	4031
q2	332	219	219	219
q3	2976	2962	2927	2927
q4	1880	1850	1822	1822
q5	5251	5223	5239	5223
q6	209	125	125	125
q7	2245	1813	1813	1813
q8	3221	3286	3282	3282
q9	8423	8465	8444	8444
q10	3779	3964	4012	3964
q11	566	459	474	459
q12	763	576	600	576
q13	15771	3072	3135	3072
q14	323	272	267	267
q15	531	505	469	469
q16	498	441	439	439
q17	1779	1762	1762	1762
q18	8363	7859	7546	7546
q19	2495	1684	1668	1668
q20	2056	1814	1882	1814
q21	5122	4988	4935	4935
q22	489	427	427	427
Total cold run time: 71138 ms
Total hot run time: 55284 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 181269 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 5c3196f917b933a2cd6b40925fcea2c658135e0d, data reload: false

query1	899	1124	1106	1106
query2	6309	1998	1885	1885
query3	6678	206	207	206
query4	24568	21404	21389	21389
query5	4176	398	407	398
query6	281	206	179	179
query7	4598	301	295	295
query8	229	167	168	167
query9	8446	2256	2247	2247
query10	451	232	234	232
query11	14948	14396	14508	14396
query12	139	90	84	84
query13	1634	365	366	365
query14	8563	6946	6841	6841
query15	210	178	184	178
query16	6609	268	267	267
query17	984	593	563	563
query18	1788	281	279	279
query19	199	152	155	152
query20	93	85	88	85
query21	207	130	128	128
query22	5001	4830	4781	4781
query23	33536	32943	32519	32519
query24	11776	3198	3139	3139
query25	721	406	414	406
query26	1836	164	160	160
query27	3245	372	382	372
query28	7455	1915	1873	1873
query29	1136	610	612	610
query30	307	175	175	175
query31	1019	732	773	732
query32	107	60	57	57
query33	673	252	240	240
query34	1208	496	509	496
query35	859	711	722	711
query36	1016	868	898	868
query37	242	76	74	74
query38	3585	3623	3569	3569
query39	1630	1590	1576	1576
query40	247	135	128	128
query41	50	46	46	46
query42	118	103	106	103
query43	462	442	436	436
query44	1165	748	742	742
query45	271	265	272	265
query46	1117	829	792	792
query47	1979	1897	1875	1875
query48	377	310	300	300
query49	919	363	362	362
query50	817	412	418	412
query51	6891	6749	6751	6749
query52	106	93	93	93
query53	350	289	292	289
query54	284	229	220	220
query55	90	71	72	71
query56	246	230	251	230
query57	1283	1163	1161	1161
query58	241	235	217	217
query59	2848	2605	2460	2460
query60	253	225	227	225
query61	95	88	85	85
query62	678	434	453	434
query63	308	272	270	270
query64	5887	3137	3159	3137
query65	3015	2998	2984	2984
query66	1333	313	316	313
query67	15686	14883	14745	14745
query68	7389	561	575	561
query69	545	298	288	288
query70	1322	1118	1080	1080
query71	530	266	262	262
query72	6260	2573	2393	2393
query73	800	317	316	316
query74	6793	6315	6371	6315
query75	3594	2330	2296	2296
query76	6072	1213	1216	1213
query77	607	245	245	245
query78	10870	10184	10013	10013
query79	9501	531	530	530
query80	1337	427	434	427
query81	508	234	240	234
query82	639	96	95	95
query83	214	168	181	168
query84	270	86	88	86
query85	1348	289	287	287
query86	442	298	290	290
query87	3680	3451	3480	3451
query88	3528	2272	2277	2272
query89	545	373	367	367
query90	2019	179	176	176
query91	133	101	110	101
query92	58	47	48	47
query93	6572	535	533	533
query94	972	189	183	183
query95	437	319	319	319
query96	615	271	266	266
query97	2679	2487	2490	2487
query98	228	208	217	208
query99	1364	868	816	816
Total cold run time: 296348 ms
Total hot run time: 181269 ms

@doris-robot
Copy link

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

query1	0.03	0.03	0.03
query2	0.08	0.04	0.04
query3	0.24	0.05	0.05
query4	1.66	0.06	0.06
query5	0.48	0.48	0.49
query6	1.15	0.66	0.66
query7	0.02	0.02	0.01
query8	0.05	0.04	0.04
query9	0.57	0.49	0.51
query10	0.55	0.57	0.56
query11	0.16	0.12	0.11
query12	0.14	0.12	0.12
query13	0.61	0.60	0.59
query14	0.78	0.79	0.81
query15	0.86	0.83	0.84
query16	0.35	0.36	0.36
query17	0.98	0.96	0.98
query18	0.25	0.25	0.26
query19	1.86	1.74	1.78
query20	0.02	0.01	0.01
query21	15.43	0.65	0.64
query22	4.15	5.97	1.85
query23	17.74	1.31	1.27
query24	1.51	0.20	0.19
query25	0.15	0.09	0.08
query26	0.27	0.16	0.16
query27	0.08	0.07	0.08
query28	13.85	0.96	0.94
query29	12.65	3.30	3.23
query30	0.26	0.06	0.06
query31	2.85	0.38	0.39
query32	3.27	0.47	0.47
query33	2.86	2.87	2.89
query34	15.51	4.35	4.34
query35	4.38	4.34	4.39
query36	0.68	0.47	0.46
query37	0.19	0.16	0.16
query38	0.15	0.14	0.14
query39	0.04	0.03	0.04
query40	0.18	0.15	0.14
query41	0.10	0.05	0.05
query42	0.07	0.06	0.04
query43	0.04	0.04	0.04
Total cold run time: 107.25 s
Total hot run time: 30.13 s

@doris-robot
Copy link

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

Load test result on commit 5c3196f917b933a2cd6b40925fcea2c658135e0d with default session variables
Stream load json:         19 seconds loaded 2358488459 Bytes, about 118 MB/s
Stream load orc:          58 seconds loaded 1101869774 Bytes, about 18 MB/s
Stream load parquet:      31 seconds loaded 861443392 Bytes, about 26 MB/s
Insert into select:       16.1 seconds inserted 10000000 Rows, about 621K ops/s

@doris-robot
Copy link

TeamCity be ut coverage result:
Function Coverage: 35.63% (8887/24943)
Line Coverage: 27.34% (72977/266892)
Region Coverage: 26.51% (37729/142302)
Branch Coverage: 23.33% (19225/82420)
Coverage Report: http://coverage.selectdb-in.cc/coverage/5c3196f917b933a2cd6b40925fcea2c658135e0d_5c3196f917b933a2cd6b40925fcea2c658135e0d/report/index.html

@jacktengg
Copy link
Contributor Author

run builall

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

_path, PrettyPrinter::print_bytes(_disk_capacity_bytes),
PrettyPrinter::print_bytes(_available_bytes),
PrettyPrinter::print_bytes(incoming_data_size));
return true;
Copy link
Contributor

Choose a reason for hiding this comment

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

warning: redundant boolean literal in conditional return statement [readability-simplify-boolean-expr]

be/src/vec/spill/spill_stream_manager.cpp:329:

-         if (used_pct >= config::spill_storage_usage_percent / 100.0) {
-             LOG(WARNING) << fmt::format(
-                     "spill data reach limit, path: {}, capacity: {}, available: {}, incoming "
-                     "bytes: {}",
-                     _path, PrettyPrinter::print_bytes(_disk_capacity_bytes),
-                     PrettyPrinter::print_bytes(_available_bytes),
-                     PrettyPrinter::print_bytes(incoming_data_size));
-             return true;
-         }
-         return false;
+         return used_pct >= config::spill_storage_usage_percent / 100.0;

@jacktengg jacktengg force-pushed the fuzzy-spill branch 2 times, most recently from 54b9f4e to bc31130 Compare April 9, 2024 15:51
@jacktengg
Copy link
Contributor Author

run buildall

@doris-robot
Copy link

TeamCity be ut coverage result:
Function Coverage: 35.63% (8904/24990)
Line Coverage: 27.36% (73130/267308)
Region Coverage: 26.52% (37789/142471)
Branch Coverage: 23.33% (19257/82538)
Coverage Report: http://coverage.selectdb-in.cc/coverage/bc3113099881a46ebf1fd803527093ebf796e729_bc3113099881a46ebf1fd803527093ebf796e729/report/index.html

@jacktengg
Copy link
Contributor Author

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17600	4263	4213	4213
q2	2012	188	200	188
q3	10448	1234	1266	1234
q4	10191	783	785	783
q5	7503	2715	2635	2635
q6	239	134	129	129
q7	998	610	586	586
q8	9219	2134	2081	2081
q9	9498	6708	6677	6677
q10	9209	3916	3906	3906
q11	434	243	243	243
q12	539	220	228	220
q13	18388	3233	3065	3065
q14	261	214	206	206
q15	516	479	464	464
q16	508	405	400	400
q17	974	719	684	684
q18	8401	7807	7727	7727
q19	4024	1559	1517	1517
q20	639	318	327	318
q21	5191	4130	4148	4130
q22	366	296	296	296
Total cold run time: 117158 ms
Total hot run time: 41702 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4500	4393	4399	4393
q2	381	284	267	267
q3	3187	2970	2762	2762
q4	1892	1595	1694	1595
q5	5499	5473	5515	5473
q6	208	125	128	125
q7	2304	1963	1963	1963
q8	3224	3404	3401	3401
q9	8723	8723	8497	8497
q10	4006	3816	3908	3816
q11	609	519	501	501
q12	786	630	627	627
q13	16933	3120	3113	3113
q14	284	258	264	258
q15	516	482	460	460
q16	474	428	432	428
q17	1766	1485	1465	1465
q18	7585	7695	7422	7422
q19	1649	1584	1580	1580
q20	1958	1777	1752	1752
q21	9168	4731	4704	4704
q22	565	503	495	495
Total cold run time: 76217 ms
Total hot run time: 55097 ms

@doris-robot
Copy link

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

query1	921	361	349	349
query2	6438	2477	2400	2400
query3	6653	215	221	215
query4	24303	21433	21304	21304
query5	4131	418	416	416
query6	268	176	175	175
query7	4585	292	283	283
query8	246	216	194	194
query9	8659	2444	2440	2440
query10	443	261	260	260
query11	14950	14250	14285	14250
query12	135	95	87	87
query13	1653	384	381	381
query14	10856	8151	8557	8151
query15	234	175	181	175
query16	8002	271	268	268
query17	1734	594	554	554
query18	1952	284	281	281
query19	205	153	152	152
query20	97	87	87	87
query21	195	134	133	133
query22	5071	4791	4863	4791
query23	34020	33528	33553	33528
query24	9876	2926	2951	2926
query25	555	365	366	365
query26	688	157	151	151
query27	2181	323	323	323
query28	5908	2093	2061	2061
query29	866	625	626	625
query30	228	156	156	156
query31	962	732	738	732
query32	90	52	55	52
query33	638	248	253	248
query34	899	481	491	481
query35	767	665	676	665
query36	1090	908	920	908
query37	100	67	64	64
query38	2858	2796	2735	2735
query39	1628	1572	1553	1553
query40	199	124	123	123
query41	41	39	37	37
query42	100	96	95	95
query43	585	561	536	536
query44	1065	723	731	723
query45	269	248	260	248
query46	1073	735	715	715
query47	1961	1897	1897	1897
query48	380	296	294	294
query49	842	398	398	398
query50	781	388	410	388
query51	6759	6733	6652	6652
query52	111	90	89	89
query53	348	275	282	275
query54	878	438	423	423
query55	76	74	73	73
query56	248	225	225	225
query57	1218	1150	1142	1142
query58	212	195	197	195
query59	3383	3049	3107	3049
query60	258	239	234	234
query61	90	88	90	88
query62	621	472	474	472
query63	312	280	286	280
query64	8435	7335	7362	7335
query65	3121	3083	3095	3083
query66	777	341	338	338
query67	15351	14987	14868	14868
query68	5901	554	541	541
query69	532	310	315	310
query70	1190	1125	1129	1125
query71	439	259	268	259
query72	7975	2538	2369	2369
query73	725	333	330	330
query74	6605	6073	6065	6065
query75	3498	2638	2610	2610
query76	3277	1033	993	993
query77	591	266	266	266
query78	10691	10379	10094	10094
query79	2821	513	518	513
query80	1233	443	436	436
query81	490	216	225	216
query82	735	94	91	91
query83	202	170	165	165
query84	272	92	84	84
query85	1245	279	270	270
query86	443	297	300	297
query87	3267	3128	3074	3074
query88	4470	2460	2450	2450
query89	481	372	383	372
query90	2058	193	189	189
query91	126	95	101	95
query92	59	47	49	47
query93	4169	529	505	505
query94	1280	184	181	181
query95	395	300	300	300
query96	607	279	277	277
query97	3192	2989	2969	2969
query98	233	227	212	212
query99	1292	912	905	905
Total cold run time: 285073 ms
Total hot run time: 187804 ms

@jacktengg
Copy link
Contributor Author

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17920	4350	4229	4229
q2	2022	185	188	185
q3	10458	1237	1186	1186
q4	10157	780	837	780
q5	7446	2684	2668	2668
q6	215	130	129	129
q7	964	583	571	571
q8	9221	2113	2071	2071
q9	8974	6554	6464	6464
q10	8854	3716	3714	3714
q11	454	234	236	234
q12	464	217	215	215
q13	17763	2974	2977	2974
q14	263	219	226	219
q15	504	463	478	463
q16	505	386	378	378
q17	968	632	762	632
q18	8081	7448	7265	7265
q19	8462	1552	1480	1480
q20	654	308	325	308
q21	5026	3117	3911	3117
q22	354	278	276	276
Total cold run time: 119729 ms
Total hot run time: 39558 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4308	4240	4206	4206
q2	376	267	266	266
q3	2974	2781	2751	2751
q4	1909	1619	1637	1619
q5	5271	5320	5256	5256
q6	211	123	123	123
q7	2247	1891	1881	1881
q8	3173	3314	3313	3313
q9	8348	8365	8341	8341
q10	3868	3690	3612	3612
q11	562	479	484	479
q12	745	603	618	603
q13	17383	2956	2917	2917
q14	299	275	251	251
q15	526	478	476	476
q16	466	413	420	413
q17	1764	1479	1475	1475
q18	7638	7521	7307	7307
q19	1669	1510	1585	1510
q20	1951	1795	1757	1757
q21	4855	4840	4852	4840
q22	583	500	494	494
Total cold run time: 71126 ms
Total hot run time: 53890 ms

@doris-robot
Copy link

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

query1	915	365	340	340
query2	7427	2274	2378	2274
query3	6654	209	215	209
query4	22665	21232	21269	21232
query5	4146	427	443	427
query6	275	174	173	173
query7	4590	294	291	291
query8	244	193	190	190
query9	8546	2411	2391	2391
query10	441	259	254	254
query11	14727	14190	14170	14170
query12	144	93	92	92
query13	1649	385	384	384
query14	10702	7656	8398	7656
query15	265	175	167	167
query16	8166	267	254	254
query17	1861	550	541	541
query18	2112	286	276	276
query19	202	149	150	149
query20	90	87	87	87
query21	195	129	125	125
query22	5090	4812	4903	4812
query23	34355	33769	33506	33506
query24	11613	2891	2914	2891
query25	629	368	370	368
query26	1748	164	156	156
query27	2912	321	337	321
query28	7196	2072	2076	2072
query29	1002	616	599	599
query30	300	152	152	152
query31	1007	782	748	748
query32	99	54	54	54
query33	742	273	253	253
query34	1013	484	486	484
query35	805	687	665	665
query36	1074	973	917	917
query37	198	70	71	70
query38	2911	2792	2777	2777
query39	1634	1541	1545	1541
query40	274	129	127	127
query41	43	38	38	38
query42	110	100	101	100
query43	598	545	558	545
query44	1231	729	748	729
query45	265	270	247	247
query46	1084	722	716	716
query47	2007	1937	1893	1893
query48	399	302	293	293
query49	1187	413	411	411
query50	780	394	388	388
query51	6895	6800	6790	6790
query52	108	93	94	93
query53	363	283	311	283
query54	956	444	444	444
query55	75	73	76	73
query56	246	226	225	225
query57	1273	1157	1184	1157
query58	247	200	209	200
query59	3539	3008	3335	3008
query60	270	236	242	236
query61	91	88	89	88
query62	672	461	477	461
query63	311	286	285	285
query64	9752	7392	7366	7366
query65	3113	3122	3091	3091
query66	1381	349	340	340
query67	15155	15112	14948	14948
query68	4592	550	533	533
query69	503	305	299	299
query70	1200	1138	1121	1121
query71	405	280	277	277
query72	7303	2540	2382	2382
query73	718	322	322	322
query74	6451	6265	6196	6196
query75	3495	2683	2608	2608
query76	2953	981	998	981
query77	602	271	268	268
query78	10729	10168	10119	10119
query79	2445	527	527	527
query80	825	455	443	443
query81	510	220	225	220
query82	712	100	92	92
query83	261	163	166	163
query84	238	91	83	83
query85	1561	331	263	263
query86	466	304	269	269
query87	3269	3122	3108	3108
query88	4195	2347	2362	2347
query89	469	372	395	372
query90	1980	195	191	191
query91	127	100	100	100
query92	63	50	50	50
query93	1862	527	511	511
query94	1168	194	188	188
query95	398	295	300	295
query96	609	264	261	261
query97	3192	2982	2991	2982
query98	231	221	217	217
query99	1154	901	920	901
Total cold run time: 287455 ms
Total hot run time: 187332 ms

@jacktengg
Copy link
Contributor Author

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	6124	4258	4249	4249
q2	401	186	185	185
q3	1401	1156	1144	1144
q4	1012	763	894	763
q5	2683	2678	2636	2636
q6	219	137	136	136
q7	1025	580	582	580
q8	1970	2150	2297	2150
q9	7554	7335	7342	7335
q10	4058	3871	4002	3871
q11	361	240	248	240
q12	386	233	219	219
q13	16366	3091	3211	3091
q14	282	226	215	215
q15	539	485	479	479
q16	502	404	400	400
q17	981	656	731	656
q18	8327	7982	7953	7953
q19	1625	1596	1516	1516
q20	586	331	315	315
q21	10829	3225	4170	3225
q22	353	288	290	288
Total cold run time: 67584 ms
Total hot run time: 41646 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4369	4361	4378	4361
q2	363	268	263	263
q3	3163	2903	2733	2733
q4	1870	1534	1572	1534
q5	5257	5298	5318	5298
q6	213	121	122	121
q7	2264	1853	1860	1853
q8	3178	3345	3310	3310
q9	9023	9050	8976	8976
q10	3879	3656	3690	3656
q11	574	490	488	488
q12	757	557	585	557
q13	3604	3078	2999	2999
q14	284	245	261	245
q15	513	471	480	471
q16	462	425	418	418
q17	1743	1485	1476	1476
q18	7461	7599	7458	7458
q19	1722	1581	1582	1581
q20	1944	1744	1774	1744
q21	5025	4829	5032	4829
q22	622	485	486	485
Total cold run time: 58290 ms
Total hot run time: 54856 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 187662 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 10b6d1ff33ff0ac9fe2b18c65c63cacc2b030aa7, data reload: false

query1	904	370	358	358
query2	7457	2498	2287	2287
query3	6647	211	215	211
query4	22987	21364	21276	21276
query5	4125	439	424	424
query6	261	172	178	172
query7	4585	289	291	289
query8	237	188	188	188
query9	8564	2412	2372	2372
query10	437	255	250	250
query11	14914	14172	14147	14147
query12	139	86	84	84
query13	1647	368	383	368
query14	10700	8606	7894	7894
query15	208	167	170	167
query16	7823	267	271	267
query17	1559	564	538	538
query18	1965	280	266	266
query19	206	149	159	149
query20	93	86	84	84
query21	195	133	136	133
query22	5021	4794	4816	4794
query23	34056	33490	33549	33490
query24	6786	2979	2937	2937
query25	474	372	372	372
query26	691	159	152	152
query27	1902	317	337	317
query28	3715	2056	2044	2044
query29	837	606	609	606
query30	240	164	156	156
query31	973	773	750	750
query32	60	56	57	56
query33	483	260	250	250
query34	882	496	481	481
query35	768	690	687	687
query36	1043	908	884	884
query37	109	68	70	68
query38	2863	2748	2733	2733
query39	1626	1575	1534	1534
query40	196	128	123	123
query41	42	39	38	38
query42	103	98	97	97
query43	589	582	536	536
query44	1120	732	740	732
query45	256	250	252	250
query46	1052	751	720	720
query47	1951	1860	1838	1838
query48	372	307	301	301
query49	764	411	422	411
query50	769	407	400	400
query51	6831	6804	6805	6804
query52	107	94	92	92
query53	357	289	288	288
query54	546	434	440	434
query55	76	73	76	73
query56	255	229	237	229
query57	1192	1136	1165	1136
query58	226	210	215	210
query59	3471	3317	3197	3197
query60	290	251	245	245
query61	107	107	107	107
query62	591	471	460	460
query63	329	293	296	293
query64	7814	7510	7441	7441
query65	3122	3120	3102	3102
query66	787	350	349	349
query67	15119	14920	14848	14848
query68	4606	551	552	551
query69	481	313	316	313
query70	1094	1151	1142	1142
query71	397	283	288	283
query72	7755	2665	2488	2488
query73	701	330	325	325
query74	6468	6085	6079	6079
query75	3302	2677	2625	2625
query76	2354	1025	898	898
query77	451	275	276	275
query78	10840	10136	10160	10136
query79	3554	520	513	513
query80	1934	448	448	448
query81	511	225	218	218
query82	962	99	93	93
query83	283	313	168	168
query84	300	84	87	84
query85	1613	278	256	256
query86	533	298	315	298
query87	3308	3092	3085	3085
query88	4504	2346	2339	2339
query89	495	388	393	388
query90	2057	195	187	187
query91	123	98	96	96
query92	61	49	47	47
query93	5674	517	514	514
query94	1234	181	183	181
query95	387	303	308	303
query96	611	265	265	265
query97	3161	2971	2982	2971
query98	233	216	212	212
query99	1198	892	922	892
Total cold run time: 277801 ms
Total hot run time: 187662 ms

@@ -1972,7 +1972,6 @@ public void initFuzzyModeVariables() {
this.topnOptLimitThreshold = (int) Math.pow(10, random.nextInt(5));

// for spill to disk
/*
if (Config.pull_request_id > 10000) {
if (Config.pull_request_id % 2 == 1) {
this.enablePipelineXEngine = true;
Copy link
Contributor

Choose a reason for hiding this comment

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

Just use default value.

@jacktengg jacktengg force-pushed the fuzzy-spill branch 2 times, most recently from 97d65da to 5e1cae7 Compare May 14, 2024 02:20
@jacktengg
Copy link
Contributor Author

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17988	7893	4331	4331
q2	2025	183	191	183
q3	9385	1228	1144	1144
q4	10307	835	845	835
q5	7494	2687	2670	2670
q6	216	131	136	131
q7	1012	597	586	586
q8	9227	2092	2090	2090
q9	8927	6602	6571	6571
q10	9010	3758	3702	3702
q11	471	245	244	244
q12	404	218	215	215
q13	17752	2966	3007	2966
q14	269	208	219	208
q15	512	473	470	470
q16	518	383	382	382
q17	988	673	718	673
q18	8112	7520	7400	7400
q19	7526	1507	1514	1507
q20	658	304	306	304
q21	5109	3902	4032	3902
q22	363	274	283	274
Total cold run time: 118273 ms
Total hot run time: 40788 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4367	4246	4234	4234
q2	373	281	283	281
q3	3002	2796	2708	2708
q4	1862	1615	1597	1597
q5	5317	5293	5305	5293
q6	216	125	125	125
q7	2254	1901	1870	1870
q8	3217	3369	3351	3351
q9	8409	8397	8394	8394
q10	3915	3719	3676	3676
q11	561	477	486	477
q12	739	599	609	599
q13	16031	2956	3047	2956
q14	288	285	274	274
q15	516	470	480	470
q16	470	425	426	425
q17	1770	1491	1481	1481
q18	7741	7598	7482	7482
q19	1664	1596	1586	1586
q20	1941	1781	1773	1773
q21	8552	5056	4952	4952
q22	560	490	485	485
Total cold run time: 73765 ms
Total hot run time: 54489 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 187548 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 5e1cae7659f375c78006fa15726b4c4bf75dec0c, data reload: false

query1	907	368	342	342
query2	6442	2476	2357	2357
query3	6664	209	215	209
query4	23683	21151	21415	21151
query5	4142	424	435	424
query6	270	176	179	176
query7	4584	288	292	288
query8	240	193	203	193
query9	8545	2457	2457	2457
query10	451	262	265	262
query11	14733	14251	14166	14166
query12	142	96	89	89
query13	1648	392	378	378
query14	10706	8452	7629	7629
query15	246	169	175	169
query16	8075	270	253	253
query17	1863	580	556	556
query18	2063	304	275	275
query19	211	155	153	153
query20	92	88	84	84
query21	208	134	129	129
query22	5027	4826	4847	4826
query23	34295	33377	33371	33371
query24	11678	2952	2857	2857
query25	648	373	370	370
query26	1778	166	155	155
query27	2980	322	326	322
query28	7679	2066	2059	2059
query29	1034	598	620	598
query30	277	159	156	156
query31	1008	779	727	727
query32	93	53	57	53
query33	765	264	253	253
query34	1084	484	486	484
query35	820	670	690	670
query36	1080	941	941	941
query37	280	74	67	67
query38	2937	2763	2764	2763
query39	1631	1602	1548	1548
query40	268	141	139	139
query41	41	38	43	38
query42	108	99	96	96
query43	586	578	568	568
query44	1238	729	756	729
query45	271	246	253	246
query46	1087	699	728	699
query47	1937	1864	1895	1864
query48	388	298	312	298
query49	1193	407	405	405
query50	780	405	402	402
query51	6885	6742	6766	6742
query52	111	90	92	90
query53	358	292	302	292
query54	1000	437	430	430
query55	78	71	72	71
query56	251	221	227	221
query57	1231	1135	1147	1135
query58	221	205	213	205
query59	3489	3181	3316	3181
query60	263	245	246	245
query61	90	90	90	90
query62	671	472	490	472
query63	310	297	299	297
query64	9790	7421	7370	7370
query65	3284	3148	3139	3139
query66	1391	342	343	342
query67	15466	15097	14905	14905
query68	4670	545	540	540
query69	528	304	314	304
query70	1195	1058	1068	1058
query71	422	268	271	268
query72	7926	2562	2411	2411
query73	725	330	331	330
query74	6583	6078	6086	6078
query75	3751	2681	2668	2668
query76	3552	1014	983	983
query77	624	272	271	271
query78	10633	10225	10152	10152
query79	1478	530	517	517
query80	767	451	451	451
query81	514	223	217	217
query82	536	95	94	94
query83	270	167	166	166
query84	236	85	86	85
query85	1199	321	325	321
query86	443	310	313	310
query87	3292	3136	3126	3126
query88	4376	2461	2475	2461
query89	485	387	415	387
query90	1924	197	196	196
query91	130	100	101	100
query92	64	50	49	49
query93	1826	514	503	503
query94	1171	185	190	185
query95	381	312	313	312
query96	600	280	276	276
query97	3167	2962	3000	2962
query98	242	217	210	210
query99	1114	886	902	886
Total cold run time: 288619 ms
Total hot run time: 187548 ms

@jacktengg
Copy link
Contributor Author

run buildall

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

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

Copy link
Contributor

PR approved by anyone and no changes requested.

@jacktengg
Copy link
Contributor Author

run performance

@jacktengg jacktengg merged commit dddb0fc into apache:master May 17, 2024
26 of 28 checks passed
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 reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants