Skip to content

Instantly share code, notes, and snippets.

@randyzwitch
Created November 6, 2019 21:20
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 randyzwitch/0d8fbf771f33d6cd952f0c2e119f509e to your computer and use it in GitHub Desktop.
Save randyzwitch/0d8fbf771f33d6cd952f0c2e119f509e to your computer and use it in GitHub Desktop.
2017 FordGoBike/Baywheels data in OmniSci
--define table for 2017 schema
CREATE TABLE baywheels_tripdata(
duration_sec INTEGER,
start_time TIMESTAMP,
end_time TIMESTAMP,
start_station_id SMALLINT,
start_station_name TEXT ENCODING DICT,
start_station_latitude FLOAT,
start_station_longitude FLOAT,
end_station_id SMALLINT,
end_station_name TEXT ENCODING DICT,
end_station_latitude FLOAT,
end_station_longitude FLOAT,
bike_id SMALLINT,
user_type TEXT ENCODING DICT,
member_birth_year SMALLINT,
member_gender TEXT ENCODING DICT
);
--load data for 2017
copy baywheels_tripdata from 's3://baywheels-data/2017-fordgobike-tripdata.csv';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment