Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: avoid some allocations in DeltaStorageHandler (delta-io#1115)
# Description Fixes an error in the `DeltaFileSystemHandler`, when reading file metadata from remote storages. Due to an inconsistency between the behaviour object stores when invoking list operations on a path that points to a file, we incorrectly returned an Directory type for files in case of object stores. The bug only surfaced when using pyarrow < 9, since we used the call only when getting the file size, which we avoid when using more recent pyarrow versions. @tustvold - I seem to vaguely remember discussing this at some point, but am not sure anymore. Is this something we should look into in object-store? Update: validated locally, that the upstream fixes will fix the linked issue, so the main reason for this PR is resolved elsewhere. There are some changes included which safe us some allocation (admittedly very few), but hopefully an improvement anyhow. # Related Issue(s) closes delta-io#1109 # Documentation <!--- Share links to useful documentation --->
- Loading branch information