Skip to content

builtins: add ST_<Shape>FromWKB and ST_<Shape>FromText functions#48441

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
otan-cockroach:from_text_wkb
May 7, 2020
Merged

builtins: add ST_<Shape>FromWKB and ST_<Shape>FromText functions#48441
craig[bot] merged 1 commit intocockroachdb:masterfrom
otan-cockroach:from_text_wkb

Conversation

@otan
Copy link
Copy Markdown
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 a team and sumeerbhola May 5, 2020 15:42
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

otan commented May 6, 2020

bors r=sumeerbhola

@craig
Copy link
Copy Markdown
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