Search before asking
Paimon version
master
Compute Engine
Spark / Flink (format table)
Minimal reproduce step
In a value-only partition layout (formatTablePartitionOnlyValueInPath=true) the write validator in PartitionPathUtils.validatePartitionValueForPath rejects only null, empty, "." and "..". A partition value such as _x or .tmp is therefore written to a directory whose name starts with "_" or ".".
- Create a format table with value-only partition layout, partitioned by a string column pt.
- Write a row with pt = "_x".
- Scan the table.
What doesn't meet your expectations?
The read path treats any value-only directory whose name starts with "_" or "." as a hidden staging or metadata directory (PartitionPathUtils.isHiddenFile / isHiddenName) and skips it, exempting only the table's configured default partition name. The write and read sides disagree, so the _x partition and all of its data silently disappear from every scan, with no error at write or read time.
Expected: a value that cannot be represented as a visible value-only directory is rejected at write time, so the failure is loud instead of silent. The configured default partition name stays allowed because scans un-hide exactly that name.
Anything else?
No response
Are you willing to submit a PR?
Search before asking
Paimon version
master
Compute Engine
Spark / Flink (format table)
Minimal reproduce step
In a value-only partition layout (
formatTablePartitionOnlyValueInPath=true) the write validator inPartitionPathUtils.validatePartitionValueForPathrejects only null, empty, "." and "..". A partition value such as_xor.tmpis therefore written to a directory whose name starts with "_" or ".".What doesn't meet your expectations?
The read path treats any value-only directory whose name starts with "_" or "." as a hidden staging or metadata directory (
PartitionPathUtils.isHiddenFile/isHiddenName) and skips it, exempting only the table's configured default partition name. The write and read sides disagree, so the_xpartition and all of its data silently disappear from every scan, with no error at write or read time.Expected: a value that cannot be represented as a visible value-only directory is rejected at write time, so the failure is loud instead of silent. The configured default partition name stays allowed because scans un-hide exactly that name.
Anything else?
No response
Are you willing to submit a PR?