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

geo: rebrand geospatial to spatial with minor refactors #53721

Merged
merged 1 commit into from
Sep 1, 2020

Conversation

otan
Copy link
Contributor

@otan otan commented Aug 31, 2020

  • Rename geospatial to spatial (for outwards facing docs).
  • Replace all (args[d].(*tree.DType)) to tree.MustBeDType(args[d])
  • Add tests to ensure all geo builtin info has a capital letter and
    full stop.

Release justification: low risk update to new functionality

Release note: None

@otan otan requested review from sumeerbhola and a team August 31, 2020 23:30
@otan otan requested review from a team as code owners August 31, 2020 23:30
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@otan otan force-pushed the rebrand_geo branch 4 times, most recently from 5afb304 to 325ad66 Compare September 1, 2020 03:39
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 11 of 11 files at r1.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @otan)


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

const usesSpheroidMessage = " Uses a spheroid to perform the operation."
const spheroidDistanceMessage = `"\n\nWhen operating on a spheroid, this function will use the sphere to calculate ` +
	`the closest two points using a sphere. The spheroid distance between these two points is calculated using GeographicLib. ` +

I think we can end the sentence at "... closest two points." since it already says "will use the sphere" earlier in the sentence.

* Rename geospatial to spatial (for outwards facing docs).
* Replace all (args[d].(*tree.DType)) to tree.MustBeDType(args[d])
* Add tests to ensure all geo builtin info has a capital letter and
  full stop.

Release justification: low risk update to new functionality

Release note (cli change): The `--geo-libs` flag introduced in
v20.2-alphas is renamed to `--spatial-libs`.
@otan
Copy link
Contributor Author

otan commented Sep 1, 2020

bors r=sumeerbhola

@craig
Copy link
Contributor

craig bot commented Sep 1, 2020

Build succeeded:

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