JingsongLi commented on code in PR #7737:
URL: https://github.com/apache/paimon/pull/7737#discussion_r3177400945
##########
paimon-flink/paimon-flink-common/src/main/java/org/apache/paimon/flink/sink/PostponeFixedBucketChannelComputer.java:
##########
@@ -55,7 +55,12 @@ public void setup(int numChannels) {
@Override
public int channel(InternalRow record) {
BinaryRow partition = partitionKeyExtractor.partition(record);
- int bucket = knownNumBuckets.computeIfAbsent(partition, p ->
numChannels);
+ int numBuckets = knownNumBuckets.computeIfAbsent(partition, p ->
numChannels);
+ int hash = partitionKeyExtractor.trimmedPrimaryKey(record).hashCode();
Review Comment:
Just use `FixedBucketRowKeyExtractor`?
--
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]