-
Notifications
You must be signed in to change notification settings - Fork 9
Assets fail to load when GBQ project name contains a hyphen #62
Description
I'm working on a GBQ project where the name contains a hyphen, and it looks like the hyphen prevents the asset decorator from loading the assets' fully qualified names correctly. Fixing this would be my first open source contribution, I'll see if I can't knock it out tonight!
Traceback (most recent call last): File "<string>", line 1, in <module> File "C:\Users\myusername\Documents\my_project\dagster_defs.py", line 18, in <module> @sqlmesh_assets( ^^^^^^^^^^^^^^^ File "C:\Users\myusername\Documents\my_project\.venv\Lib\site-packages\dagster\_core\definitions\decorators\asset_decorator.py", line 744, in inner builder = DecoratorAssetsDefinitionBuilder.for_multi_asset(args=args, fn=fn) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\myusername\Documents\my_project\.venv\Lib\site-packages\dagster\_core\definitions\decorators\decorator_assets_definition_builder.py", line 328, in for_multi_asset return DecoratorAssetsDefinitionBuilder.from_asset_outs_in_asset_centric_decorator( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\myusername\Documents\my_project\.venv\Lib\site-packages\dagster\_core\definitions\decorators\decorator_assets_definition_builder.py", line 461, in from_asset_outs_in_asset_centric_decorator internal_deps = {keys_by_output_name[name]: asset_deps[name] for name in asset_deps} ~~~~~~~~~~~~~~~~~~~^^^^^^ KeyError: 'sqlmesh__my-gcp-project_my_schema_example_model'