You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ListingTable and FileScanConfig assume all files accessible via single ObjectStore instance #15964
When attempting to read a table of files across multiple S3 buckets in a single query, the query will fail stating that files can't be found: Object Store error: Object at location test.parquet not found: Client error with status 404 Not Found: No Body
This can be seen when the DataFrame is explained.
To Reproduce
With an AWS account, create two buckets and place a test Parquet file in each.
Create an AmazonS3 ObjectStore instance for each file and register them via SessionContext::register_object_store with the S3 URIs.
Create a DataFusion query with SessionContext::read_parquet() that reads from both files.
Attempting to execute the query or show the explained query will show an error.
Expected behavior
Query should execute and produce same result as if files were in same S3 bucket.
Additional context
Amazon S3 ObjectStore instances are specific to the S3 bucket they read from. E.g. S3://bucket1/blah.parquet and S3://bucket2//blah2.parquet require two DIFFERENT ObjectStore instances.
The bug occurs in ListingTable which assumes all files in a table can be accessed via a single ObjectStore. This can be seen in numerous places such as the private list_files_for_scan function and the scan function. ListingTable creates the ObjectStore by just querying for the store associated with the first files in its list.
Activity
adriangb commentedon Jun 21, 2025
Could you give a concrete code sample?
patchwork01 commentedon Sep 15, 2025
Here's an example:
https://github.com/gchq/sleeper/blob/develop/rust/sleeper_core/tests/df_object_store_bug_check.rs
That test uses in-memory object stores, but it behaves the same with S3. The result is that we can't read from two S3 buckets at once.