forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
opt: fix With and WithScan properties
The `With` and `WithScan` property builders start by copying the input props and then correcting things. This is error-prone: we have in time identified multiple things that were being incorrectly inherited. This change rewrites the code to start with empty properties and then fill things in explicitly (like most other operators). Known problems that are fixed by this change: - `CanMutate` was incorrectly set for `WithScan` - Rule props like `PruneCols` and `WithUses` were incorrectly inherited by `With`. Release note: None
- Loading branch information
1 parent
1696e57
commit 723aea6
Showing
4 changed files
with
30 additions
and
39 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