Skip to content

ARROW-18269: [C++] Handle slash character in Hive-style partition values - #14646

Merged
pitrou merged 10 commits into
apache:masterfrom
vibhatha:arrow-18269
Dec 5, 2022
Merged

pitrou merged 10 commits into
apache:masterfrom
vibhatha:arrow-18269

Conversation

@vibhatha

Copy link
Copy Markdown
Contributor

This PR includes a modification to the partition key generation. Expecting input data column with URI data for partition, the URI encoding is added to consider that situation.

@github-actions

Copy link
Copy Markdown

@github-actions

Copy link
Copy Markdown

⚠️ Ticket has not been started in JIRA, please click 'Start Progress'.

@vibhatha
vibhatha marked this pull request as ready for review November 16, 2022 00:08

@westonpace westonpace left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This fixes hive partitioning. Do we need to also fix directory partitioning or filename partitioning?

Comment thread python/pyarrow/tests/test_dataset.py Resolved
@vibhatha

Copy link
Copy Markdown
Contributor Author

This fixes hive partitioning. Do we need to also fix directory partitioning or filename partitioning?

Good question. Should we do in a separate PR?

@westonpace

Copy link
Copy Markdown
Member

Good question. Should we do in a separate PR?

I think that's fine. I also don't know if we do the URI decoding with directory or filename partitioning. If I recall, URI decoding was originally added specifically for compatibility with the way that Spark wrote datasets.

@vibhatha

Copy link
Copy Markdown
Contributor Author

Good question. Should we do in a separate PR?

I think that's fine. I also don't know if we do the URI decoding with directory or filename partitioning. If I recall, URI decoding was originally added specifically for compatibility with the way that Spark wrote datasets.

Ah I see, that's good to know. I created a JIRA here and I will work on this issue.

Comment thread python/pyarrow/tests/test_dataset.py Resolved
@vibhatha
vibhatha requested review from westonpace and wjones127 and removed request for westonpace and wjones127 November 17, 2022 06:03

@wjones127 wjones127 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for the new test. This looks good!

Comment thread cpp/src/arrow/dataset/partition.cc Resolved
Comment thread python/pyarrow/tests/test_dataset.py Resolved
Comment thread python/pyarrow/tests/test_dataset.py Resolved
Comment thread python/pyarrow/tests/test_dataset.py Resolved
Comment thread python/pyarrow/tests/test_dataset.py Resolved
@vibhatha
vibhatha requested a review from pitrou November 28, 2022 11:56
@pitrou pitrou changed the title ARROW-18269: [C++] Slash character in partition value handling ARROW-18269: [C++] Handle slash character in Hive-style partition values Nov 29, 2022

@pitrou pitrou left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks mostly good, thank you!

Comment thread cpp/src/arrow/dataset/partition_test.cc Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can we use ArrayFromJSON or even TableFromJSON instead of building these step-by-step?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Good catch. We should be able to.

@vibhatha

vibhatha commented Dec 2, 2022

Copy link
Copy Markdown
Contributor Author

@pitrou updated the PR.

@vibhatha
vibhatha requested a review from pitrou December 2, 2022 13:18
@pitrou
pitrou merged commit db00444 into apache:master Dec 5, 2022
@ursabot

ursabot commented Dec 5, 2022

Copy link
Copy Markdown

Benchmark runs are scheduled for baseline = 5121326 and contender = db00444. db00444 is a master commit associated with this PR. Results will be available as each benchmark for each run completes.
Conbench compare runs links:
[Finished ⬇️0.0% ⬆️0.0%] ec2-t3-xlarge-us-east-2
[Finished ⬇️0.2% ⬆️0.07%] test-mac-arm
[Finished ⬇️1.63% ⬆️0.0%] ursa-i9-9960x
[Finished ⬇️0.35% ⬆️0.0%] ursa-thinkcentre-m75q
Buildkite builds:
[Finished] db004443 ec2-t3-xlarge-us-east-2
[Finished] db004443 test-mac-arm
[Finished] db004443 ursa-i9-9960x
[Finished] db004443 ursa-thinkcentre-m75q
[Finished] 51213261 ec2-t3-xlarge-us-east-2
[Finished] 51213261 test-mac-arm
[Finished] 51213261 ursa-i9-9960x
[Finished] 51213261 ursa-thinkcentre-m75q
Supported benchmarks:
ec2-t3-xlarge-us-east-2: Supported benchmark langs: Python, R. Runs only benchmarks with cloud = True
test-mac-arm: Supported benchmark langs: C++, Python, R
ursa-i9-9960x: Supported benchmark langs: Python, R, JavaScript
ursa-thinkcentre-m75q: Supported benchmark langs: C++, Java

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants