Skip to content

Conversation

@findepi
Copy link
Member

@findepi findepi commented Oct 21, 2024

check_not_null_constraints (aka check_not_null_contraits) checked
for null using Array::null_count which does not return real null
count.

@github-actions github-actions bot added the physical-expr Changes to the physical-expr crates label Oct 21, 2024
Comment on lines +889 to +894
if batch
.column(index)
.logical_nulls()
.map(|nulls| nulls.null_count())
.unwrap_or_default()
> 0
Copy link
Member Author

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

@findepi findepi force-pushed the findepi/check-constraint branch from 1d34535 to e0440a2 Compare October 21, 2024 12:37
`check_not_null_constraints` (aka `check_not_null_contraits`) checked
for null using `Array::null_count` which does not return real null
count.
@findepi findepi force-pushed the findepi/check-constraint branch from e0440a2 to 726c295 Compare October 21, 2024 13:32
Copy link
Contributor

@alamb alamb left a 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

Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @findepi

@alamb alamb merged commit 211e76e into apache:main Oct 23, 2024
24 checks passed
@alamb
Copy link
Contributor

alamb commented Oct 23, 2024

Thanks again @findepi

@findepi findepi deleted the findepi/check-constraint branch October 23, 2024 19:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

physical-expr Changes to the physical-expr crates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants