Skip to content

Commit

Permalink
[BugFix] Fix incorrect partition name when hash code is negative (bac…
Browse files Browse the repository at this point in the history
…kport #51726) (#51739)

Co-authored-by: meegoo <[email protected]>
  • Loading branch information
mergify[bot] and meegoo authored Oct 11, 2024
1 parent 37d1a1d commit 6f75c2d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1072,7 +1072,7 @@ public static AddPartitionClause getAddPartitionClauseFromPartitionValues(OlapTa
String partitionName = partitionPrefix + Joiner.on("_").join(formattedPartitionValue);
if (partitionName.length() > FeConstants.MAX_LIST_PARTITION_NAME_LENGTH) {
partitionName = partitionName.substring(0, FeConstants.MAX_LIST_PARTITION_NAME_LENGTH)
+ "_" + partitionName.hashCode();
+ "_" + Integer.toHexString(partitionName.hashCode());
}
if (!partitionColNames.contains(partitionName)) {
MultiItemListPartitionDesc multiItemListPartitionDesc = new MultiItemListPartitionDesc(true,
Expand Down

0 comments on commit 6f75c2d

Please sign in to comment.