Skip to content

Commit

Permalink
fix failing parquet writes (#181)
Browse files Browse the repository at this point in the history
Fix type overload on HyperRtRail Job

Skip processing of HyperStaticStopTimes because it causes out of memory on ecs.
  • Loading branch information
rymarczy authored Nov 9, 2023
1 parent b80fb7d commit 02f53af
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions python_src/src/lamp_py/tableau/jobs/rt_rail.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,10 @@ def parquet_schema(self) -> pyarrow.schema:
("static_stop_count", pyarrow.int64()),
("first_last_station_match", pyarrow.bool_()),
("static_version_key", pyarrow.int64()),
("travel_time_seconds", pyarrow.int16()),
("dwell_time_seconds", pyarrow.int16()),
("headway_trunk_seconds", pyarrow.int16()),
("headway_branch_seconds", pyarrow.int16()),
("travel_time_seconds", pyarrow.int32()),
("dwell_time_seconds", pyarrow.int32()),
("headway_trunk_seconds", pyarrow.int32()),
("headway_branch_seconds", pyarrow.int32()),
("updated_on", pyarrow.timestamp("us")),
]
)
Expand Down
4 changes: 2 additions & 2 deletions python_src/src/lamp_py/tableau/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
HyperStaticFeedInfo,
HyperStaticRoutes,
HyperStaticStops,
HyperStaticStopTimes,
# HyperStaticStopTimes,
HyperStaticTrips,
)

Expand All @@ -27,7 +27,7 @@ def create_hyper_jobs() -> List[HyperJob]:
HyperStaticFeedInfo(),
HyperStaticRoutes(),
HyperStaticStops(),
HyperStaticStopTimes(),
# HyperStaticStopTimes(),
HyperStaticTrips(),
]

Expand Down

0 comments on commit 02f53af

Please sign in to comment.