Skip to content

Commit 70c36fb

Browse files
Merge pull request #755 from bcgov/BCWAT-fix-asp-scraper
Excluded ASP from getting type casted in Download
2 parents b7b6eb6 + 12b837d commit 70c36fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

airflow/etl_pipelines/scrapers/StationObservationPipeline/StationObservationPipeline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ def download_data(self):
184184
# Since from here on out the columns will be the stripped ones, if they have changed
185185
# our schema_overrides from above may not have applied
186186
# Perform CAST-ing as necessary
187-
if(key in self.expected_dtype):
187+
if(key in self.expected_dtype and self.name != "ASP"):
188188
data_df = data_df.cast(self.expected_dtype[key], strict=False)
189189

190190
# __downloaded_data contains the path to the downloaded data if go_through_all_stations is False

0 commit comments

Comments
 (0)