Github user dongjoon-hyun commented on a diff in the pull request:

    https://github.com/apache/spark/pull/21206#discussion_r185292962
  
    --- Diff: 
sql/core/src/test/scala/org/apache/spark/sql/execution/vectorized/ColumnarBatchSuite.scala
 ---
    @@ -1333,4 +1334,19 @@ class ColumnarBatchSuite extends SparkFunSuite {
     
           column.close()
       }
    +
    +  testVector("WritableColumnVector.reserve(): requested capacity is too 
large", 1024, ByteType) {
    +    column =>
    +      val capacity = Integer.MAX_VALUE - 1
    --- End diff --
    
    @ala . Could you make it more clearly like the following because this test 
case aims to cover [the corner case of existing 
code](https://github.com/apache/spark/blob/master/sql/core/src/main/java/org/apache/spark/sql/execution/vectorized/WritableColumnVector.java#L85-L86)
 between `MAX_CAPACITY + 1` and `Integer.MAX_VALUE`?
    
    ```scala
    - val capacity = Integer.MAX_VALUE - 1
    + val capacity = column.MAX_CAPACITY + 1
    ```


---

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

Reply via email to