-
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.
86639: sql/schemachanger: add back TXN_DROPPED, stop using OFFLINE r=postamar a=ajwerner The first two commits enable synthetic descriptors to be used during transaction execution to influence the virtual tables. We added the `OFFLINE` and performed write operations during drops to move the descriptor into that state in order to deal with the fact that synthetically dropped descriptors would not appear so in virtual tables. Fortunately, this shortcoming has been rectified. We now revive the TXN_DROPPED state. This proves to be important because the `OFFLINE` state is not backwards compatible, and the `TXN_DROPPED` state is. Ideally we'd find a way to move the descriptors straight to `DROPPED` in the pre-commit case for all the cases we today support, but doing that would require an overhaul of the dependency rules which, at this point in the cycle, feels risky. Fixes #86626 Release justification: Fixes a release-blocking backwards incompatibility. Release note: None 87151: sql: plumb isCopy down to event log r=rafiss a=otan Previously, we relied on the `txn` being filled to log `COPY` statements. This is however inaccurate - `txn` may be nil if `COPY` is the first statement encountered. This meant that the first COPY encountered would not be logged. Instead, plumb down `isCopy` and use `timeutil.Now()` if it is a COPY related statement. Release justification: logging related critical fix Release note: None 87175: sql: fix COPY internal error in optimizer r=cucaroach a=cucaroach Statistics builder code to evaluate distinct count had a typo and would crash if there were more rows than columns. Fix bug and rewrite to be a little clearer. Fixes: #87011 Release justification: low-risk high priority fix to new funcationality Release note: None Co-authored-by: Andrew Werner <[email protected]> Co-authored-by: Oliver Tan <[email protected]> Co-authored-by: Tommy Reilly <[email protected]>
- Loading branch information
Showing
275 changed files
with
9,870 additions
and
4,489 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
Oops, something went wrong.