You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
142248: sql: unify "distribution" in EXPLAIN and EXPLAIN ANALYZE r=yuzefovich a=yuzefovich
Previously, it was possible to observe different `distribution` property between EXPLAIN and EXPLAIN ANALYZE output of the same query. The reason for that was that in the former we looked at the physical plan's distribution which indicates whether the physical plan is actually local or not, whereas for EXPLAIN ANALYZE we looked at presence of some plan flags which indicate the _recommendation_ about the physical plan, and the actual physical plan depends on the range placement. Concretely, it was possible to show `distribution: full` in the output of EXPLAIN ANALYZE when we only had a single flow on the gateway. This commit fixes that and unifies two EXPLAIN variants.
It also removes `planFlagNotDistributed` plan flag since it's not used anywhere.
Fixes: #128623.
Release note (bug fix): EXPLAIN ANALYZE output could previously incorrectly show `distribution: full` when the physical plan only ran on the gateway node in some cases (meaning it should've shown `distribution: local`), and this is now fixed. Note that "vanilla" EXPLAIN showed the correct information. The bug has been present since before 23.1 version.
142671: logictest: fix rare flake around partial stats r=yuzefovich a=yuzefovich
This commit applies the same fix as we had in 5707cf1 to be done after each attempt to collect partial stats. We were missing clearing of the stats cache in 3 places, and that is now fixed. Additionally, this commit moves the call to the builtin to be done right before collecting the partial stat to make it easier to see.
Fixes: #141979.
Release note: None
Co-authored-by: Yahor Yuzefovich <[email protected]>
0 commit comments