Skip to content

PruningPredicate should take owned Expr#1960

Merged
alamb merged 1 commit intoapache:masterfrom
coralogix:pruning-fix
Mar 9, 2022
Merged

PruningPredicate should take owned Expr#1960
alamb merged 1 commit intoapache:masterfrom
coralogix:pruning-fix

Conversation

@thinkharderdev
Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Closes #.

Rationale for this change

Follow-up fix from #1941 to change the constructor for PruningPredicate to take an owned Expr.

Also fixes an issue where #1953 introduced a compilation error for aarch64.

What changes are included in this PR?

Are there any user-facing changes?

Copy link
Copy Markdown
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 @thinkharderdev

let pruning_predicate = predicate.and_then(|predicate_expr| {
match PruningPredicate::try_new(
&predicate_expr,
predicate_expr,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

sweet! We did save a copy here!

@alamb alamb merged commit b161216 into apache:master Mar 9, 2022
@alamb
Copy link
Copy Markdown
Contributor

alamb commented Mar 9, 2022

Thanks again @thinkharderdev

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