You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by "englefly (via GitHub)" <gi...@apache.org> on 2024/07/30 10:10:33 UTC

[PR] [fix](nereids) fix bug in PullUpJoinFromUnion rule [doris]

englefly opened a new pull request, #38534:
URL: https://github.com/apache/doris/pull/38534

   ## Proposed changes
   
   Issue Number: close #xxx
   
   <!--Describe your changes.-->
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [fix](nereids) fix bug in PullUpJoinFromUnion rule [doris]

Posted by "englefly (via GitHub)" <gi...@apache.org>.
englefly commented on PR #38534:
URL: https://github.com/apache/doris/pull/38534#issuecomment-2268032735

   run buildall


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [fix](nereids) fix bug in PullUpJoinFromUnion rule [doris]

Posted by "englefly (via GitHub)" <gi...@apache.org>.
englefly commented on PR #38534:
URL: https://github.com/apache/doris/pull/38534#issuecomment-2257994275

   run buildall


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [fix](nereids) fix bug in PullUpJoinFromUnion rule [doris]

Posted by "doris-robot (via GitHub)" <gi...@apache.org>.
doris-robot commented on PR #38534:
URL: https://github.com/apache/doris/pull/38534#issuecomment-2258097229

   
   <details>
   <summary>TPC-DS: <b>Total hot run time: 170238 ms</b></summary>
   
   ```
   machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
   scripts: https://github.com/apache/doris/tree/master/tools/tpcds-tools
   TPC-DS sf100 test result on commit a18742d212979b1d1dee509bd7260359dfcd976e, data reload: false
   
   query1	908	374	372	372
   query2	6462	1785	1757	1757
   query3	6658	220	220	220
   query4	20482	17496	17421	17421
   query5	3652	501	503	501
   query6	310	174	170	170
   query7	4604	286	289	286
   query8	266	202	202	202
   query9	8511	2352	2336	2336
   query10	405	265	262	262
   query11	10579	10277	10107	10107
   query12	117	89	90	89
   query13	1633	368	359	359
   query14	10193	7669	7766	7669
   query15	223	158	158	158
   query16	6825	462	452	452
   query17	925	563	531	531
   query18	1880	272	274	272
   query19	197	140	139	139
   query20	89	85	85	85
   query21	198	103	103	103
   query22	4369	4057	4024	4024
   query23	33922	33725	33133	33133
   query24	10279	3116	3106	3106
   query25	693	403	412	403
   query26	1715	152	146	146
   query27	3041	276	280	276
   query28	7640	1983	1980	1980
   query29	1289	431	429	429
   query30	239	157	161	157
   query31	989	759	778	759
   query32	105	54	61	54
   query33	684	325	323	323
   query34	944	487	484	484
   query35	876	761	722	722
   query36	1031	900	907	900
   query37	289	81	83	81
   query38	2943	2756	2781	2756
   query39	872	833	841	833
   query40	253	113	111	111
   query41	48	42	43	42
   query42	121	94	103	94
   query43	507	428	441	428
   query44	1188	718	721	718
   query45	211	179	174	174
   query46	1071	788	758	758
   query47	1811	1726	1720	1720
   query48	371	279	288	279
   query49	940	430	406	406
   query50	899	424	429	424
   query51	6759	6772	6626	6626
   query52	95	86	89	86
   query53	250	179	172	172
   query54	612	435	440	435
   query55	73	75	73	73
   query56	263	251	246	246
   query57	1134	1044	1042	1042
   query58	271	264	280	264
   query59	2637	2480	2511	2480
   query60	307	307	272	272
   query61	95	94	94	94
   query62	876	668	653	653
   query63	209	177	184	177
   query64	5720	1904	1870	1870
   query65	3149	3073	3109	3073
   query66	1315	331	345	331
   query67	15205	15059	14889	14889
   query68	5383	556	572	556
   query69	700	382	357	357
   query70	1142	1091	1076	1076
   query71	461	275	266	266
   query72	7586	2705	2533	2533
   query73	910	317	326	317
   query74	6090	5673	5615	5615
   query75	3717	2715	2747	2715
   query76	3279	1385	1415	1385
   query77	564	297	296	296
   query78	9416	8973	8869	8869
   query79	1082	532	526	526
   query80	1237	517	494	494
   query81	559	236	218	218
   query82	457	130	128	128
   query83	255	176	172	172
   query84	262	76	79	76
   query85	1122	299	295	295
   query86	398	309	295	295
   query87	3351	3137	3092	3092
   query88	2876	2420	2419	2419
   query89	380	288	289	288
   query90	1707	188	189	188
   query91	135	112	111	111
   query92	60	51	49	49
   query93	1321	597	607	597
   query94	866	289	287	287
   query95	383	260	260	260
   query96	597	277	274	274
   query97	3196	3050	3000	3000
   query98	227	200	200	200
   query99	1639	1290	1305	1290
   Total cold run time: 264785 ms
   Total hot run time: 170238 ms
   ```
   </details>
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [fix](nereids) fix bug in PullUpJoinFromUnion rule [doris]

Posted by "englefly (via GitHub)" <gi...@apache.org>.
englefly commented on PR #38534:
URL: https://github.com/apache/doris/pull/38534#issuecomment-2257984891

   run buildall


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [fix](nereids) fix bug in PullUpJoinFromUnion rule [doris]

Posted by "englefly (via GitHub)" <gi...@apache.org>.
englefly commented on code in PR #38534:
URL: https://github.com/apache/doris/pull/38534#discussion_r1697144752


##########
fe/fe-core/src/main/java/org/apache/doris/nereids/rules/rewrite/PullUpJoinFromUnion.java:
##########
@@ -403,8 +404,9 @@ private boolean tryMapJoinSlotToUnion(LogicalUnion union, List<Pair<LogicalJoin<
                     }

Review Comment:
   如果expr 不在regular 里面,那就不应该有这个expr了吧



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [fix](nereids) fix bug in PullUpJoinFromUnion rule [doris]

Posted by "XieJiann (via GitHub)" <gi...@apache.org>.
XieJiann commented on code in PR #38534:
URL: https://github.com/apache/doris/pull/38534#discussion_r1696851570


##########
fe/fe-core/src/main/java/org/apache/doris/nereids/rules/rewrite/PullUpJoinFromUnion.java:
##########
@@ -403,8 +404,9 @@ private boolean tryMapJoinSlotToUnion(LogicalUnion union, List<Pair<LogicalJoin<
                     }

Review Comment:
   You should check whether the expr is in regular child output in loc 187



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [fix](nereids) fix bug in PullUpJoinFromUnion rule [doris]

Posted by "doris-robot (via GitHub)" <gi...@apache.org>.
doris-robot commented on PR #38534:
URL: https://github.com/apache/doris/pull/38534#issuecomment-2257984558

   Thank you for your contribution to Apache Doris.
   Don't know what should be done next? See [How to process your PR](https://cwiki.apache.org/confluence/display/DORIS/How+to+process+your+PR)
   
   Since 2024-03-18, the Document has been moved to [doris-website](https://github.com/apache/doris-website).
   See [Doris Document](https://cwiki.apache.org/confluence/display/DORIS/Doris+Document).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [fix](nereids) fix bug in PullUpJoinFromUnion rule [doris]

Posted by "doris-robot (via GitHub)" <gi...@apache.org>.
doris-robot commented on PR #38534:
URL: https://github.com/apache/doris/pull/38534#issuecomment-2258077861

   
   <details>
   <summary>TPC-H: <b>Total hot run time: 41454 ms</b></summary>
   
   ```
   machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
   scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
   Tpch sf100 test result on commit a18742d212979b1d1dee509bd7260359dfcd976e, data reload: false
   
   ------ Round 1 ----------------------------------
   q1	17674	4092	4041	4041
   q2	2019	202	204	202
   q3	10453	1289	1311	1289
   q4	10158	868	957	868
   q5	7651	2908	2952	2908
   q6	225	140	137	137
   q7	1024	613	606	606
   q8	9423	1913	1909	1909
   q9	8467	6577	6558	6558
   q10	8733	3836	3816	3816
   q11	441	248	245	245
   q12	437	225	226	225
   q13	17765	2939	2962	2939
   q14	273	246	251	246
   q15	517	476	469	469
   q16	515	382	383	382
   q17	942	919	913	913
   q18	8018	7237	7169	7169
   q19	1476	1204	1200	1200
   q20	586	322	347	322
   q21	5372	4760	4734	4734
   q22	347	279	276	276
   Total cold run time: 112516 ms
   Total hot run time: 41454 ms
   
   ----- Round 2, with runtime_filter_mode=off -----
   q1	4154	4048	4003	4003
   q2	331	221	224	221
   q3	2980	2985	3097	2985
   q4	1985	2014	2009	2009
   q5	5549	5464	5406	5406
   q6	224	143	133	133
   q7	2116	1765	1738	1738
   q8	3318	3373	3331	3331
   q9	8634	8601	8622	8601
   q10	4019	4036	4076	4036
   q11	540	454	442	442
   q12	743	616	602	602
   q13	16720	3088	3158	3088
   q14	307	266	272	266
   q15	526	477	503	477
   q16	466	421	412	412
   q17	1737	1711	1716	1711
   q18	8172	7620	7710	7620
   q19	1703	1746	1722	1722
   q20	2036	1823	1864	1823
   q21	5816	5440	5575	5440
   q22	504	459	469	459
   Total cold run time: 72580 ms
   Total hot run time: 56525 ms
   ```
   </details>
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [fix](nereids) fix bug in PullUpJoinFromUnion rule [doris]

Posted by "englefly (via GitHub)" <gi...@apache.org>.
englefly closed pull request #38534: [fix](nereids) fix bug in PullUpJoinFromUnion rule
URL: https://github.com/apache/doris/pull/38534


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [fix](nereids) fix bug in PullUpJoinFromUnion rule [doris]

Posted by "XieJiann (via GitHub)" <gi...@apache.org>.
XieJiann commented on code in PR #38534:
URL: https://github.com/apache/doris/pull/38534#discussion_r1697807919


##########
fe/fe-core/src/main/java/org/apache/doris/nereids/rules/rewrite/PullUpJoinFromUnion.java:
##########
@@ -403,8 +404,9 @@ private boolean tryMapJoinSlotToUnion(LogicalUnion union, List<Pair<LogicalJoin<
                     }

Review Comment:
   有可能是被regular裁剪掉了
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [fix](nereids) fix bug in PullUpJoinFromUnion rule [doris]

Posted by "doris-robot (via GitHub)" <gi...@apache.org>.
doris-robot commented on PR #38534:
URL: https://github.com/apache/doris/pull/38534#issuecomment-2258107212

   
   <details>
   <summary>ClickBench: <b>Total hot run time: 30.59 s</b></summary>
   
   ```
   machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
   scripts: https://github.com/apache/doris/tree/master/tools/clickbench-tools
   ClickBench test result on commit a18742d212979b1d1dee509bd7260359dfcd976e, data reload: false
   
   query1	0.04	0.04	0.04
   query2	0.07	0.04	0.03
   query3	0.22	0.05	0.05
   query4	1.70	0.07	0.06
   query5	0.49	0.48	0.48
   query6	1.16	0.71	0.72
   query7	0.02	0.01	0.01
   query8	0.05	0.04	0.04
   query9	0.57	0.51	0.50
   query10	0.55	0.56	0.56
   query11	0.16	0.11	0.12
   query12	0.15	0.12	0.13
   query13	0.62	0.61	0.59
   query14	0.76	0.80	0.80
   query15	0.91	0.86	0.86
   query16	0.34	0.36	0.36
   query17	0.95	1.01	0.98
   query18	0.22	0.21	0.21
   query19	1.84	1.74	1.75
   query20	0.01	0.01	0.01
   query21	15.40	0.75	0.65
   query22	3.80	8.11	1.82
   query23	18.08	1.34	1.33
   query24	2.25	0.22	0.21
   query25	0.19	0.08	0.08
   query26	0.31	0.22	0.21
   query27	0.46	0.23	0.23
   query28	13.17	1.00	0.98
   query29	12.55	3.35	3.34
   query30	0.26	0.05	0.05
   query31	2.89	0.40	0.41
   query32	3.24	0.48	0.47
   query33	2.95	2.95	2.94
   query34	15.44	4.29	4.26
   query35	4.31	4.28	4.30
   query36	0.67	0.48	0.48
   query37	0.19	0.16	0.16
   query38	0.17	0.15	0.15
   query39	0.04	0.03	0.04
   query40	0.15	0.12	0.13
   query41	0.09	0.05	0.05
   query42	0.06	0.06	0.05
   query43	0.04	0.04	0.04
   Total cold run time: 107.54 s
   Total hot run time: 30.59 s
   ```
   </details>
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org