-
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
65474: changefeedccl: Support enum columns in avro encoding r=[miretskiy] a=HonoreDB In the JSON encoder, enums are rendered as strings, and if a type is altered, this is reflected in future messages but doesn't backfill. Because a backfill would be nontrivial, we're doing the same thing in the avro encoder rather than use the Avro enum type. Note that enums are not a built-in type and therefore not hit in avro_test.go. I'm hoping to figure out how to fix that before merging this commit, or as a followup. Release note (bug fix): Enum columns can be encoded in avro changefeeds 65683: server: Reject SQL Pods with an invalid tenant id. r=ajwerner a=rimadeodhar This commit fixes an issue where attempting to start a SQL Pod through cockroach mt start-sql command returns an error if the tenant id has not been created before. Previously, attempting to start a SQL Pod with a non existent tenant id would crash. Even worse, it would poison the tenant id causing future crdb_internal.create_sql_tenant calls to fail. With this fix, the cockroach mt start-sql command returns an error for non existent tenant ids and future calls to crdb_internal.create_sql_tenant are successful. Resolves: #64963 Release note (bug fix): The cockroach mt start-sql command with a non existent tenant id returns an error. Previously, it would crash and poison the tenant id for future usage. 65750: sql: fix schema privileges on descriptor read r=ajwerner a=RichardJCai Release note (bug fix): Previously a schema's privilege descriptor could become corrupted upon executing ALTER DATABASE ... CONVERT TO SCHEMA due to privileges that are invalid on a schema being copied over to the schema rendering the schema inusable due to invalid privileges. Fixes #65697 65866: bazel: add targets to generate cluster setting/functions documentation r=rail a=rickystewart I validated that these work and have a clean `diff` with what's in tree. Closes #65808. Closes #65811. Release note: None 65907: opt: normalize x=True, x=False, x != True, and x != False to x or NOT x r=rytaft a=rytaft This commit adds four normalization rules, `FoldEqTrue`, `FoldEqFalse`, `FoldNeTrue`, and `FoldNeFalse`, which normalize `x=True` to `x`, `x=False` to `NOT x`, `x != True` to `NOT x`, and `x != False` to `x`. These rules are important since they can unlock other types of optimizations, such as constrained index scans. Fixes #65684 Release note (performance improvement): Fixed an issue in the optimizer that prevented spatial predicates of the form `(column && value) = true` from being index-accelerated. These queries can now use a spatial index if one is available. 65960: bazel: bump size of `//pkg/sql:sql_test` r=rail a=rickystewart This has been routinely timing out in CI. Release note: None Co-authored-by: Aaron Zinger <[email protected]> Co-authored-by: rimadeodhar <[email protected]> Co-authored-by: richardjcai <[email protected]> Co-authored-by: Ricky Stewart <[email protected]> Co-authored-by: Rebecca Taft <[email protected]>
- Loading branch information
Showing
30 changed files
with
702 additions
and
72 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
genrule( | ||
name = "settings", | ||
outs = ["settings.html"], | ||
cmd = "$(location //pkg/cmd/cockroach-short) gen settings-list --format=html > $@", | ||
exec_tools = ["//pkg/cmd/cockroach-short"], | ||
) | ||
|
||
genrule( | ||
name = "settings_for_tenants", | ||
outs = ["settings-for-tenants.txt"], | ||
cmd = "$(location //pkg/cmd/cockroach-short) gen settings-list --without-system-only > $@", | ||
exec_tools = ["//pkg/cmd/cockroach-short"], | ||
) |
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,17 @@ | ||
genrule( | ||
name = "sql", | ||
outs = [ | ||
"aggregates.md", | ||
"functions.md", | ||
"operators.md", | ||
"window_functions.md", | ||
], | ||
cmd = """ | ||
$(location //pkg/cmd/docgen) functions . --quiet | ||
mv aggregates.md $(location aggregates.md) | ||
mv functions.md $(location functions.md) | ||
mv operators.md $(location operators.md) | ||
mv window_functions.md $(location window_functions.md) | ||
""", | ||
exec_tools = ["//pkg/cmd/docgen"], | ||
) |
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
Oops, something went wrong.