Skip to content

Conversation

@lonless9
Copy link
Contributor

Which issue does this PR close?

Rationale for this change

What changes are included in this PR?

This PR changes the implementation to use Path::parse(proto.path). As per the object_store crate's documentation, Path::parse is the correct method for constructing a Path from a raw, already-encoded string, as it preserves the encoding.

Are these changes tested?

Yes, with unit tests.

Are there any user-facing changes?

No.

@github-actions github-actions bot added the proto Related to proto crate label Oct 29, 2025
Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @lonless9 -- this makes sense to me

@alamb alamb added this pull request to the merge queue Oct 30, 2025
Merged via the queue into apache:main with commit dcd2f4f Oct 30, 2025
28 checks passed
@linhr linhr deleted the fix-proto branch October 31, 2025 03:31
tobixdev pushed a commit to tobixdev/datafusion that referenced this pull request Nov 2, 2025
…rialization (apache#18346)

## Which issue does this PR close?

- Closes apache#18345 

## Rationale for this change

## What changes are included in this PR?

This PR changes the implementation to use Path::parse(proto.path). As
per the object_store crate's documentation, Path::parse is the correct
method for constructing a Path from a raw, already-encoded string, as it
preserves the encoding.

## Are these changes tested?

Yes, with unit tests.

## Are there any user-facing changes?

No.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

proto Related to proto crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Percent-encoding in PartitionedFile during deserialization is not respected

2 participants