yongster opened a new pull request, #10991:
URL: https://github.com/apache/arrow-rs/pull/10991

   `nullif` creates nulls by adding a top-level validity bitmap. This works for
   most arrays, but RunEndEncoded and Union arrays derive logical nullability 
from
   their child arrays instead.
   
   As a result, `nullif` previously returned non-null values at positions where
   the condition was true for these array types.
   
   
   Closes #10990 
   
   
   
   - Delegate `nullif` for RunEndEncoded and Union arrays to `take`, using null
     indices for the positions selected by the condition.
   - Return an error when a RunEndEncoded values field is non-nullable and 
cannot
     represent the requested nulls.
   - Return an error when a Union has no nullable child that can represent null
     indices.
   - Prefer a nullable Union child when `take` needs to represent a null index.
   - Add coverage for nullable and non-nullable REE, plus dense and sparse Union
     cases.


-- 
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]

Reply via email to