thswlsqls opened a new pull request, #9507:
URL: https://github.com/apache/paimon/pull/9507

   
   ### Purpose
   
   fix #9506
   
   - Behavior change, up front: a single-segment relative path such as `x.csv` 
succeeds today and throws `IOException` after this change. That success writes 
into a table the user never named, and which table is non-deterministic — the 
Hadoop FileSystem cache key is scheme+authority+ugi.
   - `initialize()` took `workingDirectory` from the raw URI Hadoop passes in 
while normalizing `this.uri` to `scheme://authority/`. Reorder so it derives 
from the normalized catalog root. The self-contradiction dates to #5916.
   - Reached by the documented usage in `docs/docs/concepts/rest/pvfs.md` lines 
61-62.
   
   ### Tests
   
   - Added `VirtualFileSystemTest#testWorkingDirectoryIsCatalogRoot`, inherited 
by both subclasses: the working directory equals the catalog root, and a 
relative-path `create` lands in the table it names.
   - `mvn -pl paimon-vfs/paimon-vfs-hadoop clean install` — 29 tests pass. No 
existing test initializes with a path component 
(`MockRestVirtualFileSystemTest` L119, `MockRestNoCacheVirtualFileSystemTest` 
L47), so the 27 pre-existing tests stay green.
   


-- 
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]

Reply via email to