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.
Browse files
Browse the repository at this point in the history
93302: colflow: fix a possible test flake as well as misc test cleanup r=yuzefovich a=yuzefovich This commit fixes a possible test flake where some tests that use `RandomDataOp` with `Selection=true` option could take really long time. This could occur if the selection probability is selected randomly to be tiny which results in zero-length batches continuously being generated. We now enforce 0.01 lower bound on that probability. Additionally, this commit does the following cleanup: - it fixes the formatting of a comment in a test which was messed up by the updated Go formatter with the upgrade to 1.19 version. - it unexports `RandomDataOp` and returns the type schema directly from the constructor (the only reason it was previously exported). Fixes: cockroachdb#92876. Release note: None 93303: sql: avoid an allocation in SetIndexRecommendations r=yuzefovich a=yuzefovich This commit fixes the code in `SetIndexRecommendations` to not create a copy of `optPlanningCtx` - we can just use the one that we have on the `planner` directly by taking its pointer. This is what we do in all other places. ``` name old time/op new time/op delta Select1/Cockroach-24 158µs ± 5% 159µs ± 5% ~ (p=0.631 n=10+10) Select1/MultinodeCockroach-24 164µs ± 2% 165µs ± 2% ~ (p=0.842 n=9+10) name old alloc/op new alloc/op delta Select1/Cockroach-24 23.0kB ± 1% 22.3kB ± 1% -3.41% (p=0.000 n=10+10) Select1/MultinodeCockroach-24 22.5kB ± 2% 21.7kB ± 2% -3.29% (p=0.000 n=10+9) name old allocs/op new allocs/op delta Select1/Cockroach-24 208 ± 2% 205 ± 1% -1.11% (p=0.006 n=10+10) Select1/MultinodeCockroach-24 184 ± 0% 182 ± 0% -1.14% (p=0.000 n=9+8) ``` Epic: None Release note: None Co-authored-by: Yahor Yuzefovich <[email protected]>
- Loading branch information
Showing
7 changed files
with
59 additions
and
64 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