-
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.
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
- Loading branch information
1 parent
6c8dd8d
commit cafb54d
Showing
6 changed files
with
86 additions
and
75 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