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.
59812: execstats: fix query level stats calculation r=yuzefovich a=yuzefovich **execstats: fix query level contention time calculation** Previously, we were using an incorrect map to calculate the contention time. Release note: None **execstats: fix GetQueryLevelStats when sub- and post-queries are present** Previously, `GetQueryLevelStats` would incorrectly calculate the query level stats when multiple `FlowMetadata` objects are passed in. That is the case when either sub- or post-queries are present. As a result, we would return the query level stats only for the last FlowMetadata object. This is now fixed by aggregating the query level stats of all FlowMetadata objects. However, the test is missing since I don't yet see how to do it. It is left as a TODO. Additionally, this commit does some cleanup - using "Flows" instead of "Flow" for metadata to indicate that multiple flows (that are part of the same physical plan) correspond to a single metadata object (this was a point of confusion to me), as well as some comments wrapping. Release note: None Co-authored-by: Yahor Yuzefovich <[email protected]>
- Loading branch information
Showing
6 changed files
with
137 additions
and
85 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
Oops, something went wrong.