Skip to content

Commit

Permalink
Collapse
Browse files Browse the repository at this point in the history
  • Loading branch information
Sreesh Maheshwar committed Jan 9, 2025
1 parent a4bb503 commit 312b442
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pyiceberg/partitioning.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,9 +234,7 @@ def partition_to_path(self, data: Record, schema: Schema) -> str:
partition_field = self.fields[pos]
value_str = partition_field.transform.to_human_string(field_types[pos].field_type, value=data[pos])

value_str = quote_plus(value_str, safe="")
value_strs.append(value_str)

value_strs.append(quote_plus(value_str, safe=""))
field_strs.append(quote_plus(partition_field.name, safe=""))

path = "/".join([field_str + "=" + value_str for field_str, value_str in zip(field_strs, value_strs)])
Expand Down

0 comments on commit 312b442

Please sign in to comment.