You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are multiple occurrences of reduce being used without an initializer in dagster/python_modules/dagster/dagster/_core/definitions/asset_selection.py.
This can cause an error when an empty selection is used, I had some instances when using for example job_def.selection.resolve where I needed to manually fix this.
TypeError( "reduce() of empty iterable with no initial value")
What's the issue?
There are multiple occurrences of
reduce
being used without an initializer indagster/python_modules/dagster/dagster/_core/definitions/asset_selection.py
.This can cause an error when an empty selection is used, I had some instances when using for example job_def.selection.resolve where I needed to manually fix this.
TypeError( "reduce() of empty iterable with no initial value")
For example:
dagster/python_modules/dagster/dagster/_core/definitions/asset_selection.py
Lines 882 to 894 in 28bbf98
This should be modified to include an initializer to prevent errors with empty sequences:
Expected use:
dagster/python_modules/dagster/dagster/_core/definitions/asset_selection.py
Lines 1109 to 1122 in 28bbf98
What did you expect to happen?
Empty set result like expected use:
dagster/python_modules/dagster/dagster/_core/definitions/asset_selection.py
Lines 1109 to 1122 in 28bbf98
How to reproduce?
Any selection resolved to empty set.
Dagster version
1.9.6
Deployment type
None
Deployment details
No response
Additional information
No response
Message from the maintainers
Impacted by this issue? Give it a 👍! We factor engagement into prioritization.
The text was updated successfully, but these errors were encountered: