dwsmith1983 opened a new issue, #7745: URL: https://github.com/apache/datafusion-comet/issues/7745
### Describe the bug Found while working on #7732. iceberg-rust's local storage strips only `file:/` from a path, so `file://localhost/tmp/t/f.parquet` opens `/localhost/tmp/t/f.parquet`. Hadoop rejects that form (`Wrong FS: file://localhost/..., expected: file:///`), so Spark fails on it, but Comet's Iceberg gates let it through: the scan treats any location with an authority as openable, and the write skips the bucket check for `file`. ### Steps to reproduce On main (0e8c133b0), Spark 4.1: - **Write:** a table with `'write.data.path'='file://localhost/<dir>/wdp'` and native Iceberg write enabled. An INSERT of 3 rows leaves 3 Parquet files under `/localhost/<dir>/wdp/`, outside the table's directory, and then fails in `IcebergReflection.readParquetFooter` with `Wrong FS`. Nothing commits, so the files are left where orphan-file cleanup does not look. Without Comet the INSERT fails the same way and leaves no files. - **Scan:** a table whose manifest lists a data file as `file://localhost/<absolute path>`, built through the Iceberg API. The native scan fails with `FAILED_READ_FILE.FILE_NOT_EXIST`, and if a file exists at `/localhost/<absolute path>` it reads that one instead. ### Expected behavior A `file` location with a non-empty authority falls back to Spark at planning, since iceberg-rust would open a different path. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
