Skip to content

Commit

Permalink
Review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
thvasilo committed Nov 8, 2023
1 parent 84c1427 commit 4cdd6b2
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,8 @@ def write_parquet_to_relative_path(
def create_new_relative_path_from_existing(
original_relative_path: str, repartitioned_file_index: int, suffix: str = None
) -> str:
"""Changes the index in the `original_relative_path` to `original_relative_path`.
"""Changes the index of the filename ``part-<index>`` in `original_relative_path`
to the one given in `repartitioned_file_index`.
Given a path of the form 'path/to/parquet/part-00001-filename.snappy.parquet', changes the
numerical part of the filename to match the provided `repartitioned_file_index`,
Expand Down

0 comments on commit 4cdd6b2

Please sign in to comment.