Skip to content

Commit

Permalink
Update croissant_crumbs.py
Browse files Browse the repository at this point in the history
  • Loading branch information
lhoestq authored Sep 18, 2024
1 parent c50ea37 commit 9182dab
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def get_croissant_crumbs_from_dataset_infos(
"fileSet": {"@id": distribution_name},
"extract": {"fileProperty": "fullpath"},
"transform": {
"regex": f"{re.escape(config)}/{'partial-' if partial else ''}({piped_splits})/.+parquet$"
"regex": f"{re.escape(config)}/(?:partial-)?({piped_splits})/.+parquet$"
},
},
"references": {"field": {"@id": f"{split_record_set_name}/split_name"}},
Expand Down

0 comments on commit 9182dab

Please sign in to comment.