-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
27863: distsqlrun: merge the execution engines r=jordanlewis a=jordanlewis Fixes #28184. This commit merges the DistSQL and local SQL execution engines. The strategy is thus: The method to check whether DistSQL supports a planNode tree is unchanged, but the results are interpreted differently. A result that says "unsupported" is interpreted as "keep this plan on the gateway node" rather than "fall back to the local execution engine". If a planNode is unsupported by DistSQL (doesn't have a corresponding DistSQL Processor implementation), instead of giving up, the DistSQL physical planner emits a special wrapper processor (the `planNodeToRowSource` processor) that simply converts the output of the planNode into a form amenable for further consumption by DistSQL processors. The wrapped planNode isn't serialized to a processor spec - instead, since we guarantee that a plan with a wrapped planNode will be executed on the gateway node, we serialize the index of the local planNode into a slice of localPlanNodes that's passed to the execution engine in a side channel, and not serialized to a proto. Release note (sql change): all queries now run through the DistSQL execution engine. Co-authored-by: Jordan Lewis <[email protected]>
- Loading branch information
Showing
55 changed files
with
1,339 additions
and
768 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.