Skip to content

Instantly share code, notes, and snippets.

@mbforr
Last active January 8, 2023 10:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mbforr/46dda547e4258c64717db01d9a5dd927 to your computer and use it in GitHub Desktop.
Save mbforr/46dda547e4258c64717db01d9a5dd927 to your computer and use it in GitHub Desktop.
CREATE OR REPLACE TABLE
`PROJECT.DATASET.nyc` AS
SELECT
*,
st_geogpoint(pickup_longitude,
pickup_latitude) AS geom
FROM
`bigquery-public-data.new_york_taxi_trips.tlc_yellow_trips_2015`
WHERE
pickup_datetime BETWEEN '2015-06-01T00:00:00'
AND '2015-06-08T00:00:00'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment