zhangyue19921010 opened a new issue, #11361:
URL: https://github.com/apache/paimon/issues/11361
### Search before asking
- [x] I searched the issues and found no report of the same escaped
input-list problem.
### Paimon version
2.2-SNAPSHOT, commit 8d704811cb40a7193f0daf73a5d278f10e65e4b6.
### 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?
- [x] I'm willing to submit a PR!
--
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]