-
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.
61784: sql: stop mutating AST in AlterPrimaryKey r=fqazi a=ajwerner The code in #61345 added a test that, under stress, nicely revealed a bug. The bug is that we're mutating the AST in place and then, on retries, we hit an error. The fix is to not mutate the AST. I wish I had a more comprehensive testing strategy to ensure this didn't happen. On some level, we could clone the AST when passing it to various DDL plan node constructors. That's very defensive but also probably fine. Another thing that would be cool would be to just assert that after planning the AST did not change. Touches #60824. Release note: None 61791: kv/kvserver: skip TestEagerReplication r=RaduBerinde a=adityamaru Refs: #54646 Reason: flaky test Generated by bin/skip-test. Release justification: non-production code changes Release note: None 61796: bazel: make `pkg/internal/rsg/yacc` test runnable in Bazel r=rickystewart a=rickystewart This test was missing a dependency on `sql.y`. Release note: None 61797: bazel: make `pkg/sql/parser` test runnable in Bazel r=rickystewart a=rickystewart There was a typo in the `genrule` definition here. Release note: None Co-authored-by: Andrew Werner <[email protected]> Co-authored-by: Aditya Maru <[email protected]> Co-authored-by: Ricky Stewart <[email protected]>
- Loading branch information
Showing
9 changed files
with
71 additions
and
40 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
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 |
---|---|---|
|
@@ -51,7 +51,6 @@ go_test( | |
], | ||
data = glob(["testdata/**"]), | ||
embed = [":parser"], | ||
tags = ["broken_in_bazel"], | ||
deps = [ | ||
"//pkg/sql/lex", | ||
"//pkg/sql/pgwire/pgerror", | ||
|
@@ -108,7 +107,7 @@ genrule( | |
], | ||
outs = ["helpmap_test.go"], | ||
cmd = """ | ||
$(location :help-gen-test) < $< >$@ | ||
$(location :help-gen-test) < $< >$@.tmp | ||
mv -f [email protected] $@ | ||
""", | ||
tools = [ | ||
|