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

    https://github.com/apache/spark/pull/21912#discussion_r213539696
  
    --- Diff: 
sql/catalyst/src/main/java/org/apache/spark/sql/catalyst/expressions/UnsafeArrayData.java
 ---
    @@ -473,13 +473,13 @@ public static UnsafeArrayData fromPrimitiveArray(
         return result;
       }
     
    -  public static UnsafeArrayData forPrimitiveArray(int offset, int length, 
int elementSize) {
    -    return fromPrimitiveArray(null, offset, length, elementSize);
    +  public static UnsafeArrayData forPrimitiveArray(int length, int 
elementSize) {
    +    return fromPrimitiveArray(null, 0, length, elementSize);
    --- End diff --
    
    is it safe? I vaguely remember the address of offheap memory block is 
usually not 0.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to