Skip to content

Commit

Permalink
add pre_treatment_reader_args
Browse files Browse the repository at this point in the history
  • Loading branch information
akaBotelho committed Oct 3, 2024
1 parent 59acf79 commit 0cec8e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions pipelines/serpro/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,5 @@ class constants(Enum): # pylint: disable=c0103
SUBSTRING(auinf_dt_infracao, 1, 10) = '{date}'
""",
"primary_key": ["auinf_num_auto"],
"pre_treatment_reader_args": {"dtype": "object"},
}
3 changes: 2 additions & 1 deletion pipelines/serpro/flows.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,9 @@
transform_raw_to_nested_structure_results = transform_raw_to_nested_structure.map(
raw_filepath=raw_filepaths,
filepath=local_filepaths,
primary_key=constants.SERPRO_CAPTURE_PARAMS.value["primary_key"],
primary_key=unmapped(constants.SERPRO_CAPTURE_PARAMS.value["primary_key"]),
timestamp=timestamps,
reader_args=unmapped(constants.SERPRO_CAPTURE_PARAMS.value["pre_treatment_reader_args"]),
error=unmapped(None),
)

Expand Down

0 comments on commit 0cec8e0

Please sign in to comment.