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
85594: opt: don't convert union to distinct+union-all with empty key r=DrewKimball a=DrewKimball Previously, the `ConvertUnionToDistinctUnionAll` normalization rule could convert a `Union` into a `UnionAll` with a `DistinctOn` grouping on an empty key. This violated an assumption that any given tuple of key column values functionally determines exactly the same values on all other columns on both sides of the input when one of the inputs was null-extended. An empty key is only correct if all rows are the same, which may not be the case after null-extension. This commit fixes this problem by only matching if the key is non-empty. The empty-key case can only occur in extremely rare cases where the optimizer can prove that the table has only one row, so I don't expect to see any regressions due to this change. Fixes cockroachdb#85502 Release note (bug fix): Fixed a bug introduced in 21.2 that could cause union queries to return incorrect results in rare cases. 85638: ccl: unskip zoneconfig_privilege_restore test r=adityamaru a=RichardJCai Release note: None 85642: roachtest: skip on AWS when using multiple stores r=lidorcarmel a=lidorcarmel In roachtests we cannot set the number of stores when running on AWS. This patch skips a few (recently added) roachtests that fail when trying to do that. Tested by running these roachtests with --cloud=aws and --cloud=gce. Release note: None Co-authored-by: DrewKimball <[email protected]> Co-authored-by: richardjcai <[email protected]> Co-authored-by: Lidor Carmel <[email protected]>
- Loading branch information
Showing
6 changed files
with
86 additions
and
6 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