Github user cloud-fan commented on a diff in the pull request:

    https://github.com/apache/spark/pull/19222#discussion_r176986304
  
    --- Diff: 
common/unsafe/src/main/java/org/apache/spark/unsafe/types/UTF8String.java ---
    @@ -119,15 +116,20 @@ public static UTF8String blankString(int length) {
         return fromBytes(spaces);
       }
     
    -  protected UTF8String(Object base, long offset, int numBytes) {
    +  protected UTF8String(byte[] bytes, long offset, int numBytes) {
    --- End diff --
    
    why do we need this? I think the caller side should call 
`MemoryBlock.allocateFromObject`


---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to