Skip to content

Conversation

@andygrove
Copy link
Member

Which issue does this PR close?

N/A

Builds on #2682

Rationale for this change

This is the final part of the refactoring to create the optimizer crate and moves the last rule over

What changes are included in this PR?

  • Moves code. No functional changes.

Are there any user-facing changes?

API change because the code moved.

@andygrove andygrove added the api change Changes the API exposed to users of the crate label Jun 2, 2022
@andygrove andygrove self-assigned this Jun 2, 2022
@andygrove andygrove changed the title MINOR: Move simplify_expression rule to datafusion-optimizer crate WIP: MINOR: Move simplify_expression rule to datafusion-optimizer crate Jun 2, 2022
@andygrove andygrove marked this pull request as draft June 2, 2022 22:23
@github-actions github-actions bot added core Core DataFusion crate datafusion physical-expr Changes to the physical-expr crates labels Jun 2, 2022
@andygrove andygrove added optimizer Optimizer rules and removed datafusion labels Jun 3, 2022
@andygrove andygrove changed the title WIP: MINOR: Move simplify_expression rule to datafusion-optimizer crate MINOR: Move simplify_expression rule to datafusion-optimizer crate Jun 4, 2022
@andygrove andygrove marked this pull request as ready for review June 4, 2022 21:03
@codecov-commenter
Copy link

Codecov Report

Merging #2686 (29a3e2f) into master (c65feeb) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #2686      +/-   ##
==========================================
- Coverage   84.66%   84.66%   -0.01%     
==========================================
  Files         270      270              
  Lines       46919    46919              
==========================================
- Hits        39726    39724       -2     
- Misses       7193     7195       +2     
Impacted Files Coverage Δ
datafusion/optimizer/src/expr_simplifier.rs 100.00% <ø> (ø)
datafusion/optimizer/src/simplify_expressions.rs 82.00% <100.00%> (ø)
datafusion/core/src/physical_plan/metrics/value.rs 86.93% <0.00%> (-0.51%) ⬇️
datafusion/common/src/scalar.rs 74.82% <0.00%> (-0.12%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c65feeb...29a3e2f. Read the comment docs.

///
/// Both arguments must be convertable into Strings (Into<String>)
#[macro_export]
macro_rules! assert_contains {
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 is copy-and-pasted from the core crate

@andygrove andygrove merged commit 9306534 into apache:master Jun 5, 2022
@andygrove andygrove deleted the move-simplify-expression-rule branch June 5, 2022 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api change Changes the API exposed to users of the crate core Core DataFusion crate optimizer Optimizer rules physical-expr Changes to the physical-expr crates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants