viirya commented on a change in pull request #35483:
URL: https://github.com/apache/spark/pull/35483#discussion_r804446180



##########
File path: 
sql/core/src/main/java/org/apache/spark/sql/execution/vectorized/OffHeapColumnVector.java
##########
@@ -64,13 +64,23 @@
   private long lengthData;
   private long offsetData;
 
+  // Only set if type is Struct.
+  //
+  // A slot 'structOffsetData[i]' is only defined iff 'nulls[i]' is NOT set. 
If defined,

Review comment:
       yea, I will think "defined" in the context of `Option`-like class that 
you can definitely know the value is defined or not. It doesn't apply for here 
as it is just uninitialized so we cannot tell if a value `structOffsetData[i]` 
is "defined" or not by just looking at its value. 




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



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

Reply via email to