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 #38604

Merged
merged 2 commits into from
Aug 5, 2024

Conversation

BePPPower
Copy link
Contributor

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

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

@BePPPower
Copy link
Contributor Author

run buildall

@yiguolei yiguolei merged commit 4076700 into apache:branch-2.1 Aug 5, 2024
20 of 21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants