-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tree: correct sizes for geospatial datums #54868
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 2 of 2 files at r1.
Reviewable status: complete! 0 of 0 LGTMs obtained (waiting on @otan)
pkg/sql/sem/tree/datum.go, line 2833 at r1 (raw file):
bboxSize = unsafe.Sizeof(*bbox) } return unsafe.Sizeof(*d) + bboxSize + uintptr(len(d.EWKB()))
how about a SpatialObjectSize
function and use it in both places?
These were previously inaccurate, which may result in OOMs. Release note: None
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: complete! 0 of 0 LGTMs obtained (waiting on @sumeerbhola)
pkg/sql/sem/tree/datum.go, line 2833 at r1 (raw file):
Previously, sumeerbhola wrote…
how about a
SpatialObjectSize
function and use it in both places?
Done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 2 of 2 files at r2.
Reviewable status: complete! 1 of 0 LGTMs obtained (waiting on @sumeerbhola)
bors r=sumeerbhola |
1 similar comment
bors r=sumeerbhola |
Already running a review |
Build succeeded: |
These were previously inaccurate, which may result in OOMs.
Release note: None