ankitsultana commented on code in PR #12538: URL: https://github.com/apache/pinot/pull/12538#discussion_r1509906862
########## pinot-segment-local/src/main/java/org/apache/pinot/segment/local/utils/HashUtils.java: ########## @@ -44,6 +77,8 @@ public static Object hashPrimaryKey(PrimaryKey primaryKey, HashFunction hashFunc return new ByteArray(HashUtils.hashMD5(primaryKey.asBytes())); case MURMUR3: return new ByteArray(HashUtils.hashMurmur3(primaryKey.asBytes())); + case UUID_V4: + return new ByteArray(HashUtils.hashUUIDv4(primaryKey.asBytes())); Review Comment: self-review: for cases with multiple columns as primary-keys,`PrimaryKey#asBytes` prepends each string with 4-bytes to denote the length of the following string. So this won't work directly. Maybe consider using `PrimaryKey#getValues`? -- 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: commits-unsubscr...@pinot.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org