-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix check_not_null_constraints null detection #13033
Conversation
if batch | ||
.column(index) | ||
.logical_nulls() | ||
.map(|nulls| nulls.null_count()) | ||
.unwrap_or_default() | ||
> 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could be simplified back if we had something like apache/arrow-rs#6608
1d34535
to
e0440a2
Compare
`check_not_null_constraints` (aka `check_not_null_contraits`) checked for null using `Array::null_count` which does not return real null count.
e0440a2
to
726c295
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @findepi -- the code looks good to me. My only concern is the new dependency
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @findepi
Thanks again @findepi |
check_not_null_constraints
(akacheck_not_null_contraits
) checkedfor null using
Array::null_count
which does not return real nullcount.