Skip to content

[Bug] Hive omits partitions whose Hadoop input paths contain escaped commas #11361

Open

Description

@zhangyue19921010

Search before asking

  • I searched the issues and found no report of the same escaped input-list problem.

Paimon version

2.2-SNAPSHOT, commit 8d70481.

Compute Engine

Hive 2.3.10 input format, Hadoop 2.8.5, JDK 11.

Minimal reproduce step

Create an ordinary append table partitioned by pt, with no primary key and bucket=-1. Write rows under pt='a,b' and pt='plain'.

Configure both partition input paths with Hadoop's FileInputFormat.setInputPaths, as HiveInputFormat does before requesting splits from the table's input format. Hadoop escapes the comma in pt=a,b in the stored input directory list; its getInputPaths returns the original two paths.

Request splits through HiveSplitGenerator.generateSplits. The executable regression uses the actual Hadoop producer and a table written through Paimon's batch writer, with Avro files.

What doesn't meet your expectations?

Only the plain partition produces a split. The a,b partition is silently omitted because locationsToPlan splits the escaped input list with String.split(",") and never decodes the escaped path. Both committed partitions should be planned, with their original paths and rows.

Anything else?

This is distinct from #9077/#9080, which decode percent-escaped partition values after a path has been selected. This problem occurs earlier, while separating Hadoop's escaped input paths.

Are you willing to submit a PR?

  • I'm willing to submit a PR!

Activity

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