Jeremy Lyman
04/03/2023, 10:01 PMdagster._core.errors.DagsterExecutionHandleOutputError: Error occurred while handling output "result" of step "ods_components":
Jeremy Lyman
04/03/2023, 10:01 PM@asset(required_resource_keys={"ods"},
partitions_def=hourly_partitions_def)
def ods_components(context) -> List[dict]:
"""Components from the ODS."""
start, end = context.asset_partitions_time_window_for_output()
# partition_date_str = context.asset_partition_key_for_output()
get_dagster_logger().info(
f"Materializing ODS assets between: {start} {end}"
)
return context.resources.ods.extract_between(start, end)
dagster._core.errors.DagsterExecutionHandleOutputError: Error occurred while handling output "result" of step "ods_components":
The above exception was caused by the following exception:
AssertionError
File ".pyenv/versions/3.11.2/lib/python3.11/site-packages/dagster/_core/execution/plan/utils.py", line 54, in op_execution_error_boundary
yield
File ".pyenv/versions/3.11.2/lib/python3.11/site-packages/dagster/_utils/__init__.py", line 439, in iterate_with_context
next_output = next(iterator)
^^^^^^^^^^^^^^
File ".pyenv/versions/3.11.2/lib/python3.11/site-packages/dagster/_core/execution/plan/execute_step.py", line 594, in _gen_fn
gen_output = output_manager.handle_output(output_context, output.value)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File ".pyenv/versions/3.11.2/lib/python3.11/site-packages/dagster/_core/storage/upath_io_manager.py", line 235, in handle_output
assert len(paths) == 1
^^^^^^^^^^^^^^^
sandy
04/04/2023, 12:25 AMJeremy Lyman
04/04/2023, 3:02 AM