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: add ST_<Shape>FromWKB and ST_<Shape>FromText functions #48441

Merged
merged 1 commit into from
May 7, 2020

Conversation

otan
Copy link
Contributor

@otan otan commented May 5, 2020

Release note (sql change): Added builtins allowing parsing text and wkb
all supported shapes, e.g. ST_PointFromWKB, ST_PointFromText, which
return NULL if the WKT/EWKT/WKB do not match the shape provided.

@otan otan requested review from sumeerbhola and a team May 5, 2020 15:42
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Collaborator

@sumeerbhola sumeerbhola left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 4 of 4 files at r1.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @otan)


pkg/sql/sem/builtins/geo_builtins.go, line 320 at r1 (raw file):

	"st_multilinestringfromtext": geometryFromTextCheckShapeBuiltin(geopb.Shape_MultiLineString),
	"st_multilinestringfromwkb":  geometryFromWKBCheckShapeBuiltin(geopb.Shape_MultiLineString), // missing from PostGIS
	"st_multipointfromtext":      geometryFromTextCheckShapeBuiltin(geopb.Shape_MultiPoint),     // SRID version missing form PostGIS

s/form/from/

Release note (sql change): Added builtins allowing parsing text and wkb
all supported shapes, e.g. `ST_PointFromWKB`, `ST_PointFromText`, which
return NULL if the WKT/EWKT/WKB do not match the shape provided.
@otan otan force-pushed the from_text_wkb branch from 1494ed1 to 8826ae5 Compare May 6, 2020 22:40
@otan
Copy link
Contributor Author

otan commented May 6, 2020

bors r=sumeerbhola

@craig
Copy link
Contributor

craig bot commented May 7, 2020

Build succeeded

@craig craig bot merged commit 1602db2 into cockroachdb:master May 7, 2020
This was referenced May 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants