geo: implement ST_MakePoint({float8,float8,float8,float8}) -> geometry #48816
Labels
A-geometry-creation-builtins
Builtins which have geometry as a return statement.
C-enhancement
Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
Implement
ST_MakePoint
on arguments {float8,float8,float8,float8}, which should adopt PostGIS behaviour.For Geometry builtins, please do the following:
pkg/geo
. Add exhaustive unit tests here - you can run through example test cases and make sure that PostGIS and CRDB return the same result within a degree of accuracy (1cm for geography).pkg/sql/sem/builtins/geo_builtins.go
. Note that we currently do not support optional arguments, so we define functions that have optional arguments once without the optional argument (using the default value in the optional position), and once with the optional argument.pkg/sql/logictest/testdata/logic_test/geospatial
to call this functionality at least once. You can callmake testbaselogic FILES='geospatial' TESTFLAGS='-rewrite'
to regenerate the output manually. Tests here should just ensure the builtin is linked end to end.make buildshort
.You can follow #48441 for an example PR.
🤖 This issue was synced with a spreadsheet by gsheets-to-github-issues by otan on 2020-05-14T15:44:16Z. Changes to titles, body and labels may be overwritten.
The text was updated successfully, but these errors were encountered: