https://dagster.io/ logo
#ask-ai
Title
# ask-ai
p

Peter Lim

02/29/2024, 5:23 PM
how do I get the asset keys of a given assetselection.group?
s

Scout

02/29/2024, 5:23 PM
The documentation does not explicitly provide a direct method to retrieve asset keys from a given
AssetSelection.group
. Asset groups are a way of organizing assets according to logical groupings that are useful operationally, and while you can select assets by group using
AssetSelection.groups("group_name")
, the documentation does not detail a method to extract the asset keys from this selection. If you need to work with the asset keys of a specific group, you might consider maintaining a mapping of asset groups to their corresponding asset keys in your codebase, or iterating over your asset definitions and checking their group membership programmatically, although this approach may not be scalable for large numbers of asset definitions. For further assistance or if you have a specific use case in mind, you might want to check for updates in the documentation or look for any community discussions or GitHub issues that might address this need.
5 Views