-
Notifications
You must be signed in to change notification settings - Fork 175
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BUG] Use os.path.join in read_hudi only for local fs (#2336)
Closes #2295 This PR modifies the path joining logic in read_hudi to only use `os.path.join` if the file system is a local filesystem, and otherwise manually join paths using `/`. This fixes the issue of reading Hudi from S3 on a Windows machine. Simulated a hudi read from Windows with: ``` from unittest.mock import patch import daft with patch("os.path.join", side_effect=lambda *args: "\\".join(args)): df = daft.read_hudi("s3://daft-public-data/hudi/v6_simplekeygen_nonhivestyle/") df.show() ```
- Loading branch information
Showing
5 changed files
with
34 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters