Skip to content

[Kernel] Fix the partition path construction#3290

Merged
vkorukanti merged 1 commit into
delta-io:masterfrom
vkorukanti:fixPartitionValSer
Jun 24, 2024
Merged

[Kernel] Fix the partition path construction#3290
vkorukanti merged 1 commit into
delta-io:masterfrom
vkorukanti:fixPartitionValSer

Conversation

@vkorukanti

Copy link
Copy Markdown
Collaborator

Description

The current code does not escape the control + special characters in partition values when constructing a path for writing the data related to the partition. Not escaping these characters could cause invalid path issues.

The escaping logic is similar to what Spark and Hive do.

How was this patch tested?

Unit tests.

*/
public String getTargetDirectory() {
return targetDirectory;
// TODO: this is temporary until paths are uniform (i.e. they are actually file system paths

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

This will be fixed as part of PR that changes all APIs to use the path. Currently we use paths some places and URI in others. This PR is coming next.

@vkorukanti vkorukanti merged commit 5ea073b into delta-io:master Jun 24, 2024
@vkorukanti vkorukanti deleted the fixPartitionValSer branch July 12, 2024 19:50
vkorukanti added a commit to vkorukanti/delta that referenced this pull request Aug 30, 2024
## Description
The current code does not escape the control + special characters in
partition values when constructing a path for writing the data related
to the partition. Not escaping these characters could cause invalid path
issues.

The escaping logic is similar to what Spark and Hive do.

## How was this patch tested?
Unit tests.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants