-
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.
50790: geodist: use Point struct instead of a Point interface r=sumeerbhola a=otan Getting an Edge is expensive as the generating a Point that complies with the geodist.Point interface involves mallocing from memory. We call Edge(x) a lot when doing POLYGON <=> POLYGON comparisons. Instead, change the Point to a struct, which does not require any malloc to generate interfaces at the cost of code ugliness. Without bounding box checks, this speeds up a query from 2min to 1min30sec on a ~120000 row join. Release note: None 50962: util/mon: don't crash when shrinking by too much r=yuzefovich a=yuzefovich Previously, we called `panic` when `Shrink`ing the memory account by too much. Such scenario indicates that our memory accounting is off, but we shouldn't be crashing - we should report an error instead, and this commit does that. Fixes: #50804. Release note (bug fix): Previously, CockroachDB could crash when internal memory accounting hit a discrepancy. Now it will report an error instead. 50992: opt: fix error in case of NULL arguments to AddGeometryColumn r=yuzefovich a=rytaft This commit fixes an error that occurred when `AddGeometryColumn` was called with `NULL` arguments. The error was caused by an assertion that the output of `TypeCheck` was a `tree.FuncExpr` when in fact it was `tree.DNull`. This commit fixes the error by adding an explicit check for `tree.DNull` after calling `TypeCheck`. Fixes #50296 Release note (bug fix): Fixed an internal error that occurred when AddGeometryColumn was called with NULL arguments. This now results in a no-op and returns NULL. Co-authored-by: Oliver Tan <[email protected]> Co-authored-by: Yahor Yuzefovich <[email protected]> Co-authored-by: Rebecca Taft <[email protected]>
- Loading branch information
Showing
6 changed files
with
103 additions
and
104 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
Oops, something went wrong.