How do I combine my AssetSelection as unions, intersections, or differences?
#18406
-
|
Hello, I am trying to pass multiple dbt-based AssetSelection resources to a job definition. It doesn't work. Is there a better way to do this? Example: remit_professional_pipeline = define_asset_job(
name="Remit_Professional_Build",
selection=[
remit_professional_asset_selector,
remit_professional_end_table_selector
],
)The question was originally asked in Dagster Slack. |
Beta Was this translation helpful? Give feedback.
Answered by
rexledesma
Nov 30, 2023
Replies: 1 comment
-
|
You can combine your For example, to select the union of your two selection objects: remit_professional_pipeline = define_asset_job(
name="Remit_Professional_Build",
selection=(
remit_professional_asset_selector | remit_professional_end_table_selector
),
)References: |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
rexledesma
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can combine your
AssetSelectionobjects using the “|”, “&”, and “-” operators to create unions, intersections, and differences of selections, respectively.For example, to select the union of your two selection objects:
References: