Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix recursive listing from Hive partitions containing non-alphabetic values #18167

Conversation

findepi
Copy link
Member

@findepi findepi commented Jul 7, 2023

Fix query failure when hive.recursive-directories is used and the partition directory contains any url-encoded characters, i.e. when partition value contains pretty much anything other than letters/digits.

Fixes #18149

…values

Fix query failure when `hive.recursive-directories` is used and the
partition directory contains any url-encoded characters, i.e. when
partition value contains pretty much anything other than letters/digits.
@findepi findepi force-pushed the findepi/fix-recursive-listing-from-hive-partitions-containing-non-alphabetic-values-200fe8 branch from 79e7b5c to c710b41 Compare July 7, 2023 09:53
@findepi findepi requested a review from findinpath July 7, 2023 09:53
@github-actions github-actions bot added tests:hive hive Hive connector labels Jul 7, 2023
Copy link
Member

@guyco33 guyco33 left a comment

Choose a reason for hiding this comment

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

Indeed URL decode is not correct here as it replaces the + sign to space character.
Using Location instead of constructing value from Path is safer.

@electrum
Copy link
Member

electrum commented Jul 7, 2023

Commit title is too long

@findepi findepi merged commit cbbf383 into master Jul 10, 2023
@findepi findepi deleted the findepi/fix-recursive-listing-from-hive-partitions-containing-non-alphabetic-values-200fe8 branch July 10, 2023 05:38
@github-actions github-actions bot added this to the 422 milestone Jul 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed hive Hive connector
Development

Successfully merging this pull request may close these issues.

Failure when Hive partition value contains + and hive.recursive-directories is enabled
5 participants