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

agrove pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/datafusion-comet.git


The following commit(s) were added to refs/heads/main by this push:
     new c4a06f07 fix: optimize isNullAt (#732)
c4a06f07 is described below

commit c4a06f07c330b2853bc8766605b7ac6cacc69c08
Author: KAZUYUKI TANIMURA <[email protected]>
AuthorDate: Tue Jul 30 11:25:56 2024 -0700

    fix: optimize isNullAt (#732)
---
 common/src/main/java/org/apache/comet/vector/CometPlainVector.java | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/common/src/main/java/org/apache/comet/vector/CometPlainVector.java 
b/common/src/main/java/org/apache/comet/vector/CometPlainVector.java
index e2a625f0..c368c3b3 100644
--- a/common/src/main/java/org/apache/comet/vector/CometPlainVector.java
+++ b/common/src/main/java/org/apache/comet/vector/CometPlainVector.java
@@ -153,11 +153,7 @@ public class CometPlainVector extends CometDecodedVector {
 
   @Override
   public boolean isNullAt(int rowId) {
-    if (this.valueBufferAddress == -1) {
-      return true;
-    } else {
-      return super.isNullAt(rowId);
-    }
+    return this.valueBufferAddress == -1 || super.isNullAt(rowId);
   }
 
   @Override


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

Reply via email to