forked from apache/iceberg-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Fix filesystem #23
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
Closed
Closed
Fix filesystem #23
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
e8c3a43
fix file system with env variables to set scheme and net loc if not s…
ae6cc0d
add test
cd939c7
fix linting
731075a
use catalog env configs and update to use default scheme and netloc f…
9bfb7e8
fix linter
1a75ab6
address comments
9387d6e
pr comments
80176e8
pr comments update comment
13001c8
simplify code, return to previous structure
35f4cdc
move variable usage closer to usage
2b83b79
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
The test assertions for
pathare not platform-independent. Theparse_locationfunction usesos.path.abspath(location)for schemeless paths, but the test hardcodes the expected path as"/foo/bar". This will work on Unix-like systems but fail on Windows where the absolute path would be different (e.g.,C:\\foo\\bar).To make the test robust across different operating systems, you should compare the result with
os.path.abspath().Additionally, the import
from pyiceberg.io.pyarrow import PyArrowFileIOis inside the test function. It's better to move it to the top of the file to follow the common style in this project. I have removed it in the suggestion below.