sgilmore10 opened a new pull request, #47264:
URL: https://github.com/apache/arrow/pull/47264

   ### Rationale for this change
   
   This is a followup to #38422. Now that `NumNulls` is a property on 
`arrow.array.Array`, we should add `NumNulls` as a property on 
`arrow.array.ChunkedArray`.
   
   ### What changes are included in this PR?
   
   Added `NumNulls` as a property to `arrow.array.ChunkedArray`.
   
   **Example**:
   ```matlab
   >> a1 = arrow.array(1:10);
   >> a2 = arrow.array([11 12 NaN 14 NaN]);
   >> a3 = arrow.array([16 17 NaN 18 19]);
   >> a4 = arrow.array(20:30);
   
   >> C1 = arrow.array.ChunkedArray.fromArrays(a1, a2, a3)
   
   C1 = 
   
     ChunkedArray with properties:
   
              Type: [1×1 arrow.type.Float64Type]
         NumChunks: 4
       NumElements: 31
          NumNulls: 3
   
   >> C1.NumNulls
   
   ans =
   
     int64
   
      3
   ```
   
   ### Are these changes tested?
   
   1. Added a `NumNullsNoSetter` test case to `tChunkedArray.m`.
   2. Updated `tChunkedArray/verifyChunkedArray` helper method to verify the 
`NumNulls` property value is set to the expected value.
   
   ### Are there any user-facing changes?
   
   Yes. `arrow.array.ChunkedArray` has a new public property called `NumNulls`.
   


-- 
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: github-unsubscr...@arrow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to