-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
66451: sql: introduce index usage stats subsystem r=mgartner a=Azhng First commit: **roachpb: add protobuf definition for index usage statistics** Release note: None Second commit: **sql: introduce index usage stats subsystem** This commit introduce a new index usage stats subsystem living inside the sql package. This subsystem is responsible for asynchronously collecting index usage statistics from the planner and its is created within the sql.Server. Release note: None Related PR: * 1/3: Current PR * 2/3: #66639 * 3/3: #66640 67426: builtin: add {de,}compress builtins r=pbardea a=pbardea ``` [email protected]:26257/movr> select compress('hello there', 'gzip'); compress ------------------------------------------------------------------------------------------------------------------------ \037\213\010\000\000\000\000\000\000\377\312H\315\311\311W(\311H-J\005\004\000\000\377\377P\351\022m\013\000\000\000 (1 row) [email protected]:26257/movr> select decompress(compress('hello there', 'gzip'), 'gzip'); decompress --------------- hello there (1 row) [email protected]:26257/movr> select length(repeat('hi there', 100)::bytes); length ---------- 800 (1 row) [email protected]:26257/movr> select length(compress(repeat('hi there', 100)::bytes, 'gzip')); length ---------- 39 (1 row) [email protected]:26257/movr> select decompress('not compressed', 'gzip'); ERROR: decompress(): failed to decompress: gzip: invalid header [email protected]:26257/movr> select decompress('bad codec', 'zip'); ERROR: decompress(): only 'gzip' codec is supported for decompress() SQLSTATE: 22023 ``` This commits adds builtins to compress and decompress bytes. The only codec currently supported is `gzip`. Release note (sql change): New builtins, compress(data, codec) and decompress(data, codec), are added which can compress and decompress bytes with the specified codec. Gzip is the only currently supported codec. 67540: dev: infer and pass in an appropriate `dev` config to bazel invocations r=rail a=rickystewart Passing `--config=dev` for `dev` builds is a good choice, and `--config=devdarwinx86_64` is required for most dev builds on macOS machines. Automatically pass that flag unless the user requests not to. Release note: None 67584: parser: move scan.go to new scanner package r=knz,otan a=rafiss Fixes #64710 See individual commits. This extracts an interface for sqlSymType so that scan.go can keep using it. This allows scan.go to live in its own package so that other components can use its functionality without needing to pull in a large dependency on sql/sem/tree. Release note: None 67614: backfill: fix backfills for indexes on non-null virtual columns r=mgartner a=mgartner Refactoring in #65514 broke backfills for indexes that include non-null virtual columns. This specific case was not tested so it was not caught earlier. This commit fixes the issue and adds a test. Fixes #67528 There is no release note because this bug was not included in any prior releases. Release note: None Co-authored-by: Azhng <[email protected]> Co-authored-by: Paul Bardea <[email protected]> Co-authored-by: Ricky Stewart <[email protected]> Co-authored-by: Rafi Shamim <[email protected]> Co-authored-by: Marcus Gartner <[email protected]>
- Loading branch information
Showing
42 changed files
with
2,365 additions
and
315 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
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
dev gen bazel | ||
---- | ||
bazel info workspace --color=no | ||
bazel info workspace --color=no --config=dev | ||
go/src/github.com/cockroachdb/cockroach/build/bazelutil/bazel-generate.sh |
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.