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

Parallelize more source paths #4785

Merged
merged 1 commit into from
Sep 28, 2023
Merged

Parallelize more source paths #4785

merged 1 commit into from
Sep 28, 2023

Conversation

nwt
Copy link
Member

@nwt nwt commented Sep 27, 2023

When looking for source paths to parallelize, the optimizer.walkEntries examines only the first operator in a sequence. This prevents the optimizer from parallelizing a pool scan in the right input of a join expressed in subquery syntax, like

from left | join (from right | ...) on left_key=right_key

Change walkEntries to examine all operators in a sequence so almost all source paths are parallelized. (The exceptions are paths inside dag.Over and paths containing no operator after the source.)

When looking for source paths to parallelize, the optimizer.walkEntries
examines only the first operator in a sequence.  This prevents the
optimizer from parallelizing a pool scan in the right input of a join
expressed in subquery syntax, like

    from left | join (from right | ...) on left_key=right_key

Change walkEntries to examine all operators in a sequence so almost all
source paths are parallelized.  (The exceptions are paths inside
dag.Over and paths containing no operator after the source.)
@nwt nwt requested a review from a team September 27, 2023 16:21
@nwt nwt merged commit f662ee1 into main Sep 28, 2023
@nwt nwt deleted the parallelize-more branch September 28, 2023 15:18
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.

2 participants