Yesterday ended on a bit of a cliffhanger: I had 26,280 weather rows sitting nicely in a CSV, about 7 million aggregated Citi Bike rows ready to move out of Alteryx, and an unresolved battle with the 64-bit Simba Snowflake ODBC driver.
Today was all about bridging the gap between local data preparation and cloud data warehousing to get my data visualization-ready.

The Driver Breakthrough

First, the driver issue: one of my coworkers came to the rescue and shared the driver download file! With the pipeline connected directly to our Snowflake playground, I ran the workflow and prepared to watch the summarized ~7 million rows stream into the Snowflake. But then...

Roadblock 1: The Three-Hour Load

Fifteen minutes in, Alteryx reported progress on the Output tool bouncing between 3% and 11%. This is how I learned that summarize tools in Alteryx are semi-blocking operations: they hold records in memory to compute group-by tasks before releasing them in bursts. Having Alteryx read 11.5 GB across 46 CSVs (each monthly Citi Bike data file is split into multiple files) from a network drive and inserting millions of rows into Snowflake in 10,000-record ODBC transaction batches definitely tested Alteryx (and my patience). It took roughly three hours, but the pipeline held steady, avoided memory crashes, and cleanly landed the data into Snowflake.

Minimizing Snowflake Compute

Once the aggregated Citi Bike table and the Open-Meteo weather table were both sitting in Snowflake, the next step was schema design.
My initial Citi Bike table was wide. It carried station names, latitude, longitude, commute period labels, weekend flags, and trip metrics all packed into every single row.
When discussing the plan to build out dimension tables directly in Snowflake, my coach raised a valid concern: query volume. Repeatedly querying and scanning a 7-million-row table in a shared Snowflake warehouse to build tables burns warehouse credits quickly, even if it's just me querying that massive table.

Designing the Schema

Trying to simplify the structure of the data as much as possible to make it computationally efficient, I designed a Star Schema composed of four physical tables:

  1. Station Table (777 rows): Dimension table; pulls dock metadata (start_station_name, coordinates, and manhattan_zone) out of the fact table; its key is start_station_id. Every row is a City Bike dock/station in Manhattan.
  2. Date Table (8,760 rows): A calendar dimension table containing date_hour, date, hour of day, weekend indicators, and a categorized commute period field (Morning Rush, Midday, Evening Rush, Night/Early Morning). Its primary key is date_hour. Each row represents an hour of the year contained in the data.
  3. Weather Table (26,280 rows): Dimension table with microclimate conditions per zone in Manhattan and hour; keyed on a composite primary key: date_hour + manhattan_zone. Each row represents an hour of weather conditions for a zone in Manhattan (Downtown/Midtown/Uptown).
  4. Hourly Citi Bike Rides Table (7,393,637 rows): Fact table, made by stripping the clean City Bike data of redundant text strings and coordinates. It retains foreign keys (date_hour, manhattan_zone, start_station_id), dimensions (rideable_type, member_casual), and metrics (trip_count, total_trip_duration_min, avg_trip_duration_min). Each row is one hour of Citi Bike activity at a specific station for a distinct rider type and bike type combination.

The Two-Query Build

To keep my warehouse footprint as small as possible, the entire relational schema was created using exactly two queries against the 7-million-row table. The script first creates the Station table by grouping by station ID, name, and zone while averaging coordinates to isolate the 777 unique docks/stations in Manhattan. Second, it generates the Date table entirely from the lightweight weather table, extracting distinct timestamps and parsing out calendar dates, hours, weekend flags, and rush-hour commute periods. Finally, it creates the Hourly Citi Bike Trips table by selecting only the foreign keys, rider categories, and trip metrics from the original trips table to form a lean central fact table.

With that, I was able to connect Snowflake to Tableau and build the four tables in.

Where Things Stand + What’s Next:

All the data has made it into Tableau and is nicely related!

Tomorrow morning, I transition from data engineering to visual analytics. I'll start by making an extract from the finished data source, plus I'll be creating concept sketches for both my Executive and Detailed dashboards. Once those I'll ready, I'll dive into actually building the dashboards!