Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Apply formatting
Signed-off-by: Jonas Bauer <jbauer@easy2parts.com>
  • Loading branch information
p3s-jbauer authored and ntkathole committed Jan 30, 2026
commit 7f1d005fd826d1cc6abd015a3a6f78af50772d45
Original file line number Diff line number Diff line change
Expand Up @@ -1963,11 +1963,15 @@ def normalize_timestamps(batch: pd.DataFrame) -> pd.DataFrame:
absolute_path, destination.s3_endpoint_override
)
if absolute_path.startswith(REMOTE_STORAGE_SCHEMES):
write_path = absolute_path.rstrip('.parquet') if absolute_path.endswith('.parquet') else absolute_path
write_path = (
absolute_path.rstrip(".parquet")
Comment thread
jbauer12 marked this conversation as resolved.
Outdated
if absolute_path.endswith(".parquet")
else absolute_path
)
else:
path_obj = Path(resolved_path)
if path_obj.suffix == '.parquet':
path_obj = path_obj.with_suffix('')
if path_obj.suffix == ".parquet":
path_obj = path_obj.with_suffix("")
path_obj.mkdir(parents=True, exist_ok=True)
write_path = str(path_obj)
ds.write_parquet(write_path)
Expand Down