hudi-agent commented on code in PR #20292:
URL: https://github.com/apache/hudi/pull/20292#discussion_r4256929844
##########
hudi-flink-datasource/hudi-flink/src/main/java/org/apache/hudi/source/prune/PrimaryKeyPruners.java:
##########
@@ -55,6 +58,18 @@ public static Function<Integer, Integer>
getBucketIdFunc(List<ResolvedExpression
// the hash keys must be evaluated in the record key field sequence.
.sorted(java.util.Map.Entry.comparingByKey())
.map(Pair::getValue)
+ .map(value -> {
Review Comment:
🤖 nit: could you pull this lambda into a small named helper like
`decodeCompoundKeyPlaceholder(value)`? It would keep the stream pipeline short
and make the `pkFields.size() > 1` check easier to see.
<sub><i>⚠️ AI-generated; verify before applying. React 👍/👎 to flag
quality.</i></sub>
--
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]