Skip to content

Commit 34ca908

Browse files
authored
Merge pull request #10 from asubbarao/fix/document-seek-limitations
Document non-seekable file handle limitations
2 parents 4afc852 + da1d597 commit 34ca908

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/shell_file_system.hpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ namespace duckdb
3737
return false;
3838
}
3939

40+
// Seek/SeekPosition are not overridden and throw via the base class.
41+
// GetFileSize always returns 0 (pipes have no known size).
42+
// Reset throws "Cannot reset shell file system".
43+
// Consumers must check CanSeek() or guard these calls.
44+
4045
bool CanHandleFile(const string &fpath) override;
4146

4247
bool IsPipe(const string &filename, optional_ptr<FileOpener> opener) override

0 commit comments

Comments
 (0)