JingsongLi commented on code in PR #1448:
URL: https://github.com/apache/paimon-rust/pull/1448#discussion_r4662176021
##########
crates/paimon/src/io/file_io.rs:
##########
@@ -958,7 +1014,7 @@ impl FileIO {
}
}
let source = self.file_source(path)?;
- let (op, relative_path, _) = source.resolve(path).await?;
+ let (op, relative_path, cache_path) = source.resolve(path).await?;
Review Comment:
**[P2] Preserve ordinary CREATE on writable mounts without atomic
publication**
A `file:` warehouse can sit on a mounted filesystem. Ordinary `CREATE TABLE`
used to write `schema-0` with OpenDAL, which is enough to register a Format
Table over existing data. This early return applies `persist_noclobber` even
when the caller selected `IfSupported`. On Linux s3fs, the no-replace rename
fails with `EINVAL` and the hard-link fallback is unsupported, so registration
now fails before the schema is published. This follows from the new native-FS
path and the upstream mount implementation. [Rename
handling](https://github.com/s3fs-fuse/s3fs-fuse/blob/1d6df2d7a7c941a747523f5b256ec7af784204cf/src/s3fs.cpp#L2030-L2046)
· [Link
handling](https://github.com/s3fs-fuse/s3fs-fuse/blob/1d6df2d7a7c941a747523f5b256ec7af784204cf/src/s3fs.cpp#L2112-L2122)
Please honor `IfSupported` for a definite unsupported native publish, or
retain ordinary CREATE’s existing schema write there. Keep atomic publication
required for CTAS and preserve error propagation when a publication could have
succeeded.
--
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]