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

Split equivalence code into smaller modules. #8649

Merged
merged 32 commits into from
Dec 26, 2023
Merged

Conversation

tushushu
Copy link
Contributor

@tushushu tushushu commented Dec 25, 2023

Which issue does this PR close?

Closes #8633 .

Rationale for this change

What changes are included in this PR?

The datafusion/physical-expr/src/equivalence.rs has been split into several files along with the tests.

Are these changes tested?

The previous tests are still kept, and no more tests added.

Are there any user-facing changes?

@github-actions github-actions bot added the physical-expr Physical Expressions label Dec 25, 2023
@github-actions github-actions bot added the core Core DataFusion crate label Dec 26, 2023
@tushushu
Copy link
Contributor Author

@alamb This PR is ready for a review, and would you guys take a look?

@tushushu tushushu changed the title Wip issue 8633 Split equivalence code into smaller modules. Dec 26, 2023
@github-actions github-actions bot removed the core Core DataFusion crate label Dec 26, 2023
@ozankabak
Copy link
Contributor

Thanks @tushushu, we will check it out and circle back with suggestions (if any)

Copy link
Contributor

@mustafasrepo mustafasrepo left a comment

Choose a reason for hiding this comment

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

Thanks @tushushu for this PR. This is very nice cleanup. LGTM!.

@alamb
Copy link
Contributor

alamb commented Dec 26, 2023

This is a pretty epic first PR @tushushu ❤️

@alamb alamb merged commit 4e4d050 into apache:main Dec 26, 2023
22 checks passed
appletreeisyellow pushed a commit to appletreeisyellow/datafusion that referenced this pull request Jan 4, 2024
* refactor

* refactor

* fix imports

* fix ordering

* private func as pub

* private as pub

* fix import

* fix mod func

* fix add_equal_conditions_test

* fix project_equivalence_properties_test

* fix test_ordering_satisfy

* fix test_ordering_satisfy_with_equivalence2

* fix other ordering tests

* fix join_equivalence_properties

* fix test_expr_consists_of_constants

* fix test_bridge_groups

* fix test_remove_redundant_entries_eq_group

* fix proj tests

* test_remove_redundant_entries_oeq_class

* test_schema_normalize_expr_with_equivalence

* test_normalize_ordering_equivalence_classes

* test_get_indices_of_matching_sort_exprs_with_order_eq

* test_contains_any

* test_update_ordering

* test_find_longest_permutation_random

* test_find_longest_permutation

* test_get_meet_ordering

* test_get_finer

* test_normalize_sort_reqs

* test_schema_normalize_sort_requirement_with_equivalence

* expose func and struct

* remove unused export
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
physical-expr Physical Expressions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Split equivalence code into smaller modules
4 participants