JingsongLi commented on code in PR #11349:
URL: https://github.com/apache/paimon/pull/11349#discussion_r4662611872
##########
paimon-core/src/main/java/org/apache/paimon/utils/PartitionPredicateHelper.java:
##########
@@ -113,7 +113,7 @@ public static LinkedHashMap<String, String>
parsePartitionSpec(
if (partitionStr.endsWith("}")) {
partitionStr = partitionStr.substring(0, partitionStr.length() -
1);
}
- String[] partFields = partitionStr.split(", ");
+ String[] partFields = partitionStr.split(", ", partitionKeys.size());
Review Comment:
**[P2] Keep ambiguous rendered partitions out of exact spec pushdown.** I
wrote two real partitions with STRING keys `('a, b', 'c')` and `('a', 'b, c')`,
where the semantically distinct tuples both render as `{a, b, c}`. The
unfiltered `$files` scan shows both file rows, but equality on that string
returns only the second tuple. I also tested `(pt1 STRING, pt2 INT) = ('a, b',
42)`. Filtering on the displayed value `{a, b, 42}` now throws
`NumberFormatException` for `b, 42`. Please compare the rendered value against
candidate partition rows for ambiguous inputs, or keep the predicate for exact
residual evaluation when a unique typed spec cannot be inferred. The single-key
and trailing-empty fixes can still use exact pushdown.
--
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]