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

[feat](Nereids) support nereids hint position detaction #39113

Merged
merged 3 commits into from
Aug 15, 2024

Conversation

LiBinfeng-01
Copy link
Collaborator

When use hint in wrong position or use unsupport hint, use channel(2) to filter it out

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

@LiBinfeng-01
Copy link
Collaborator Author

run buildall

@github-actions github-actions bot added the doing label Aug 8, 2024
@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	16887	6739	4343	4343
q2	1756	208	213	208
q3	8396	1273	1076	1076
q4	9188	726	782	726
q5	6776	2580	2627	2580
q6	271	158	160	158
q7	1018	679	638	638
q8	8336	1940	1976	1940
q9	6821	6560	6593	6560
q10	6949	2191	2207	2191
q11	477	262	258	258
q12	419	247	238	238
q13	18920	2983	2973	2973
q14	298	242	264	242
q15	551	521	517	517
q16	527	400	409	400
q17	983	732	695	695
q18	8023	7567	7530	7530
q19	7259	1041	1013	1013
q20	711	348	358	348
q21	5306	4680	4557	4557
q22	1130	1040	1049	1040
Total cold run time: 111002 ms
Total hot run time: 40231 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4478	4258	4304	4258
q2	408	288	299	288
q3	2855	2636	2617	2617
q4	1886	1628	1626	1626
q5	5340	5376	5317	5317
q6	241	152	147	147
q7	2086	1690	1704	1690
q8	3218	3396	3372	3372
q9	8441	8445	8462	8445
q10	3450	3220	3162	3162
q11	615	532	514	514
q12	823	628	646	628
q13	16487	3006	3017	3006
q14	333	296	285	285
q15	569	526	530	526
q16	510	447	442	442
q17	1797	1509	1477	1477
q18	7930	8788	7568	7568
q19	1801	1700	1608	1608
q20	2089	1827	1827	1827
q21	7698	5059	4970	4970
q22	1157	1048	1071	1048
Total cold run time: 74212 ms
Total hot run time: 54821 ms

@LiBinfeng-01
Copy link
Collaborator Author

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17873	4372	4355	4355
q2	2048	209	220	209
q3	10412	1303	1176	1176
q4	10172	695	753	695
q5	7549	2571	2560	2560
q6	263	157	160	157
q7	1004	655	654	654
q8	9289	1972	1930	1930
q9	9299	6611	6605	6605
q10	7133	2256	2214	2214
q11	509	261	270	261
q12	535	257	251	251
q13	17789	3027	3012	3012
q14	297	251	251	251
q15	551	522	522	522
q16	511	403	401	401
q17	981	715	686	686
q18	8014	7445	7432	7432
q19	4441	1173	1024	1024
q20	705	345	344	344
q21	5387	4600	4594	4594
q22	1151	1060	1041	1041
Total cold run time: 115913 ms
Total hot run time: 40374 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4460	4255	4283	4255
q2	414	296	300	296
q3	2865	2705	2724	2705
q4	2033	1701	1753	1701
q5	5558	5625	5499	5499
q6	237	148	150	148
q7	2183	1809	1779	1779
q8	3366	3498	3455	3455
q9	8847	8800	8813	8800
q10	3595	3324	3236	3236
q11	645	536	516	516
q12	853	655	665	655
q13	16141	3180	3057	3057
q14	330	305	308	305
q15	578	526	514	514
q16	520	474	476	474
q17	1864	1571	1541	1541
q18	8225	7771	7666	7666
q19	5586	1728	1577	1577
q20	2143	1875	1912	1875
q21	14137	5362	5298	5298
q22	1191	1091	1069	1069
Total cold run time: 85771 ms
Total hot run time: 56421 ms

@doris-robot
Copy link

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

query1	992	435	428	428
query2	6745	1972	1911	1911
query3	6643	229	241	229
query4	34157	23608	23300	23300
query5	4053	633	636	633
query6	316	201	206	201
query7	4590	327	306	306
query8	396	360	361	360
query9	8810	2440	2413	2413
query10	980	969	871	871
query11	18039	15210	15202	15202
query12	179	124	119	119
query13	1696	444	426	426
query14	11313	8199	8273	8199
query15	404	361	350	350
query16	8039	575	509	509
query17	1724	667	596	596
query18	2279	444	436	436
query19	258	229	220	220
query20	146	139	134	134
query21	251	155	144	144
query22	4692	4431	4407	4407
query23	34181	33823	33986	33823
query24	6641	3023	3043	3023
query25	611	456	424	424
query26	731	176	177	176
query27	1935	315	330	315
query28	3998	2128	2121	2121
query29	770	461	459	459
query30	231	187	186	186
query31	1048	852	822	822
query32	114	80	79	79
query33	591	349	356	349
query34	921	521	525	521
query35	1079	947	921	921
query36	1116	961	971	961
query37	158	100	103	100
query38	4313	4211	4202	4202
query39	1513	1439	1466	1439
query40	227	153	150	150
query41	137	137	135	135
query42	139	116	114	114
query43	535	513	503	503
query44	1167	794	817	794
query45	409	361	429	361
query46	1159	797	794	794
query47	1902	1822	1832	1822
query48	427	345	355	345
query49	977	594	589	589
query50	847	471	467	467
query51	6870	6804	6651	6651
query52	118	111	113	111
query53	295	230	226	226
query54	618	517	531	517
query55	90	88	89	88
query56	341	311	308	308
query57	1186	1127	1125	1125
query58	310	308	312	308
query59	2927	2730	2667	2667
query60	362	328	334	328
query61	172	160	143	143
query62	815	694	680	680
query63	264	228	226	226
query64	9368	2544	2031	2031
query65	3232	3212	3187	3187
query66	1082	679	668	668
query67	15602	14853	14713	14713
query68	4850	594	579	579
query69	514	463	458	458
query70	1224	1205	1165	1165
query71	502	330	329	329
query72	19687	16558	17189	16558
query73	837	366	363	363
query74	9290	8876	8784	8784
query75	4823	2775	2695	2695
query76	3533	1043	1054	1043
query77	875	453	468	453
query78	9938	9134	8962	8962
query79	6286	540	547	540
query80	1235	600	601	600
query81	636	269	264	264
query82	824	168	160	160
query83	395	220	234	220
query84	299	104	105	104
query85	1262	373	364	364
query86	392	302	303	302
query87	4668	4490	4549	4490
query88	4985	2685	2685	2685
query89	469	324	330	324
query90	2073	229	229	229
query91	172	148	153	148
query92	86	79	78	78
query93	5514	548	557	548
query94	930	330	331	330
query95	404	294	295	294
query96	618	291	294	291
query97	3269	3178	3157	3157
query98	238	227	220	220
query99	1577	1297	1297	1297
Total cold run time: 320636 ms
Total hot run time: 209400 ms

@doris-robot
Copy link

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

query1	0.04	0.05	0.04
query2	0.09	0.04	0.04
query3	0.23	0.06	0.06
query4	1.66	0.08	0.07
query5	0.49	0.50	0.49
query6	1.13	0.73	0.73
query7	0.02	0.02	0.02
query8	0.06	0.05	0.05
query9	0.55	0.49	0.50
query10	0.56	0.56	0.55
query11	0.16	0.12	0.12
query12	0.15	0.13	0.12
query13	0.61	0.59	0.59
query14	0.76	0.79	0.77
query15	0.87	0.82	0.84
query16	0.39	0.36	0.37
query17	1.03	1.05	1.04
query18	0.22	0.22	0.23
query19	1.91	1.75	1.76
query20	0.02	0.01	0.01
query21	15.40	0.85	0.66
query22	3.77	7.21	2.30
query23	18.29	1.44	1.29
query24	2.14	0.22	0.23
query25	0.16	0.09	0.09
query26	0.29	0.22	0.21
query27	0.46	0.23	0.22
query28	13.28	1.02	1.00
query29	12.63	3.32	3.30
query30	0.43	0.23	0.23
query31	2.80	0.40	0.38
query32	3.26	0.49	0.49
query33	2.89	2.84	2.90
query34	17.18	4.39	4.38
query35	4.43	4.43	4.40
query36	0.66	0.49	0.50
query37	0.21	0.18	0.17
query38	0.18	0.16	0.16
query39	0.07	0.05	0.05
query40	0.17	0.16	0.15
query41	0.12	0.07	0.07
query42	0.08	0.07	0.07
query43	0.07	0.06	0.06
Total cold run time: 109.92 s
Total hot run time: 31.57 s

@@ -72,6 +72,19 @@ lexer grammar DorisLexer;
public void markUnclosedComment() {
has_unclosed_bracketed_comment = true;
}

// This variable will hold the external state
private boolean channel2;
Copy link
Contributor

Choose a reason for hiding this comment

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

why need this var? i think we should always let hint go to channel 2 ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

when i let channel 2 always open, it would have problem when parsing because in channel lexer would add some char before original string to let parser ignore it. For example: it would make "/* leading(t1 t2) */" into "[@-1,15:36 = '/leading(t1 t2) */', xxx" which when i want to parse it, i would meet eof first then parse exit. So it make a switch to control this behavior

@@ -56,6 +56,10 @@

/**LogicalPlanBuilderForCreateView*/
public class LogicalPlanBuilderForCreateView extends LogicalPlanBuilder {
public LogicalPlanBuilderForCreateView() {
super(null);
Copy link
Contributor

Choose a reason for hiding this comment

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

i think it should use hint too? for example we could use hint to change sql mode, if create view cannot process it correctly it could generate wrong column type. or cannot analyze create view statement correctly.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done

@@ -49,6 +49,10 @@
public class LogicalPlanBuilderForSyncMv extends LogicalPlanBuilder {
private Optional<String> querySql;

public LogicalPlanBuilderForSyncMv() {
super(null);
Copy link
Contributor

Choose a reason for hiding this comment

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

same as create view

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done

Comment on lines +299 to +301
DorisLexer hintLexer = new DorisLexer(new CaseInsensitiveStream(CharStreams.fromString(sql)));
hintLexer.setChannel2(true);
CommonTokenStream hintTokenStream = new CommonTokenStream(hintLexer);
Copy link
Contributor

Choose a reason for hiding this comment

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

antlr could generate one stream and get specific channel token from it by getHiddenTokensToRight, so could we use it to get hint in visitRegularQuerySpecification?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

getHiddenTokensToRight does not work in this case, I tried to get it but it failed. I try to use List hintTokens = hintTokenStream.getHiddenTokensToRight(0, 2); but it failed to get token list out from channel2

Comment on lines +312 to +314
CommonTokenStream newHintTokenStream = new CommonTokenStream(newHintLexer);
DorisParser hintParser = new DorisParser(newHintTokenStream);
ParserRuleContext hintContext = parseFunction.apply(hintParser);
Copy link
Contributor

Choose a reason for hiding this comment

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

we could write a new parser to process hint seperately?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I think it is no need to write a new parser but use exist parser logic as hint syntax, the only thing we need to care about is position and new hint type, position is solved by selectHintMap we added, new hint type is filtered by original hint parser. So it is no needed to add a new parser with same logic, we can only use channel 2 to deal with hint seperately

@@ -36,6 +36,10 @@
*/
public class PLSqlLogicalPlanBuilder extends LogicalPlanBuilder {

public PLSqlLogicalPlanBuilder() {
super(null);
Copy link
Contributor

Choose a reason for hiding this comment

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

same as create view

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done

@LiBinfeng-01
Copy link
Collaborator Author

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	18052	4365	4310	4310
q2	2048	213	225	213
q3	10439	1277	1110	1110
q4	11106	816	815	815
q5	7881	2548	2538	2538
q6	265	155	157	155
q7	1018	651	640	640
q8	9287	2013	1976	1976
q9	9638	6751	6728	6728
q10	7180	2279	2298	2279
q11	532	281	292	281
q12	500	260	257	257
q13	20162	3021	3020	3020
q14	302	261	260	260
q15	572	536	554	536
q16	532	428	406	406
q17	977	683	785	683
q18	8986	7437	7466	7437
q19	5061	1023	1149	1023
q20	1141	367	391	367
q21	5236	4035	4164	4035
q22	1137	1046	1039	1039
Total cold run time: 122052 ms
Total hot run time: 40108 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4554	4313	4264	4264
q2	556	334	290	290
q3	3049	2861	2784	2784
q4	2001	1719	1710	1710
q5	5502	5481	5407	5407
q6	242	148	144	144
q7	2188	1771	1766	1766
q8	3306	3485	3458	3458
q9	8745	8841	8753	8753
q10	3538	3308	3309	3308
q11	629	534	512	512
q12	827	664	661	661
q13	16948	3100	3154	3100
q14	368	298	301	298
q15	569	513	516	513
q16	511	469	446	446
q17	1864	1579	1593	1579
q18	8336	7738	7726	7726
q19	9581	1753	1692	1692
q20	2204	1896	1849	1849
q21	9485	5244	5191	5191
q22	1155	1036	1051	1036
Total cold run time: 86158 ms
Total hot run time: 56487 ms

@doris-robot
Copy link

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

query1	984	399	386	386
query2	6755	2030	2080	2030
query3	6666	231	242	231
query4	33703	23547	23486	23486
query5	4070	627	642	627
query6	301	189	187	187
query7	4603	315	313	313
query8	385	337	349	337
query9	8563	2445	2438	2438
query10	590	533	507	507
query11	15982	14892	15008	14892
query12	151	121	117	117
query13	1667	433	411	411
query14	10558	7940	7729	7729
query15	273	234	224	224
query16	8063	533	520	520
query17	1782	652	593	593
query18	2113	343	341	341
query19	307	170	164	164
query20	144	134	134	134
query21	247	147	142	142
query22	4672	4367	4375	4367
query23	34532	33927	33961	33927
query24	6445	2656	2703	2656
query25	616	427	432	427
query26	708	182	175	175
query27	1966	317	312	312
query28	4904	2143	2114	2114
query29	784	477	447	447
query30	227	190	214	190
query31	1071	839	831	831
query32	127	83	86	83
query33	621	347	346	346
query34	939	504	515	504
query35	1046	853	903	853
query36	1112	1000	962	962
query37	157	105	105	105
query38	4475	4300	4314	4300
query39	1550	1464	1473	1464
query40	236	152	151	151
query41	148	136	135	135
query42	129	116	114	114
query43	568	512	511	511
query44	1111	783	788	783
query45	264	233	230	230
query46	1123	783	767	767
query47	1926	1845	1848	1845
query48	415	351	340	340
query49	986	570	580	570
query50	865	460	458	458
query51	6817	6799	6773	6773
query52	127	108	112	108
query53	297	234	220	220
query54	620	501	501	501
query55	86	86	87	86
query56	321	300	302	300
query57	1216	1130	1152	1130
query58	303	302	301	301
query59	3191	2852	2890	2852
query60	354	320	319	319
query61	146	140	144	140
query62	850	710	699	699
query63	266	225	227	225
query64	9331	2385	1842	1842
query65	3220	3151	3171	3151
query66	1112	670	669	669
query67	15513	14821	14800	14800
query68	6546	583	575	575
query69	477	457	403	403
query70	1216	1155	1163	1155
query71	536	316	314	314
query72	19922	16475	16589	16475
query73	874	360	359	359
query74	9176	8984	8715	8715
query75	4632	2732	2771	2732
query76	4490	1078	1004	1004
query77	888	445	450	445
query78	10067	9048	9210	9048
query79	4847	553	540	540
query80	1235	627	603	603
query81	631	258	261	258
query82	806	167	159	159
query83	412	215	221	215
query84	291	98	104	98
query85	1397	352	346	346
query86	481	334	324	324
query87	4632	4484	4556	4484
query88	4648	2657	2649	2649
query89	474	323	335	323
query90	1951	227	228	227
query91	149	127	122	122
query92	83	77	77	77
query93	5630	560	546	546
query94	1044	338	323	323
query95	391	298	295	295
query96	639	286	291	286
query97	3320	3094	3122	3094
query98	249	226	223	223
query99	1571	1305	1311	1305
Total cold run time: 319105 ms
Total hot run time: 207614 ms

@doris-robot
Copy link

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

query1	0.05	0.05	0.04
query2	0.07	0.04	0.04
query3	0.23	0.04	0.05
query4	1.68	0.07	0.07
query5	0.50	0.49	0.49
query6	1.14	0.72	0.72
query7	0.02	0.01	0.02
query8	0.06	0.05	0.05
query9	0.56	0.50	0.49
query10	0.55	0.55	0.56
query11	0.16	0.13	0.12
query12	0.16	0.13	0.14
query13	0.62	0.62	0.59
query14	0.75	0.80	0.77
query15	0.84	0.83	0.81
query16	0.38	0.36	0.38
query17	1.07	1.03	1.06
query18	0.24	0.23	0.22
query19	1.91	1.70	1.73
query20	0.01	0.01	0.01
query21	15.39	0.84	0.66
query22	4.82	6.58	1.86
query23	18.30	1.39	1.32
query24	2.11	0.24	0.22
query25	0.16	0.10	0.08
query26	0.30	0.21	0.22
query27	0.46	0.23	0.23
query28	13.22	1.02	1.01
query29	12.65	3.33	3.33
query30	0.43	0.25	0.24
query31	2.82	0.40	0.39
query32	3.24	0.49	0.49
query33	2.90	2.91	2.92
query34	17.14	4.34	4.34
query35	4.47	4.50	4.41
query36	0.66	0.49	0.48
query37	0.21	0.19	0.18
query38	0.18	0.17	0.16
query39	0.07	0.05	0.06
query40	0.19	0.15	0.14
query41	0.11	0.07	0.07
query42	0.07	0.06	0.07
query43	0.06	0.06	0.06
Total cold run time: 110.96 s
Total hot run time: 31.14 s

englefly
englefly previously approved these changes Aug 12, 2024
@github-actions github-actions bot added the approved Indicates a PR has been approved by one committer. label Aug 12, 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.

@LiBinfeng-01
Copy link
Collaborator Author

run buildall

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

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

------ Round 1 ----------------------------------
q1	17862	5059	4343	4343
q2	2066	225	235	225
q3	11637	1053	1073	1053
q4	10541	758	789	758
q5	7827	2838	2818	2818
q6	264	156	155	155
q7	1011	652	655	652
q8	9512	2114	2120	2114
q9	8819	6596	6630	6596
q10	7086	2173	2257	2173
q11	485	284	268	268
q12	422	246	241	241
q13	17793	2994	3016	2994
q14	286	256	268	256
q15	558	510	538	510
q16	525	403	411	403
q17	973	781	729	729
q18	8124	7705	7559	7559
q19	5633	1067	1087	1067
q20	894	360	366	360
q21	5409	4540	4472	4472
q22	1139	1074	1036	1036
Total cold run time: 118866 ms
Total hot run time: 40782 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4509	4277	4337	4277
q2	411	306	293	293
q3	3008	2794	2855	2794
q4	1991	1763	1757	1757
q5	5723	5623	5573	5573
q6	245	156	142	142
q7	2187	1869	1807	1807
q8	3358	3482	3453	3453
q9	8791	8786	8901	8786
q10	3551	3352	3319	3319
q11	642	538	525	525
q12	847	674	677	674
q13	17114	3093	3198	3093
q14	346	329	313	313
q15	580	529	523	523
q16	522	456	487	456
q17	1866	1562	1547	1547
q18	8290	7917	7670	7670
q19	8990	1683	1681	1681
q20	2189	1904	1901	1901
q21	13314	5405	5350	5350
q22	1232	1117	1101	1101
Total cold run time: 89706 ms
Total hot run time: 57035 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 196162 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 234725cf22adc62af83a54d957fe2da21a0b6269, data reload: false

query1	1365	916	882	882
query2	6718	1999	1939	1939
query3	10772	4048	4020	4020
query4	59623	23979	23417	23417
query5	5680	661	650	650
query6	477	205	222	205
query7	5869	323	324	323
query8	528	435	368	368
query9	8683	2516	2458	2458
query10	522	316	322	316
query11	17232	15042	15325	15042
query12	194	125	128	125
query13	1576	427	432	427
query14	11877	6749	8103	6749
query15	272	204	200	200
query16	7518	506	537	506
query17	1185	619	639	619
query18	1928	350	356	350
query19	320	173	167	167
query20	148	141	134	134
query21	251	150	144	144
query22	4597	4448	4440	4440
query23	34909	34032	34142	34032
query24	6073	3105	3038	3038
query25	549	435	439	435
query26	712	190	197	190
query27	1839	298	306	298
query28	3905	2118	2118	2118
query29	681	445	443	443
query30	216	187	184	184
query31	1002	832	815	815
query32	104	76	78	76
query33	508	335	337	335
query34	888	509	500	500
query35	884	790	750	750
query36	1111	945	959	945
query37	159	104	106	104
query38	3916	3928	3813	3813
query39	1512	1488	1515	1488
query40	244	159	162	159
query41	140	139	137	137
query42	144	117	119	117
query43	552	511	489	489
query44	1122	799	787	787
query45	222	194	193	193
query46	1125	766	747	747
query47	1933	1844	1877	1844
query48	411	343	350	343
query49	916	592	586	586
query50	861	460	476	460
query51	6883	6828	6705	6705
query52	117	108	110	108
query53	302	231	225	225
query54	611	507	510	507
query55	90	90	90	90
query56	325	304	303	303
query57	1208	1152	1134	1134
query58	302	298	297	297
query59	2972	2726	2829	2726
query60	351	323	332	323
query61	154	147	147	147
query62	819	688	742	688
query63	264	227	229	227
query64	4438	1919	7706	1919
query65	3255	3192	3208	3192
query66	1035	674	674	674
query67	15807	14830	14921	14830
query68	9229	631	616	616
query69	728	430	343	343
query70	1229	1126	1172	1126
query71	611	331	317	317
query72	7158	2321	2084	2084
query73	1804	366	371	366
query74	9497	8989	8911	8911
query75	4870	2760	2734	2734
query76	5394	999	1095	999
query77	882	455	449	449
query78	9928	9053	9322	9053
query79	7873	555	558	555
query80	1630	605	626	605
query81	601	265	262	262
query82	1605	167	157	157
query83	343	213	217	213
query84	290	98	98	98
query85	946	355	355	355
query86	376	333	317	317
query87	4509	4195	4273	4195
query88	3950	2613	2598	2598
query89	568	330	334	330
query90	1948	237	231	231
query91	153	131	126	126
query92	83	77	76	76
query93	5775	572	560	560
query94	701	315	326	315
query95	390	302	299	299
query96	648	291	287	287
query97	3294	3029	3082	3029
query98	250	230	242	230
query99	1634	1341	1324	1324
Total cold run time: 341803 ms
Total hot run time: 196162 ms

@doris-robot
Copy link

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

query1	0.05	0.05	0.04
query2	0.09	0.04	0.04
query3	0.23	0.05	0.05
query4	1.66	0.08	0.07
query5	0.50	0.50	0.51
query6	1.14	0.73	0.74
query7	0.02	0.01	0.01
query8	0.06	0.05	0.05
query9	0.55	0.48	0.48
query10	0.53	0.54	0.56
query11	0.16	0.13	0.12
query12	0.16	0.14	0.13
query13	0.62	0.65	0.60
query14	0.76	0.79	0.78
query15	0.86	0.84	0.83
query16	0.37	0.38	0.39
query17	1.00	1.07	1.05
query18	0.23	0.22	0.22
query19	1.77	1.75	1.68
query20	0.01	0.01	0.02
query21	15.41	0.84	0.66
query22	3.78	6.50	2.00
query23	18.30	1.42	1.31
query24	2.20	0.23	0.23
query25	0.16	0.09	0.09
query26	0.32	0.22	0.22
query27	0.48	0.23	0.23
query28	13.22	1.03	1.01
query29	12.66	3.31	3.30
query30	0.40	0.19	0.19
query31	2.80	0.40	0.40
query32	3.24	0.49	0.49
query33	2.96	2.94	2.99
query34	16.99	4.39	4.41
query35	4.44	4.40	4.47
query36	0.67	0.47	0.49
query37	0.20	0.17	0.17
query38	0.17	0.16	0.17
query39	0.06	0.05	0.05
query40	0.18	0.15	0.14
query41	0.11	0.07	0.06
query42	0.07	0.06	0.06
query43	0.06	0.06	0.06
Total cold run time: 109.65 s
Total hot run time: 31.34 s

@LiBinfeng-01 LiBinfeng-01 force-pushed the support_hint_position branch from 234725c to 2e14ee4 Compare August 13, 2024 09:54
@LiBinfeng-01
Copy link
Collaborator Author

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	18372	5269	4387	4387
q2	2533	224	218	218
q3	12030	1283	1093	1093
q4	10423	761	800	761
q5	8012	2873	2893	2873
q6	260	153	151	151
q7	997	630	627	627
q8	9385	2069	2128	2069
q9	8753	6596	6553	6553
q10	7081	2198	2178	2178
q11	466	261	275	261
q12	418	247	250	247
q13	17957	3004	2979	2979
q14	297	257	252	252
q15	565	524	528	524
q16	520	403	407	403
q17	969	689	756	689
q18	8119	7464	7389	7389
q19	3367	1079	1160	1079
q20	721	361	367	361
q21	5523	4356	4078	4078
q22	1144	1079	1048	1048
Total cold run time: 117912 ms
Total hot run time: 40220 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4503	4304	4274	4274
q2	442	321	311	311
q3	2890	2663	2628	2628
q4	1956	1672	1713	1672
q5	5337	5379	5374	5374
q6	239	156	150	150
q7	2113	1696	1741	1696
q8	3280	3379	3383	3379
q9	8468	8465	8381	8381
q10	3439	3202	3148	3148
q11	635	544	518	518
q12	835	662	631	631
q13	17551	3023	3042	3023
q14	320	302	304	302
q15	579	528	539	528
q16	497	466	458	458
q17	1812	1490	1489	1489
q18	7958	7507	7559	7507
q19	4850	1674	1560	1560
q20	2143	1836	1815	1815
q21	14299	5197	5186	5186
q22	1137	1074	1054	1054
Total cold run time: 85283 ms
Total hot run time: 55084 ms

Copy link
Contributor

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

@morrySnow morrySnow merged commit 9f2756f into apache:master Aug 15, 2024
46 of 49 checks passed
LiBinfeng-01 added a commit to LiBinfeng-01/doris that referenced this pull request Aug 15, 2024
When use hint in wrong position or use unsupport hint,
use channel(2) to filter it out
LiBinfeng-01 added a commit to LiBinfeng-01/doris that referenced this pull request Aug 15, 2024
When use hint in wrong position or use unsupport hint,
use channel(2) to filter it out
LiBinfeng-01 added a commit to LiBinfeng-01/doris that referenced this pull request Aug 15, 2024
When use hint in wrong position or use unsupport hint,
use channel(2) to filter it out
LiBinfeng-01 added a commit to LiBinfeng-01/doris that referenced this pull request Aug 15, 2024
When use hint in wrong position or use unsupport hint,
use channel(2) to filter it out
morrySnow pushed a commit that referenced this pull request Aug 16, 2024
)

cherry-pick from master #39113
When use hint in wrong position or use unsupport hint, use channel(2) to
filter it out
924060929 added a commit to 924060929/incubator-doris that referenced this pull request Aug 20, 2024
@morrySnow morrySnow removed the doing label Aug 22, 2024
englefly pushed a commit that referenced this pull request Aug 22, 2024
…duplicate (#39590)

nereids timeout cause of parser cost too long time
intro by: #39113

## Proposed changes

Issue Number: close #xxx

<!--Describe your changes.-->
LiBinfeng-01 added a commit to LiBinfeng-01/doris that referenced this pull request Aug 23, 2024
When use hint in wrong position or use unsupport hint,
use channel(2) to filter it out
LiBinfeng-01 added a commit to LiBinfeng-01/doris that referenced this pull request Aug 23, 2024
…duplicate (apache#39590)

nereids timeout cause of parser cost too long time
intro by: apache#39113

## Proposed changes

Issue Number: close #xxx

<!--Describe your changes.-->
yiguolei pushed a commit that referenced this pull request Aug 24, 2024
)

cherry-pick: #39113
When use hint in wrong position or use unsupport hint, use channel(2) to
filter it out

## Proposed changes

Issue Number: close #xxx

<!--Describe your changes.-->
@yiguolei yiguolei mentioned this pull request Sep 5, 2024
3 tasks
dataroaring pushed a commit that referenced this pull request Sep 19, 2024
When use hint in wrong position or use unsupport hint,
use channel(2) to filter it out
LiBinfeng-01 added a commit to LiBinfeng-01/doris that referenced this pull request Sep 20, 2024
…duplicate (apache#39590)

nereids timeout cause of parser cost too long time
intro by: apache#39113

## Proposed changes

Issue Number: close #xxx

<!--Describe your changes.-->
dataroaring pushed a commit that referenced this pull request Sep 20, 2024
…duplicate (#39590) (#41033)

cherry-pick: #39590

nereids timeout cause of parser cost too long time intro by:
#39113
mongo360 pushed a commit to mongo360/doris that referenced this pull request Dec 11, 2024
apache#39416)

cherry-pick from master apache#39113
When use hint in wrong position or use unsupport hint, use channel(2) to
filter it out
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants