Skip to content

Conversation

@adriangb
Copy link
Contributor

@adriangb adriangb commented Dec 2, 2025

This adds tests that prove some bugs that are fixed in #18832 so we can level the playing field on benchmarks.

@github-actions github-actions bot added the physical-expr Changes to the physical-expr crates label Dec 2, 2025
@adriangb
Copy link
Contributor Author

adriangb commented Dec 2, 2025

I expect tests to fail. We can fix them once we confirm.

Comment on lines +230 to +237
downcast_dictionary_array! {
v => {
let values_contains = self.contains(v.values().as_ref(), negated)?;
let result = take(&values_contains, v.keys(), None)?;
return Ok(downcast_array(result.as_ref()))
}
_ => {}
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The lack of this was a bug

Comment on lines -233 to -237
let result = match (v.null_count() > 0, negated) {
(true, false) => {
// has nulls, not negated"
BooleanArray::from_iter(
v.iter().map(|value| Some(self.values.contains(&value?))),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We were not handling nulls properly

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.

1 participant