You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by li...@apache.org on 2025/03/06 01:09:15 UTC

(arrow-java) branch main updated: GH-653: Nullify fieldReader when invalidating parent object (#654)

This is an automated email from the ASF dual-hosted git repository.

lidavidm pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-java.git


The following commit(s) were added to refs/heads/main by this push:
     new d304da5f GH-653: Nullify fieldReader when invalidating parent object (#654)
d304da5f is described below

commit d304da5f872615346557e947ca5b04e9e23e8b87
Author: lriggs <lo...@dremio.com>
AuthorDate: Wed Mar 5 17:09:10 2025 -0800

    GH-653: Nullify fieldReader when invalidating parent object (#654)
    
    ## What's Changed
    
    Set the fieldReader object to null when invalidating the parent reader.
    This will prevent odd behavior if the object is reused.
    
    
    Closes #653
---
 vector/src/main/java/org/apache/arrow/vector/complex/ListVector.java | 1 +
 1 file changed, 1 insertion(+)

diff --git a/vector/src/main/java/org/apache/arrow/vector/complex/ListVector.java b/vector/src/main/java/org/apache/arrow/vector/complex/ListVector.java
index 76682c28..3daeb6d7 100644
--- a/vector/src/main/java/org/apache/arrow/vector/complex/ListVector.java
+++ b/vector/src/main/java/org/apache/arrow/vector/complex/ListVector.java
@@ -769,6 +769,7 @@ public class ListVector extends BaseRepeatedValueVector
   }
 
   protected void invalidateReader() {
+    fieldReader = null;
     reader = null;
   }