-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto infer multipartition <-> single dimension mapping (#12400)
The existing `SingleDimensionDependencyMapping` class handles the upstream single-dimension -> downstream multipartitioned dependency relationship. This PR refactors this class to also handle the opposite relationship (upstream multipartition -> downstream single dimension), renaming to `MultiToSingleDimensionMapping`. This class previously required a `partition_dimension_name` argument, which this PR makes optional. This argument is required when the multipartitions definition has dimension partition defs that are equivalent, in which case the class throws an error. The final change is that we can now auto-infer when we should use this partition mapping--when a single dimension partitions def matches a dimension of a multipartitions def, and the two assets have a dependency relationship. This PR adds tests to ensure that we choose this partition mapping in those cases, otherwise relying on the `IdentityPartitionMapping` or `AllPartitionMapping`.
- Loading branch information
1 parent
1884193
commit 2e2eca1
Showing
15 changed files
with
581 additions
and
143 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.