Skip to content

Assets fail to load when GBQ project name contains a hyphen #62

@connordouglashanna

Description

@connordouglashanna

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions