https://dagster.io/ logo
#ask-community
Title
# ask-community
m

Manish Khatri

07/07/2023, 2:51 PM
questiongif Has there been a change in Dagster’s internals for
AssetMaterialization
Object? Specifically the
metadata_entries
attribute. We are getting this error when trying to trigger an ingestion from Stitch on version
1.3.11
:
Copy code
AttributeError: 'AssetMaterialization' object has no attribute 'metadata_entries'
This use to work on our previous version
1.1.x
The code that triggers this is when we generate assets from a sync with Stitch (code based on an older version of dagster-fivetran):
Copy code
if materialization.asset_key in tracked_asset_keys:
                yield Output(
                    value=None,
                    output_name="_".join(materialization.asset_key.path),
                    metadata={
                        entry.label: entry.entry_data for entry in materialization.metadata_entries  # type: ignore
                    },
                )
            else:
                yield materialization
🤖 1
t

Tim Castillo

07/07/2023, 2:54 PM
Hi! Yes, the methods were changed in 1.2 in this PR.
❤️ 1
m

Manish Khatri

07/07/2023, 2:57 PM
Thanks Tim, so I presume we should change it to
metadata=materliazation.metadata
t

Tim Castillo

07/07/2023, 2:59 PM
I believe so. I'm not too familiar with the retired
metadata_entries
, but the metadata data structure might also be different too once you access it
👍 1
m

Manish Khatri

07/07/2023, 3:08 PM
2 Views