thswlsqls opened a new pull request, #9080:
URL: https://github.com/apache/paimon/pull/9080

   
   ### Purpose
   
   fix #9077
   
   - `HiveSplitGenerator.createPartitionPredicate()` parsed the Hive input dir 
with `split("/")` and `split("=")` and never unescaped the values.
   - Partition directories are escaped when registered, so a value such as 
`2026-01-01 00:00` reaches the predicate as `2026-01-01 00%3A00`, matches 
nothing, and the Hive query silently returns zero rows.
   - Use `PartitionPathUtils.extractPartitionSpecFromPath()`, which unescapes; 
this was the last production site parsing a partition path by hand.
   - Values needing no escaping are unaffected; the tag branch and 
`Optional.empty()` fallback are untouched.
   
   ### Tests
   
   - Added `HiveSplitGeneratorTest#testGenerateSplitsForEscapedPartitionValue` 
(escaped value now matches) and `#testGenerateSplitsForPlainPartitionValue` 
(regression).
   - Reverting the fix fails only the escaped-value test; `generateSplits` had 
no prior coverage, so this adds cases rather than changing existing ones.
   - `mvn -pl paimon-hive/paimon-hive-connector-common clean install` — 102 
unit tests and 83 `*ITCase` tests passed.
   


-- 
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]

Reply via email to