Visitar URL original
[Bug] Value-only format table silently drops partitions whose value starts with '_' or '.' · Issue #10239 · apache/paimon · GitHub
Skip to content

[Bug] Value-only format table silently drops partitions whose value starts with '_' or '.' #10239

Description

@LuciferYang

Search before asking

  • I searched in the issues and found nothing similar.

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 ".".

  1. Create a format table with value-only partition layout, partitioned by a string column pt.
  2. Write a row with pt = "_x".
  3. 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?

  • I'm willing to submit a PR!

Activity

  1. suntectec commented on Sep 28, 2026

    @suntectec

    Hi @LuciferYang, thanks for the excellent write-up — the root cause analysis around the write/read asymmetry in PartitionPathUtils.validatePartitionValueForPath (value-only layout silently dropping _/. prefixed partitions) is really clear.I noticed the issue is marked with "I'm willing to submit a PR", but there's no associated PR or assignment yet. May I ask whether you've had a chance to start working on the fix? If you're already on it, no worries at all — please disregard this. But if you haven't started yet, I'd be glad to pick it up and submit a PR. Just let me know and I can go ahead.Either way, happy to help get this resolved. Thanks!

  2. LuciferYang commented on Oct 3, 2026

    @LuciferYang
    ContributorAuthor

    @suntectec feel free to submit pr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions