-
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.
[6/n subset refactor] Serialize AssetGraphSubset and AssetBackfillDat…
…a with whitelist_for_serdes (#17844) This PR makes `AssetGraphSubset` and `AssetBackfillData` serializable via `whitelist_for_serdes`. This involves the following changes: - converts `AssetGraphSubset` and `AssetBackfillData` into `NamedTuples` - adds a custom serializer to convert `PartitionKeysTimeWindowPartitionsSubset` to `TimeWindowsPartitionsSubset` - removes the asset graph property from `AssetGraphSubset` as it is not serializable. This has a cascading effect: - callsites where we previously called `asset_graph_subset.asset_graph` must instead have an asset graph passed in - previously we could build empty partitions subsets when needed within `AssetGraphSubset` (i.e. within `__or__`). This logic now must be updated to handle cases where a partitions subset is currently `None` - now `AssetGraphSubset` or, and, and sub (`|`, `&`, `-`) operations cannot operate directly against sets of `AssetKeyPartitionKey`s, since the asset graph is required to build subsets from these `AssetKeyPartitionKey`s
- Loading branch information
1 parent
0db06be
commit e9af094
Showing
13 changed files
with
280 additions
and
176 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
Oops, something went wrong.