rokadepiyush49-rgb commented on issue #11284:
URL: https://github.com/apache/arrow-rs/issues/11284#issuecomment-7084946332

   Before writing any code, I'd like to do the audit Jefffrey asked for on 
#11288. Here's the core bug as I understand it:
   
   ```mermaid
   flowchart LR
     A[new_null for a Union] --> B[always picks the first child]
     B --> C{is that child nullable?}
     C -- no --> D[null ends up in a non-nullable child]
     A -.-> E[fix: pick the first nullable child]
   ```
   
   I'll post a table of every place a null goes into a union, what it does 
today, and what the spec and C++ do. Then I'll fix `new_null` alone in one 
small PR. If no child is nullable, would you prefer an error or a fallback to 
the first child?
   


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