Skip to content
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 take with nullable indices on arrays with patches #2336

Merged
merged 7 commits into from
Feb 12, 2025

Conversation

robert3005
Copy link
Member

If the array is nonnullable after a take it might end up being nullable,
however, same take might not affect the values of patches thus resulting in
nonullable patches. Need to ensure that after take the patches values have same
nullability as the target array

@robert3005 robert3005 enabled auto-merge (squash) February 12, 2025 16:53
Comment on lines +25 to +28
let right_parts = fill_null(
take(array.right_parts(), indices)?,
Scalar::new(array.right_parts().dtype().clone(), ScalarValue::from(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.

Should add a thing to alp-rd to not require right parts to be nonnullable and just fill in the value with 0 (left parts will be null anyway)

@robert3005 robert3005 merged commit ea4a432 into develop Feb 12, 2025
22 checks passed
@robert3005 robert3005 deleted the rk/fixcompress branch February 12, 2025 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants