Skip to content

Minor: some cosmetics in filter.rs, fix clippy due to logical conflict #11368

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 2 commits into from
Jul 9, 2024

Conversation

comphead
Copy link
Contributor

@comphead comphead commented Jul 9, 2024

Which issue does this PR close?

Closes #.

Rationale for this change

What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

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 @comphead

@@ -91,14 +88,14 @@ impl FilterExec {

Ok(Self {
predicate,
input: input.clone(),
input: Arc::clone(&input),
Copy link
Contributor

Choose a reason for hiding this comment

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

This was causing clippy failures on main https://github.com/apache/datafusion/actions/runs/9857745125/job/27217695529

I think due to a logical conflict

Err(_) => {
let Ok(null_array) = as_null_array(&array) else {
return internal_err!("Cannot create filter_array from non-boolean predicates, unable to continute");
return internal_err!(
Copy link
Contributor

Choose a reason for hiding this comment

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

❤️

@alamb alamb changed the title Minor: some cosmetics in filter.rs Minor: some cosmetics in filter.rs, fix clippy due to logical conflict Jul 9, 2024
@alamb
Copy link
Contributor

alamb commented Jul 9, 2024

Merging this one in to get the fix for clippy

@alamb alamb merged commit 7f25d9d into apache:main Jul 9, 2024
24 checks passed
findepi pushed a commit to findepi/datafusion that referenced this pull request Jul 16, 2024
…ict (apache#11368)

* Minor: some cosmetics in `filter.rs`

* Minor: some cosmetics in `filter.rs`
xinlifoobar pushed a commit to xinlifoobar/datafusion that referenced this pull request Jul 18, 2024
…ict (apache#11368)

* Minor: some cosmetics in `filter.rs`

* Minor: some cosmetics in `filter.rs`
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants