-
Notifications
You must be signed in to change notification settings - Fork 28.6k
[SPARK-6330] Fix filesystem bug in newParquet relation #5020
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
Conversation
@@ -262,6 +262,7 @@ private[sql] case class ParquetRelation2( | |||
|
|||
// Lists `FileStatus`es of all leaf nodes (files) under all base directories. | |||
val leaves = baseStatuses.flatMap { f => | |||
val fs = FileSystem.get(URI.create(f.getPath.toString), sparkContext.hadoopConfiguration) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If f here is a FileStatus, then I think you can do f.getPath.toUri, perhaps?
Test build #28592 has started for PR 5020 at commit
|
Test build #28594 has started for PR 5020 at commit
|
LGTM, thanks! |
Test build #28592 has finished for PR 5020 at commit
|
Test PASSed. |
Test build #28594 has finished for PR 5020 at commit
|
Test PASSed. |
If I'm running this locally and my path points to S3, this would currently error out because of incorrect FS. I tested this in a scenario that previously didn't work, this change seemed to fix the issue. Author: Volodymyr Lyubinets <vlyubin@gmail.com> Closes #5020 from vlyubin/parquertbug and squashes the following commits: a645ad5 [Volodymyr Lyubinets] Fix filesystem bug in newParquet relation
Merged into master and branch-1.3, thanks! |
If I'm running this locally and my path points to S3, this would currently error out because of incorrect FS. I tested this in a scenario that previously didn't work, this change seemed to fix the issue. Author: Volodymyr Lyubinets <vlyubin@gmail.com> Closes apache#5020 from vlyubin/parquertbug and squashes the following commits: a645ad5 [Volodymyr Lyubinets] Fix filesystem bug in newParquet relation
If I'm running this locally and my path points to S3, this would currently error out because of incorrect FS. I tested this in a scenario that previously didn't work, this change seemed to fix the issue. Author: Volodymyr Lyubinets <vlyubin@gmail.com> Closes apache#5020 from vlyubin/parquertbug and squashes the following commits: a645ad5 [Volodymyr Lyubinets] Fix filesystem bug in newParquet relation
If I'm running this locally and my path points to S3, this would currently error out because of incorrect FS.
I tested this in a scenario that previously didn't work, this change seemed to fix the issue.