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

[Fix](ScanNode) Move the finalize phase of ScanNode to after the end of the Physical Translate phase. #37565

Merged
merged 5 commits into from
Jul 23, 2024

Conversation

BePPPower
Copy link
Contributor

@BePPPower BePPPower commented Jul 9, 2024

Proposed changes

Currently, Doris first obtains splits and then performs projection. After column pruning, it calls updateRequiredSlots to update the scanRange information. However, the Trino connector's column pruning pushdown needs to be completed before obtaining splits.

Therefore, we move the finalize phase of ScanNode to after the end of the Physical Translate phase, so that createScanRangeLocations can use the final columns which have been pruning.

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

@BePPPower
Copy link
Contributor Author

run buildall

1 similar comment
@BePPPower
Copy link
Contributor Author

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17628	4293	4246	4246
q2	2019	191	195	191
q3	10451	1174	1108	1108
q4	10191	900	775	775
q5	7474	2651	2622	2622
q6	217	137	136	136
q7	946	591	594	591
q8	9241	2074	2053	2053
q9	8888	6483	6500	6483
q10	8926	3711	3712	3711
q11	450	244	256	244
q12	430	223	219	219
q13	18700	2976	2935	2935
q14	261	227	229	227
q15	528	489	490	489
q16	512	369	371	369
q17	971	661	648	648
q18	7938	7577	7375	7375
q19	5224	1397	1497	1397
q20	650	320	333	320
q21	4874	3129	3138	3129
q22	386	337	340	337
Total cold run time: 116905 ms
Total hot run time: 39605 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4381	4310	4253	4253
q2	367	273	269	269
q3	2992	2763	2879	2763
q4	1949	1687	1667	1667
q5	5594	5488	5424	5424
q6	218	130	131	130
q7	2171	1880	1857	1857
q8	3309	3444	3448	3444
q9	8737	8724	8816	8724
q10	4072	3792	3822	3792
q11	601	503	505	503
q12	821	644	655	644
q13	16259	3164	3149	3149
q14	311	278	279	278
q15	545	480	496	480
q16	492	429	438	429
q17	1838	1548	1513	1513
q18	8104	8008	7786	7786
q19	1847	1631	1660	1631
q20	3019	1853	1852	1852
q21	7508	4919	4742	4742
q22	639	557	553	553
Total cold run time: 75774 ms
Total hot run time: 55883 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 174419 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 353870a8efb37915e323265132ee0740c28ecbe0, data reload: false

query1	913	371	368	368
query2	6454	2466	2385	2385
query3	6635	208	214	208
query4	23356	17605	17451	17451
query5	3712	485	476	476
query6	289	169	166	166
query7	4581	287	284	284
query8	316	336	291	291
query9	8704	2364	2360	2360
query10	442	302	273	273
query11	10457	10085	10130	10085
query12	115	80	82	80
query13	1639	372	376	372
query14	10154	7589	7400	7400
query15	251	180	186	180
query16	7792	304	292	292
query17	1840	547	513	513
query18	1970	275	274	274
query19	196	143	147	143
query20	86	79	80	79
query21	215	124	125	124
query22	4357	4132	4193	4132
query23	33776	33828	33350	33350
query24	8245	2896	2851	2851
query25	608	425	410	410
query26	714	148	143	143
query27	2280	274	281	274
query28	6112	2120	2118	2118
query29	892	617	636	617
query30	255	149	158	149
query31	956	726	779	726
query32	101	54	62	54
query33	612	294	298	294
query34	898	494	495	494
query35	692	587	635	587
query36	1146	958	969	958
query37	143	82	86	82
query38	2978	2786	2814	2786
query39	904	797	807	797
query40	205	124	115	115
query41	52	51	50	50
query42	112	94	99	94
query43	584	588	517	517
query44	1129	729	723	723
query45	190	157	158	157
query46	1086	691	737	691
query47	1852	1766	1771	1766
query48	364	307	297	297
query49	839	413	411	411
query50	772	391	391	391
query51	6881	6839	6751	6751
query52	112	91	93	91
query53	350	288	283	283
query54	713	447	441	441
query55	72	71	72	71
query56	281	282	268	268
query57	1142	1038	1074	1038
query58	247	241	254	241
query59	3448	3359	3093	3093
query60	309	271	274	271
query61	95	96	97	96
query62	785	649	647	647
query63	317	291	286	286
query64	9096	2198	1698	1698
query65	3154	3110	3088	3088
query66	768	328	326	326
query67	15591	15140	14941	14941
query68	4481	524	537	524
query69	484	347	332	332
query70	1218	1097	1145	1097
query71	353	271	276	271
query72	7322	5361	5490	5361
query73	739	322	322	322
query74	5968	5529	5429	5429
query75	3328	2719	2693	2693
query76	2199	942	922	922
query77	454	307	325	307
query78	9497	10694	9459	9459
query79	2956	519	516	516
query80	1221	489	498	489
query81	584	218	219	218
query82	402	134	137	134
query83	382	165	168	165
query84	270	89	85	85
query85	697	305	304	304
query86	484	315	321	315
query87	3306	3133	3135	3133
query88	3743	2444	2428	2428
query89	466	369	372	369
query90	1758	192	185	185
query91	181	116	100	100
query92	59	48	48	48
query93	2308	501	502	501
query94	1126	206	208	206
query95	406	309	320	309
query96	614	269	269	269
query97	3179	3068	3018	3018
query98	235	201	188	188
query99	1541	1254	1315	1254
Total cold run time: 268293 ms
Total hot run time: 174419 ms

@doris-robot
Copy link

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

query1	0.04	0.04	0.02
query2	0.08	0.04	0.04
query3	0.23	0.05	0.04
query4	1.68	0.06	0.07
query5	0.50	0.50	0.50
query6	1.13	0.73	0.72
query7	0.02	0.01	0.01
query8	0.05	0.05	0.05
query9	0.55	0.49	0.49
query10	0.54	0.54	0.54
query11	0.16	0.12	0.11
query12	0.15	0.13	0.12
query13	0.58	0.58	0.57
query14	0.75	0.77	0.77
query15	0.85	0.81	0.82
query16	0.35	0.37	0.36
query17	1.04	1.02	1.01
query18	0.22	0.23	0.23
query19	1.94	1.78	1.84
query20	0.01	0.00	0.00
query21	15.38	0.75	0.67
query22	4.03	7.47	1.84
query23	18.31	1.36	1.32
query24	2.08	0.25	0.21
query25	0.15	0.09	0.09
query26	0.30	0.21	0.20
query27	0.44	0.22	0.23
query28	13.27	1.01	1.01
query29	12.60	3.31	3.31
query30	0.26	0.06	0.06
query31	2.85	0.39	0.39
query32	3.30	0.48	0.47
query33	2.89	2.90	2.89
query34	17.14	4.33	4.32
query35	4.44	4.39	4.38
query36	0.65	0.47	0.47
query37	0.19	0.16	0.16
query38	0.16	0.15	0.15
query39	0.04	0.03	0.03
query40	0.15	0.12	0.12
query41	0.09	0.05	0.04
query42	0.05	0.05	0.05
query43	0.04	0.04	0.03
Total cold run time: 109.68 s
Total hot run time: 30.66 s

@BePPPower BePPPower marked this pull request as draft July 12, 2024 03:16
@BePPPower BePPPower force-pushed the fixTrinoConnectorProject branch from 353870a to d494308 Compare July 12, 2024 03:57
@BePPPower
Copy link
Contributor Author

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	18046	4415	4366	4366
q2	2465	195	191	191
q3	10953	1165	1165	1165
q4	10753	903	718	718
q5	7871	2725	2679	2679
q6	223	143	140	140
q7	975	616	614	614
q8	9620	2110	2051	2051
q9	8577	6549	6526	6526
q10	8746	3796	3753	3753
q11	454	243	244	243
q12	393	240	230	230
q13	18740	3007	3021	3007
q14	281	235	232	232
q15	539	473	481	473
q16	493	378	378	378
q17	947	659	704	659
q18	8063	7375	7344	7344
q19	4686	1547	1403	1403
q20	665	318	348	318
q21	4955	3202	3283	3202
q22	398	341	347	341
Total cold run time: 118843 ms
Total hot run time: 40033 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4421	4242	4237	4237
q2	376	282	268	268
q3	2964	2769	2747	2747
q4	1814	1582	1590	1582
q5	5267	5314	5334	5314
q6	218	132	132	132
q7	2145	1769	1713	1713
q8	3150	3312	3293	3293
q9	8362	8345	8370	8345
q10	3893	3688	3689	3688
q11	585	497	484	484
q12	760	576	592	576
q13	17517	2993	3049	2993
q14	301	262	265	262
q15	523	472	494	472
q16	464	418	427	418
q17	1782	1500	1461	1461
q18	7714	7569	7425	7425
q19	5660	1656	1497	1497
q20	2029	1774	1769	1769
q21	4953	4580	4604	4580
q22	586	545	575	545
Total cold run time: 75484 ms
Total hot run time: 53801 ms

@doris-robot
Copy link

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

query1	916	368	362	362
query2	6461	2426	2373	2373
query3	6655	210	230	210
query4	24005	17489	17412	17412
query5	4202	498	502	498
query6	272	206	171	171
query7	4616	301	294	294
query8	315	289	296	289
query9	8492	2463	2449	2449
query10	445	273	288	273
query11	11013	9988	10097	9988
query12	130	87	81	81
query13	1640	374	378	374
query14	10209	6516	7800	6516
query15	251	201	193	193
query16	7364	322	319	319
query17	1360	537	524	524
query18	1929	278	270	270
query19	191	147	154	147
query20	88	79	80	79
query21	204	128	129	128
query22	4213	4125	3960	3960
query23	33932	33098	33130	33098
query24	12330	2861	2857	2857
query25	663	375	378	375
query26	1833	150	148	148
query27	2961	278	276	276
query28	7341	2106	2117	2106
query29	1219	655	668	655
query30	287	146	151	146
query31	989	752	742	742
query32	96	53	55	53
query33	770	302	297	297
query34	935	506	498	498
query35	675	594	571	571
query36	1093	968	958	958
query37	202	78	81	78
query38	2863	2781	2737	2737
query39	860	795	811	795
query40	285	122	122	122
query41	54	57	50	50
query42	116	99	105	99
query43	577	557	522	522
query44	1217	731	734	731
query45	208	168	165	165
query46	1083	711	736	711
query47	1864	1796	1782	1782
query48	364	302	306	302
query49	1209	440	451	440
query50	775	401	410	401
query51	6940	6922	6727	6727
query52	109	87	100	87
query53	359	305	296	296
query54	971	461	459	459
query55	78	80	74	74
query56	297	275	279	275
query57	1143	1040	1048	1040
query58	263	239	250	239
query59	3642	3125	3094	3094
query60	308	291	282	282
query61	100	98	131	98
query62	843	641	669	641
query63	332	305	298	298
query64	10628	2224	1717	1717
query65	3230	3101	3111	3101
query66	1413	334	335	334
query67	15399	15026	14892	14892
query68	4613	563	563	563
query69	479	348	342	342
query70	1208	1112	1158	1112
query71	405	290	289	289
query72	7162	5773	5674	5674
query73	741	342	382	342
query74	6130	5522	5430	5430
query75	3407	2703	2686	2686
query76	2587	990	915	915
query77	511	329	317	317
query78	9639	8963	10167	8963
query79	2669	540	521	521
query80	1041	489	489	489
query81	568	218	221	218
query82	725	129	131	129
query83	236	167	175	167
query84	241	93	86	86
query85	2024	310	304	304
query86	492	308	281	281
query87	3259	3069	3146	3069
query88	3810	2463	2479	2463
query89	483	397	384	384
query90	1854	204	199	199
query91	147	184	108	108
query92	63	53	50	50
query93	2080	520	515	515
query94	1287	217	212	212
query95	416	326	323	323
query96	593	278	276	276
query97	3193	3024	3068	3024
query98	218	202	195	195
query99	1584	1294	1300	1294
Total cold run time: 281692 ms
Total hot run time: 173219 ms

@doris-robot
Copy link

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

query1	0.04	0.04	0.03
query2	0.08	0.04	0.04
query3	0.22	0.04	0.04
query4	1.67	0.07	0.07
query5	0.50	0.49	0.49
query6	1.14	0.72	0.72
query7	0.02	0.02	0.01
query8	0.05	0.04	0.05
query9	0.55	0.49	0.48
query10	0.56	0.56	0.55
query11	0.16	0.12	0.11
query12	0.14	0.11	0.12
query13	0.60	0.60	0.59
query14	0.76	0.78	0.77
query15	0.86	0.81	0.81
query16	0.37	0.36	0.37
query17	0.99	1.03	0.99
query18	0.22	0.21	0.22
query19	1.87	1.73	1.72
query20	0.02	0.01	0.01
query21	15.40	0.74	0.64
query22	3.80	6.81	2.85
query23	18.28	1.42	1.25
query24	2.11	0.22	0.24
query25	0.15	0.09	0.09
query26	0.30	0.22	0.21
query27	0.45	0.24	0.24
query28	13.25	1.00	0.99
query29	12.63	3.36	3.31
query30	0.26	0.06	0.05
query31	2.85	0.39	0.38
query32	3.27	0.49	0.46
query33	2.93	2.91	2.91
query34	16.95	4.33	4.33
query35	4.40	4.52	4.40
query36	0.66	0.46	0.48
query37	0.19	0.16	0.15
query38	0.16	0.16	0.16
query39	0.04	0.03	0.03
query40	0.15	0.12	0.13
query41	0.10	0.06	0.05
query42	0.06	0.05	0.04
query43	0.05	0.04	0.04
Total cold run time: 109.26 s
Total hot run time: 31.53 s

@BePPPower
Copy link
Contributor Author

run p0

@BePPPower BePPPower marked this pull request as ready for review July 15, 2024 01:56
@BePPPower BePPPower changed the title [Fix](trino-connector) The Trino connector supports pushdown project to the connector [Fix](ScanNode) Move the finalize phase of ScanNode to after the end of the Physical Translate phase. Jul 15, 2024
morningman
morningman previously approved these changes Jul 16, 2024
Copy link
Contributor

@morningman morningman left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

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

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

PR approved by anyone and no changes requested.

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

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17624	4327	4241	4241
q2	2013	197	183	183
q3	10446	1206	1118	1118
q4	10185	768	706	706
q5	7547	2685	2556	2556
q6	217	136	135	135
q7	947	596	612	596
q8	9211	2067	2099	2067
q9	8894	6559	6529	6529
q10	8827	3826	3753	3753
q11	478	239	231	231
q12	494	226	224	224
q13	17781	3009	2970	2970
q14	272	241	230	230
q15	540	493	482	482
q16	515	394	372	372
q17	957	637	644	637
q18	7990	7534	7372	7372
q19	6421	1435	1358	1358
q20	686	327	308	308
q21	4933	3267	3159	3159
q22	358	289	297	289
Total cold run time: 117336 ms
Total hot run time: 39516 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4392	4200	4249	4200
q2	377	259	253	253
q3	2965	2827	2939	2827
q4	1988	1711	1733	1711
q5	5715	5547	5508	5508
q6	225	134	130	130
q7	2177	1909	1845	1845
q8	3225	3404	3415	3404
q9	8785	8787	8886	8787
q10	4090	3878	3809	3809
q11	595	496	500	496
q12	818	637	659	637
q13	16036	3202	3177	3177
q14	303	287	275	275
q15	521	485	510	485
q16	484	427	434	427
q17	1826	1542	1469	1469
q18	8058	7883	7784	7784
q19	1748	1700	1690	1690
q20	2175	1877	1875	1875
q21	7415	4812	4802	4802
q22	640	512	516	512
Total cold run time: 74558 ms
Total hot run time: 56103 ms

@doris-robot
Copy link

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

query1	911	374	369	369
query2	6440	1966	1838	1838
query3	6643	207	213	207
query4	27988	17477	17396	17396
query5	3661	479	469	469
query6	271	163	166	163
query7	4585	302	288	288
query8	238	186	186	186
query9	8607	2517	2486	2486
query10	445	293	276	276
query11	10544	10118	10010	10010
query12	119	89	89	89
query13	1641	388	375	375
query14	10360	7728	7900	7728
query15	230	169	172	169
query16	7481	324	329	324
query17	1793	580	545	545
query18	1870	293	288	288
query19	205	159	155	155
query20	88	83	86	83
query21	207	131	128	128
query22	4315	4110	4044	4044
query23	34164	33680	33927	33680
query24	10745	2977	3002	2977
query25	636	414	418	414
query26	716	167	165	165
query27	2278	294	302	294
query28	6252	2148	2138	2138
query29	907	688	673	673
query30	251	156	154	154
query31	959	791	772	772
query32	94	54	61	54
query33	690	336	321	321
query34	913	513	584	513
query35	695	598	612	598
query36	1133	989	984	984
query37	139	83	89	83
query38	2936	2813	2802	2802
query39	849	812	798	798
query40	210	120	120	120
query41	44	44	44	44
query42	129	101	109	101
query43	533	462	466	462
query44	1083	753	730	730
query45	187	159	159	159
query46	1078	734	756	734
query47	1850	1750	1748	1748
query48	373	307	297	297
query49	850	404	409	404
query50	777	391	401	391
query51	6915	6858	6727	6727
query52	104	93	95	93
query53	363	281	288	281
query54	855	473	465	465
query55	77	73	73	73
query56	283	265	269	265
query57	1123	1048	1065	1048
query58	245	248	257	248
query59	2951	2658	2779	2658
query60	301	276	262	262
query61	97	113	92	92
query62	786	610	657	610
query63	324	282	284	282
query64	9150	2257	1667	1667
query65	3196	3087	3106	3087
query66	743	334	325	325
query67	15575	14978	15081	14978
query68	7962	565	556	556
query69	788	440	361	361
query70	1240	1077	1142	1077
query71	492	290	277	277
query72	9126	6183	5644	5644
query73	834	333	328	328
query74	6125	5645	5736	5645
query75	4867	2692	2708	2692
query76	4401	996	967	967
query77	764	310	323	310
query78	9578	9056	8906	8906
query79	8391	541	529	529
query80	2188	496	476	476
query81	595	220	219	219
query82	672	133	137	133
query83	279	169	166	166
query84	281	88	84	84
query85	1150	316	354	316
query86	385	316	320	316
query87	3295	3074	3120	3074
query88	4989	2479	2448	2448
query89	527	385	374	374
query90	2017	200	190	190
query91	127	102	97	97
query92	60	48	49	48
query93	6920	520	526	520
query94	1360	215	216	215
query95	404	340	309	309
query96	621	277	272	272
query97	3202	3057	3108	3057
query98	223	198	199	198
query99	1547	1278	1253	1253
Total cold run time: 298611 ms
Total hot run time: 174444 ms

@doris-robot
Copy link

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

query1	0.04	0.04	0.03
query2	0.08	0.04	0.04
query3	0.23	0.06	0.05
query4	1.67	0.07	0.08
query5	0.53	0.50	0.49
query6	1.13	0.73	0.72
query7	0.02	0.02	0.01
query8	0.06	0.05	0.05
query9	0.55	0.48	0.49
query10	0.56	0.57	0.54
query11	0.15	0.11	0.11
query12	0.15	0.12	0.12
query13	0.59	0.58	0.59
query14	0.76	0.77	0.76
query15	0.85	0.80	0.82
query16	0.36	0.38	0.36
query17	1.03	1.04	1.04
query18	0.22	0.21	0.21
query19	1.81	1.66	1.73
query20	0.02	0.01	0.01
query21	15.40	0.77	0.67
query22	4.07	7.86	1.96
query23	18.27	1.37	1.24
query24	2.16	0.22	0.22
query25	0.16	0.09	0.08
query26	0.30	0.21	0.21
query27	0.45	0.24	0.23
query28	13.27	1.03	1.00
query29	12.72	3.34	3.29
query30	0.25	0.06	0.06
query31	2.87	0.38	0.38
query32	3.29	0.49	0.47
query33	2.90	2.86	2.97
query34	17.17	4.36	4.38
query35	4.43	4.43	4.40
query36	0.64	0.49	0.47
query37	0.18	0.16	0.16
query38	0.15	0.15	0.15
query39	0.05	0.03	0.04
query40	0.15	0.12	0.12
query41	0.09	0.04	0.04
query42	0.06	0.04	0.05
query43	0.04	0.04	0.04
Total cold run time: 109.88 s
Total hot run time: 30.61 s

Copy link
Contributor

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

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

@morningman morningman left a comment

Choose a reason for hiding this comment

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

LGTM

@morningman morningman merged commit d9e363a into apache:master Jul 23, 2024
27 of 29 checks passed
dataroaring pushed a commit that referenced this pull request Jul 24, 2024
…of the Physical Translate phase. (#37565)

## Proposed changes

Currently, Doris first obtains splits and then performs projection.
After column pruning, it calls `updateRequiredSlots` to update the
scanRange information. However, the Trino connector's column pruning
pushdown needs to be completed before obtaining splits.

Therefore, we move the finalize phase of `ScanNode` to after the end of
the `Physical Translate` phase, so that `createScanRangeLocations` can
use the final columns which have been pruning.
BePPPower added a commit to BePPPower/doris that referenced this pull request Jul 31, 2024
…of the Physical Translate phase. (apache#37565)

Currently, Doris first obtains splits and then performs projection.
After column pruning, it calls `updateRequiredSlots` to update the
scanRange information. However, the Trino connector's column pruning
pushdown needs to be completed before obtaining splits.

Therefore, we move the finalize phase of `ScanNode` to after the end of
the `Physical Translate` phase, so that `createScanRangeLocations` can
use the final columns which have been pruning.
yiguolei pushed a commit that referenced this pull request Aug 5, 2024
…of the Physical Translate phase (#38604)

bp: #37565

Currently, Doris first obtains splits and then performs projection.
After column pruning, it calls `updateRequiredSlots` to update the
scanRange information. However, the Trino connector's column pruning
pushdown needs to be completed before obtaining splits.

Therefore, we move the finalize phase of `ScanNode` to after the end of
the `Physical Translate` phase, so that `createScanRangeLocations` can
use the final columns which have been pruning.

## Proposed changes

Issue Number: close #xxx

<!--Describe your changes.-->
morningman pushed a commit that referenced this pull request Aug 12, 2024
In #37565, due to the change in the calling order of finalize, the final
generated Plan will be missing the PREDICATES that have been pushed down
in Jdbc. Although this behavior is correct, before perfectly handling
the push down of various PREDICATES, we need to keep all conjuncts to
ensure that we can still filter data normally when the data returned by
Jdbc is a superset.
wyxxxcat pushed a commit to wyxxxcat/doris that referenced this pull request Aug 14, 2024
…he#39180)

In apache#37565, due to the change in the calling order of finalize, the final
generated Plan will be missing the PREDICATES that have been pushed down
in Jdbc. Although this behavior is correct, before perfectly handling
the push down of various PREDICATES, we need to keep all conjuncts to
ensure that we can still filter data normally when the data returned by
Jdbc is a superset.
zy-kkk added a commit to zy-kkk/doris that referenced this pull request Aug 15, 2024
…he#39180)

In apache#37565, due to the change in the calling order of finalize, the final
generated Plan will be missing the PREDICATES that have been pushed down
in Jdbc. Although this behavior is correct, before perfectly handling
the push down of various PREDICATES, we need to keep all conjuncts to
ensure that we can still filter data normally when the data returned by
Jdbc is a superset.
zy-kkk added a commit that referenced this pull request Aug 16, 2024
…bcScan (#39407)

pick (#39180)

In #37565, due to the change in the calling order of finalize, the final
generated Plan will be missing the PREDICATES that have been pushed down
in Jdbc. Although this behavior is correct, before perfectly handling
the push down of various PREDICATES, we need to keep all conjuncts to
ensure that we can still filter data normally when the data returned by
Jdbc is a superset.
dataroaring pushed a commit that referenced this pull request Aug 17, 2024
In #37565, due to the change in the calling order of finalize, the final
generated Plan will be missing the PREDICATES that have been pushed down
in Jdbc. Although this behavior is correct, before perfectly handling
the push down of various PREDICATES, we need to keep all conjuncts to
ensure that we can still filter data normally when the data returned by
Jdbc is a superset.
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/2.1.6-merged dev/3.0.1-merged reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants