Skip to content
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

builtins: implement ST_MemCollect and ST_MemUnion #53708

Merged
merged 1 commit into from
Sep 1, 2020

Conversation

erikgrinaker
Copy link
Contributor

These are implemented as aliases for ST_Collect and ST_Union. In PostGIS
these are memory-optimized versions, but for now it should be sufficient
to simply make them functional.

Release justification: low risk, high benefit changes to existing functionality

Release note (sql change): Implement the geometry aggregate builtins
ST_MemCollect and ST_MemUnion.

Closes #48984.
Closes #48986.

@erikgrinaker erikgrinaker requested a review from a team as a code owner August 31, 2020 21:32
@blathers-crl
Copy link

blathers-crl bot commented Aug 31, 2020

Thank you for contributing to CockroachDB. Please ensure you have followed the guidelines for creating a PR.

My owl senses detect your PR is good for review. Please keep an eye out for any test failures in CI.

🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is otan.

@blathers-crl blathers-crl bot added the O-community Originated from the community label Aug 31, 2020
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@erikgrinaker
Copy link
Contributor Author

CC @otan

"st_union": makeSTUnionBuiltin(),
"st_memunion": makeSTUnionBuiltin(),
"st_collect": makeSTCollectBuiltin(),
"st_memcollect": makeSTCollectBuiltin(),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can re-use the alias stuff for these: https://github.com/cockroachdb/cockroach/blob/master/pkg/sql/sem/builtins/geo_builtins.go#L4622

also #53556 is in the queue and you'll probably have to rebase over the top of them.

thanks!

Copy link
Contributor

@otan otan Aug 31, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh nvm you can't :P! hold out on the rebase then, if that's ok. i can do it for you if you prefer.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm off to bed shortly, so feel free to rebase, otherwise I'll get to it tomorrow.

These are implemented as aliases for ST_Collect and ST_Union. In PostGIS
these are memory-optimized versions, but for now it should be sufficient
to simply make them functional.

Release justification: low risk, high benefit changes to existing functionality

Release note (sql change): Implement the geometry aggregate builtins
`ST_MemCollect` and `ST_MemUnion`.
@otan
Copy link
Contributor

otan commented Sep 1, 2020

bors r+

@craig
Copy link
Contributor

craig bot commented Sep 1, 2020

Build succeeded:

@craig craig bot merged commit d331642 into cockroachdb:master Sep 1, 2020
@erikgrinaker erikgrinaker deleted the st_mem branch March 19, 2021 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
O-community Originated from the community
Projects
None yet
Development

Successfully merging this pull request may close these issues.

geo/geomfn: implement ST_MemUnion({geometry}) geo/geomfn: implement ST_MemCollect({geometry})
3 participants