JingsongLi commented on code in PR #3814:
URL: https://github.com/apache/paimon/pull/3814#discussion_r1697006477
##########
paimon-core/src/main/java/org/apache/paimon/operation/KeyValueFileStoreWrite.java:
##########
@@ -356,13 +361,26 @@ private <T> LookupLevels<T> createLookupLevels(
cacheManager,
new
RowCompactedSerializer(keyType).createSliceComparator());
Options options = this.options.toConfiguration();
+ InternalRow.FieldGetter[] getters = partitionType.fieldGetters();
+ StringBuilder builder = new StringBuilder();
+ for (InternalRow.FieldGetter getter : getters) {
+ Object part = getter.getFieldOrNull(partition);
+ if (part != null) {
+ builder.append(part);
+ } else {
+ builder.append("null");
+ }
+ builder.append("-");
+ }
+ String prefix = String.format("%s-%s", builder, bucket);
Review Comment:
I am concerned that it may be too long. Can we use its hash directly as a
prefix?
--
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]