-
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
71246: sql: remove InternalExecutor from EvalCtx r=rafiss a=RichardJCai Minor refactor to remove duplicate InternalExecutor definition on EvalCtx and in the tree package. We already have 2 interface declarations for InternalExecutor in sql and sqlutil, this refactor hopefully makes the dependencies a little more clear. Resolves #60507 72627: ui: unify cluster-ui stores for Statement and Transaction Page r=maryliag a=Azhng Previously, on CC Conosle, Statement Page and Transaction Page were backed by their own Redux stores and their own Redux Sagas. However, both Statement and Transaction Page were backed by a single API endpoint, namely `/_status/statements`. This resulted in unnecessary API calls and bugs like #72009, which was caused by Reset SQL Stats sagas failing to reset the Transaction Page Redux store. This commit unifies the following Redux store and sagas into a single store / sagas: 1. Statement Page store / sagas 2. Transaciton Page store / sagas 3. Reset SQL Stats store / sagas This greatly removed the code duplication and test duplication and simplify the logic. Statement Page and Transaction Page can reuse the same store by their own selectors. Resolves #72009 Release note: None CC Console: https://user-images.githubusercontent.com/9267198/141212289-00c5196b-87c0-4bae-a163-3542e1a2b6a0.mov DB Console: https://user-images.githubusercontent.com/9267198/141048060-482d23e6-dc77-4868-98dd-e209d0965cf9.mov 73003: ui: save filters on cache for Transactions page r=maryliag a=maryliag Previously, a sort selection was not maintained when the page change (e.g. changing tabs/pages). This commits saves the selected value to be used. Partially adresses #71851 Release note: None 73090: tabledesc: forbid computed columns from having DEFAULT expressions r=postamar a=postamar Previously, we didn't have a table descriptor validation check to ensure that computed columns didn't also have DEFAULT expressions. It is therefore possible that clusters and cluster backups exist in production which contain tables with such columns. This commit therefore fixes this bug by adding the missing validation check, and by removing default expressions from computed columns when necessary after deserializing a descriptor protobuf. Fixes #72881. Release note (sql change, bug fix): fixes a bug which allowed computed columns to also have DEFAULT expressions. 73125: opt: prevent creation of invalid streaming set operations r=rytaft a=rytaft Prior to this commit, it was possible to generate a streaming set operation with an empty ordering, due to using interesting orderings involving input columns that were not output by the set operation. This commit fixes the problem by removing those orderings from consideration. Fixes #73084 Release note (bug fix): Fixed an internal error that could occur during planning for some set operations (e.g., UNION, INTERSECT or EXCEPT) when at least one side of the set operation was ordered on a column that was not output by the set operation. This bug was first introduced in 21.2.0 and does not exist in prior versions. 73132: bazel: upgrade to `rules_nodejs` 4.4.6, `nodejs` 16.13.0 r=rail a=rickystewart This comes w/ support for Applie Silicon Macs. Closes #72829. Release note: None 73136: dev: add `go` command to `dev` r=rail a=rickystewart Just allows you to run `go` without actually having it installed. Maybe no one will use this but me, I don't know :) Release Note: None 73140: CODEOWNERS: move rttanalysis to sql-schema r=postamar a=rafiss I believe this is more accurate. Release note: None Co-authored-by: richardjcai <[email protected]> Co-authored-by: Azhng <[email protected]> Co-authored-by: Marylia Gutierrez <[email protected]> Co-authored-by: Marius Posta <[email protected]> Co-authored-by: Rebecca Taft <[email protected]> Co-authored-by: Ricky Stewart <[email protected]> Co-authored-by: Rafi Shamim <[email protected]>
- Loading branch information
Showing
70 changed files
with
1,257 additions
and
908 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ go_library( | |
"dev.go", | ||
"doctor.go", | ||
"generate.go", | ||
"go.go", | ||
"lint.go", | ||
"logic.go", | ||
"main.go", | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// Copyright 2020 The Cockroach Authors. | ||
// | ||
// Use of this software is governed by the Business Source License | ||
// included in the file licenses/BSL.txt. | ||
// | ||
// As of the Change Date specified in that file, in accordance with | ||
// the Business Source License, use of this software will be governed | ||
// by the Apache License, Version 2.0, included in the file | ||
// licenses/APL.txt. | ||
|
||
package main | ||
|
||
import "github.com/spf13/cobra" | ||
|
||
func makeGoCmd(runE func(cmd *cobra.Command, args []string) error) *cobra.Command { | ||
return &cobra.Command{ | ||
Use: "go <arguments>", | ||
Short: "Run `go` with the given arguments", | ||
Long: "Run `go` with the given arguments", | ||
Example: "dev go mod tidy", | ||
Args: cobra.MinimumNArgs(0), | ||
RunE: runE, | ||
} | ||
} | ||
|
||
func (d *dev) gocmd(cmd *cobra.Command, commandLine []string) error { | ||
ctx := cmd.Context() | ||
args := []string{"run", "@go_sdk//:bin/go", "--ui_event_filters=-DEBUG,-info,-stdout,-stderr", "--noshow_progress", "--"} | ||
args = append(args, commandLine...) | ||
return d.exec.CommandContextInheritingStdStreams(ctx, "bazel", args...) | ||
} |
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.