Skip to content

Instantly share code, notes, and snippets.

@timrobertson100
Created August 27, 2015 18:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timrobertson100/c78a8aedfb754bd06ed5 to your computer and use it in GitHub Desktop.
Save timrobertson100/c78a8aedfb754bd06ed5 to your computer and use it in GitHub Desktop.
CREATE TABLE tim.jw_uncertainty
ROW FORMAT DELIMITED FIELDS TERMINATED BY '\t'
SELECT
coordinateUncertaintyInMeters, count(*) AS numRecords
FROM
prod_b.occurrence_hdfs
WHERE
decimalLatitude IS NOT NULL AND
decimalLongitude IS NOT NULL AND
hasCoordinateIssue = FALSE AND
coordinateUncertaintyInMeters IS NOT NULL
GROUP BY coordinateUncertaintyInMeters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment