forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
56524: sql: introduce EXPLAIN ANALYZE (PLAN) r=RaduBerinde a=RaduBerinde #### sql: introduce EXPLAIN ANALYZE (PLAN) This change introduces a new variant of `EXPLAIN ANALYZE` which executes the query and returns the execution plan (in the future, annotated with stats from execution). Note that `(PLAN)` is the default mode for the regular `EXPLAIN`. Currently `EXPLAIN ANALYZE` defaults to `(DISTSQL)` mode, but we plan to switch that default to the `(PLAN)` version once it is fully implemented. Release note (sql change): Added a new variant of explain: EXPLAIN ANALYZE (PLAN). #### sql: add planning and execution time to EXPLAIN ANALYZE (PLAN) This commit adds planning and execution time as top-level fields in EXPLAIN ANALYZE (PLAN). We also plumb a testing knob to allow these fields to be deterministic in tests. Release note: None ![image](https://user-images.githubusercontent.com/16544120/98735878-f33eb780-2358-11eb-8c3e-657d4e2df589.png) Co-authored-by: Radu Berinde <[email protected]>
- Loading branch information
Showing
12 changed files
with
164 additions
and
26 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
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