Skip to content

Commit e788280

Browse files
committed
default scheme to file in fsspec
1 parent 1c480a5 commit e788280

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

pyiceberg/io/fsspec.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,8 @@ def new_input(self, location: str) -> FsspecInputFile:
299299
FsspecInputFile: An FsspecInputFile instance for the given location.
300300
"""
301301
uri = urlparse(location)
302-
fs = self.get_fs(uri.scheme)
302+
scheme = uri.scheme or "file"
303+
fs = self.get_fs(scheme)
303304
return FsspecInputFile(location=location, fs=fs)
304305

305306
def new_output(self, location: str) -> FsspecOutputFile:

0 commit comments

Comments
 (0)