forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 1
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
55797: opt: increase types supported for range calculations in histogram r=rytaft a=ArjunM98 Prior to this commit, it was not possible to calculate the range of non-numeric types like strings/uuid/inet family for use in the histogram. To work around this, the range of these data types would be reduced by half when filtered. This commit fixes the problem by implementing support for range calculations of non-numeric types. Leveraging the byte format of these types and treating each byte as a base(16) number, we can estimate the range for an arbitrary set of strings/uuid/inet family. Additionally, support for time/timetz range calculations was also added. Release note (performance improvement): Improved the accuracy of histogram calculations for the following types: string/uuid/inet family. Additionally, support for time/timetz histogram calculations was also added. This improves optimizer's estimates and results in better query plans in certain instances. Resolves cockroachdb#49568 58612: sql: set running status for GC jobs r=postamar a=postamar Previously GC jobs didn't populate their RunningStatus leaving users no way to tell whether a job is waiting on the timer or actually doing garbage collection. This change addresses this. Fixes cockroachdb#57826. Release note (sql change): GC jobs now populate the running_status column for SHOW JOBS. Co-authored-by: ArjunM98 <[email protected]> Co-authored-by: Marius Posta <[email protected]>
- Loading branch information
Showing
11 changed files
with
794 additions
and
363 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
Oops, something went wrong.