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

Redshift helper functions #20958

Merged
merged 1 commit into from Mar 1, 2018
Merged

Redshift helper functions #20958

merged 1 commit into from Mar 1, 2018

Conversation

bencodeorg
Copy link
Contributor

Add two helpful functions in redshift:
is_json: confirms whether a field contains JSON, and returns a boolean. Useful for JSON parsing functions in Redshift which barf if any row does not contain JSON.
miles_from_lat_lng: calculates milage distance between two sets of lat/lng coordinates. Useful in calculating distance between teacher's schools (we have lat/lng) and the location of PD workshops (we store lat/lng)

@bencodeorg
Copy link
Contributor Author

Circle tests do not apply here.

@bencodeorg bencodeorg merged commit 560d75c into staging Mar 1, 2018
@bencodeorg bencodeorg deleted the redshift-functions branch March 6, 2018 00:42
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.

None yet

1 participant