-
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.
Browse files
Browse the repository at this point in the history
63743: sql: batch write event logs for grant/revoke r=ajwerner a=the-ericwang35 Helps with #41930. Previously, if we ran grant/revoke on multiple tables, we would create event logs for each table and write them one by one, resulting in round trips proportional to the number of tables. This patch addresses this by batch writing the event logs, so that 1 write to the event log table occurs regardless of the number of tables updated. Release note: None 63805: opt,sql: support streaming set ops r=rytaft a=rytaft This commit adds support for planning streaming set operations in the optimizer. Streaming set operations consist of a `UNION`, `INTERSECT`, or `EXCEPT` (including `ALL` variants) in which both inputs are ordered on the desired output ordering, and the set operation merges the inputs to maintain the ordering. The execution engine already supported this type of streaming set operation, so the purpose of this commit was to teach the optimizer about this capability and hook it up to the execution engine. This is also a prerequisite for #56201. Fixes #40797 Informs #56201 Release note (performance improvement): Set operations (`UNION`, `UNION ALL`, `INTERSECT`, `INTERSECT ALL`, `EXCEPT` and `EXCEPT ALL`) can now maintain ordering if both inputs are ordered on the desired output ordering. This can eliminate unnecessary sort operations and improve performance. 63930: scripts/gceworker.sh: always populate username r=ajwerner a=ajwerner In the previous change (#63645) to this file we were to allow injecting a username. The code before this commit, the code would populate the username as "" leading to a leading `@` in the address. The `ssh` family of commands are happy enough with this but the unison command is not. Before this change, we'd see: ``` Fatal error: ill-formed root specification ssh://@gceworker-ajwerner.us-east1-b.cockroach-workers/go/src/github.com/cockroachdb/cockroach ``` I'm content doing something different here like detecting whether we have a username injected instead. I don't have a strong reason to do that but maybe by explicitly making the user the output of `whoami` I'm preventing some other customization. Release note: None 64027: sql: disallow RBR transforms if transitioning indexes are incompatible r=arulajmani a=otan Release note (bug fix): Previously, if a DROP INDEX failed during a REGIONAL BY ROW transition, the index may be re-inserted back into the REGIONAL BY ROW table but would be invalid if it was sharded or partitioned. This is now rectified. 64076: sql: add statement_id to crdb_internal.node_statement_statistics r=arulajmani a=Azhng Currently, crdb_internal.node_transaction_statistics uses the statement_ids column to reference statements in crdb_internal.node_statement_statistics. However, the statement statistics view does not have column that shows statement id. This commit introduce a new statement_id column in the statement statistics view. Release note (sql change): crdb_internal.node_statement_statistics now stores statement_id. Closes: #64072 Co-authored-by: Eric Wang <[email protected]> Co-authored-by: Rebecca Taft <[email protected]> Co-authored-by: Andrew Werner <[email protected]> Co-authored-by: Oliver Tan <[email protected]> Co-authored-by: Azhng <[email protected]>
- Loading branch information
Showing
38 changed files
with
2,248 additions
and
822 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
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.