You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "luoyajun (Jira)" <ji...@apache.org> on 2022/06/28 10:32:00 UTC

[jira] [Created] (HUDI-4336) Records will be overwritten incorrectly with binary primary key type

|  ![](cid:jira-generated-image-avatar-f6b3f43b-1bd6-4ff4-818b-df56eb4c481b) |
[luoyajun](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=LUOYAJUN)
**created** an issue  
---|---  
|  
---  
|  [Apache Hudi](https://issues.apache.org/jira/browse/HUDI) /
[![Bug](cid:jira-generated-image-
avatar-7237ce82-c112-4dc4-b057-7afaac62a695)](https://issues.apache.org/jira/browse/HUDI-4336)
[HUDI-4336](https://issues.apache.org/jira/browse/HUDI-4336)  
---  
[Records will be overwritten incorrectly with binary primary key
type](https://issues.apache.org/jira/browse/HUDI-4336)  
| Issue Type: |  ![Bug](cid:jira-generated-image-
avatar-7237ce82-c112-4dc4-b057-7afaac62a695) Bug  
---|---  
Assignee: |
[luoyajun](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=LUOYAJUN)  
Created: |  28/Jun/22 10:31  
Fix Versions: |  0.12.0  
Labels: |  patch  
Priority: |  ![Minor](cid:jira-generated-image-static-
minor-b18c2152-186d-44bb-9e6b-1f877bab6c46) Minor  
Reporter: |
[luoyajun](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=LUOYAJUN)  
|

Records can be overwritten when the recordkey or primarykey is binary type,
such as a mysql table with primary key BINARY(16). There may be only one
record in hudi finally after writing. This is related to the toString of
ByteBuffer when generating the record key. ByteBuffer has overwritten the
toString to return a summary string.  
  
---  
|  |  [ ![Add Comment](cid:jira-generated-image-static-comment-
icon-7c461041-e2a9-49e7-ad97-c12c3f9a4544)
](https://issues.apache.org/jira/browse/HUDI-4336#add-comment "Add Comment") |
[Add Comment](https://issues.apache.org/jira/browse/HUDI-4336#add-comment "Add
Comment")  
---|---  
  
|  This message was sent by Atlassian Jira (v8.20.10#820010-sha1:ace47f9) |  |
![Atlassian logo](https://issues.apache.org/jira/images/mail/atlassian-email-
logo.png)  
---