jackylee-ch opened a new pull request, #1135: URL: https://github.com/apache/paimon-rust/pull/1135
On a FileSystemCatalog over S3 or OSS, `DROP TABLE orders` also deletes `orders_bak` and `orders2024`, and `sys.rename_branch` from `b1` also deletes `b10`. On these stores, format-table DROP PARTITION `month=1` also removes `month=10` to `month=12`, which stay registered. `FileIO::delete_dir` passes the path without a trailing `/`. OpenDAL then trims a trailing space off the name (dropping `t1 ` deletes `t1`), and its emulated recursive delete matches every key with that prefix. Java's `FileSystemCatalog` deletes only that directory. **Fix**: build the path with `normalize_root`, as `exists_dir`, `mkdirs` and `list_status` do. This covers every caller, including `drop_branch` (#941). The new tests fail on main; the memory backend deletes by prefix as S3 and OSS do. `FileIO::rename` trims the same way, but OpenDAL rejects a rename path ending in `/`, so that needs a separate change. -- 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]
