You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Ayush Saxena (Jira)" <ji...@apache.org> on 2022/02/22 14:16:00 UTC
[jira] [Commented] (HIVE-25960) Fix S3a recursive listing logic
[ https://issues.apache.org/jira/browse/HIVE-25960?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17496120#comment-17496120 ]
Ayush Saxena commented on HIVE-25960:
-------------------------------------
Merged PR to master. Thanx [~abstractdog] for the review!!!
> Fix S3a recursive listing logic
> -------------------------------
>
> Key: HIVE-25960
> URL: https://issues.apache.org/jira/browse/HIVE-25960
> Project: Hive
> Issue Type: Bug
> Reporter: Ayush Saxena
> Assignee: Ayush Saxena
> Priority: Major
> Labels: pull-request-available
> Fix For: 4.0.0
>
> Time Spent: 1h
> Remaining Estimate: 0h
>
> To make the path relative:
> Path relativePath = new Path(each.getPath().toString().replace(base.toString(), ""));
>
> Here base in the FileStatus not the path. It should be base.getPath().toString() and instead of replace it should be replaceFirst()
--
This message was sent by Atlassian Jira
(v8.20.1#820001)