Repository navigation
Add a pushdown toggle, and name each operator in the plan JSON - #7
Merged
Merged
Conversation
--no-pushdown (pushdown=False in the engine) keeps every WHERE predicate in one Filter above the joins. The cost model then sees each table at full size too, which is the honest comparison: without pushdown the planner has no filtered row counts to order joins by. PlanStats now records the operator class, so a frontend can style a node by type without parsing labels like "Reorder to declared column order".
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Groundwork for the browser demo's plan view, which needs to flip pushdown on and off and style nodes by operator.
--no-pushdown/pushdown=Falsekeeps everyWHEREpredicate in a singleFilterabove the joins. The cost model then also sees each table unfiltered, since it has no filtered counts to order joins by.--analyze --jsonnow includes"operator"(the class name) on every node.Tests cover filter placement with pushdown off, identical results either way, the join receiving more rows without pushdown, and the CLI flag.