Skip to content

Instantly share code, notes, and snippets.

@mbforr
Last active January 8, 2023 10:32
Embed
What would you like to do?
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