Created
February 4, 2019 18:48
-
-
Save JoaoCarabetta/0f643603e9869005d30fe76003878dc3 to your computer and use it in GitHub Desktop.
Waze linestring to geojson in Athena
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT | |
'{"type":"LineString", "coordinates":' || | |
'[' || array_join(transform(line, loc -> '[' || CAST(loc.x AS VARCHAR) || ',' || CAST(loc.y AS VARCHAR) || ']'), ',') || ']}' | |
FROM test.test |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment