You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "alexwilcoxson-rel (via GitHub)" <gi...@apache.org> on 2024/05/03 15:07:34 UTC

[I] Nested nullable fields do not get treated as nullable in data_gen [arrow-rs]

alexwilcoxson-rel opened a new issue, #5712:
URL: https://github.com/apache/arrow-rs/issues/5712

   **Describe the bug**
   When a schema has a nullable field nested under a not nullable field, the random array/batch functions in util::data_gen do not generate null values for the nested field and will fail in other scenarios
   
   **To Reproduce**
   See test cases on PR <TODO>
   
   **Expected behavior**
   When I have a nested nullable field and provide a null_density > 0.0 I expect some null values to be present in the generated array and it not to error out.
   
   **Additional context**
   A nullable primitive nested under a not-null list would not fail but would rather pass null_density = 0 into create_random_array for the primitive resulting in no non-nulls
   
   A nullable struct with nullable fields  nested under a not-null list would fail in the list creation because the struct would infer nullability based on null_count of the its' arrays (which never had nulls because null_density was zeroed out) and thus change the datatype for the struct and fail in list creation.
   
   Also when generating struct arrays if the struct field is nullable, null_density is not used as the struct array generation is using TryFrom<Vec(str, Array)> which does not allow you to specify any of the struct array entries as null.


-- 
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-unsubscribe@arrow.apache.org.apache.org

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


Re: [I] Nested nullable fields do not get treated as nullable in data_gen [arrow-rs]

Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb closed issue #5712: Nested nullable fields do not get treated as nullable in data_gen
URL: https://github.com/apache/arrow-rs/issues/5712


-- 
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-unsubscribe@arrow.apache.org

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


Re: [I] Nested nullable fields do not get treated as nullable in data_gen [arrow-rs]

Posted by "tustvold (via GitHub)" <gi...@apache.org>.
tustvold commented on issue #5712:
URL: https://github.com/apache/arrow-rs/issues/5712#issuecomment-2144829262

   `label_issue.py` automatically added labels {'arrow'} from #5713


-- 
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-unsubscribe@arrow.apache.org

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