Github user adrian-wang commented on a diff in the pull request:

    https://github.com/apache/spark/pull/21227#discussion_r185801594
  
    --- Diff: 
sql/core/src/main/java/org/apache/spark/sql/execution/vectorized/WritableColumnVector.java
 ---
    @@ -81,7 +81,9 @@ public void close() {
       }
     
       public void reserve(int requiredCapacity) {
    -    if (requiredCapacity > capacity) {
    +    if (requiredCapacity < 0) {
    +      throwUnsupportedException(requiredCapacity, null);
    --- End diff --
    
    thanks for the explanation!


---

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

Reply via email to