Created
November 6, 2019 21:20
-
-
Save randyzwitch/0d8fbf771f33d6cd952f0c2e119f509e to your computer and use it in GitHub Desktop.
2017 FordGoBike/Baywheels data in OmniSci
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
--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