-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[4/n subset refactor] Add whitelist_for_serdes to DefaultPartitionsSu…
…bset (#17703) This PR makes the `DefaultPartitionsSubset` serializable by making it a `NamedTuple` and removing `partitions_def` from it (as these partitions defs cannot be serialized). This causes a cascading set of changes: - `PartitionsSubset` methods such as `get_partition_keys_in_range`, `get_partition_keys_not_in_subset` must now accept a `partitions_def` arg - `PartitionMapping` methods now must accept a partitions def corresponding to a partitions subset, otherwise the partitions def is inaccessible - Subclassing named tuples doesn't work well since you can't override methods, so this PR removes `MultiPartitionsSubset` and modifies callsites to transform partition keys to `MultiPartitionKey`s if needed
- Loading branch information
1 parent
a0656fc
commit 02c11a8
Showing
30 changed files
with
461 additions
and
273 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
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.