plusplusjiajia opened a new pull request, #11173: URL: https://github.com/apache/paimon/pull/11173
### Purpose With `format-table.partition-path-only-value=true`, a partition directory whose name starts with `_` or `.` is hidden from scans, except for the default partition. `PartitionPathUtils.isHiddenFile` recognizes the default partition by comparing the raw `partition.default-name` with the directory name. The writer escapes every value, the default name included, so a default name that escaping changes names a different directory: `__NULL/VALUE__` is written to `__NULL%2FVALUE__`, which the scan then skips as hidden, and the rows of the null partition are not read. `isHiddenFile` now compares the directory name with the escaped default name. Other directories that start with `_` or `.` are still hidden. Found while reviewing #11018, where PyPaimon reads such directories. ### Tests `PartitionPathUtilsTest#testValueOnlyEscapedDefaultPartitionIsListed` lists a value-only layout with the default name `__NULL/VALUE__`: the escaped default partition directory and a normal value are listed, and a `_hidden` directory is skipped. 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- 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]
