LuciferYang opened a new issue, #13228:
URL: https://github.com/apache/gravitino/issues/13228

   **Version**
   main branch
   
   **Describe what's wrong**
   `LiteralImpl.equals` falls back to `value.toString()`. For `byte[]` values 
both `Objects.equals` (reference equality) and the `toString` fallback 
(identity hash string) fail, so binary literals with equal content are never 
equal and binary identity-partition dedup never matches. `hashCode` uses 
`value.toString()` as well.
   
   **Error message and/or stacktrace**
   N/A: incorrect `equals`/`hashCode` result, no exception.
   
   **How to reproduce**
   Build two binary literals from `byte[]` arrays with identical content and 
compare them with `equals`; the result is `false`.
   
   **Additional context**
   Non-array literal semantics are unchanged. Found during a code audit of the 
`api` module.
   


-- 
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]

Reply via email to