Skip to content

Commit

Permalink
teste transform_raw_to_nested_structure_chunked
Browse files Browse the repository at this point in the history
  • Loading branch information
akaBotelho committed Jan 8, 2025
1 parent 0933de2 commit 76d2fab
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pipelines/serpro/flows.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
parse_timestamp_to_string,
rename_current_flow_run_now_time,
run_dbt_model,
transform_raw_to_nested_structure,
transform_raw_to_nested_structure_chunked,
upload_raw_data_to_gcs,
upload_staging_data_to_gcs,
)
Expand Down Expand Up @@ -58,13 +58,14 @@
jdbc=jdbc, start_date=start_date, end_date=end_date, local_filepath=local_filepaths
)

errors, treated_filepaths = transform_raw_to_nested_structure(
errors, treated_filepaths = transform_raw_to_nested_structure_chunked(
raw_filepath=raw_filepaths,
filepath=local_filepaths,
primary_key=constants.SERPRO_CAPTURE_PARAMS.value["primary_key"],
timestamp=timestamp,
reader_args=constants.SERPRO_CAPTURE_PARAMS.value["pre_treatment_reader_args"],
error=None,
chunksize=50000,
)

errors = upload_raw_data_to_gcs(
Expand Down

0 comments on commit 76d2fab

Please sign in to comment.