Bennie Regenold
06/08/2023, 2:41 PMBennie Regenold
06/08/2023, 2:42 PMdagster._core.errors.DagsterInvalidDefinitionError: resource with key 'snowflake' required by op 'small_petals' was not provided. Please provide a <class 'dagster._core.definitions.resource_definition.ResourceDefinition'> to key 'snowflake', or change the required key to one of the following keys which points to an <class 'dagster._core.definitions.resource_definition.ResourceDefinition'>: ['io_manager']
Bennie Regenold
06/08/2023, 2:42 PMBennie Regenold
06/08/2023, 2:58 PMwhere
clause), then use that output in a downstream processjamie
06/08/2023, 3:46 PMresource with key 'snowflake' required
is because a resource with key snowflake
isn’t in your Definitions object. Can you double check that you have this part of the code snippet
defs = Definitions(
assets=[small_petals],
resources={
"snowflake": SnowflakeResource(
account="abc1234.us-east-1",
user=EnvVar("SNOWFLAKE_USER"),
password=EnvVar("SNOWFLAKE_PASSWORD"),
database="FLOWERS",
schema="IRIS",
)
},
)
and how are you materializing the asset? that might be a factor here as welljamie
06/08/2023, 3:46 PMBennie Regenold
06/08/2023, 3:47 PMBennie Regenold
06/08/2023, 3:48 PMdagit
to get a local instance running, then found the asset and clicked Materialize
jamie
06/08/2023, 3:48 PMjamie
06/08/2023, 3:53 PMsmall_petals
?jamie
06/08/2023, 3:53 PM@asset
def small_petals(snowflake: SnowflakeResource) -> pd.DataFrame:
...
defs = Definitions(
assets=[small_petals],
resources={
"not_snowflake": SnowflakeResource(
account="abc1234.us-east-1",
user=EnvVar("SNOWFLAKE_USER"),
password=EnvVar("SNOWFLAKE_PASSWORD"),
database="FLOWERS",
schema="IRIS",
)
},
)
where the parameter name doesn’t have a match in the definitionsBennie Regenold
06/08/2023, 4:08 PMBennie Regenold
06/08/2023, 4:08 PMdefs = Definitions()
in my projectBennie Regenold
06/08/2023, 4:08 PMjamie
06/08/2023, 4:08 PMread_csv
method to the local iris.data
file. I’m putting up a pr so that we self host this dataset from now onjamie
06/08/2023, 4:09 PMBennie Regenold
06/08/2023, 4:09 PMjamie
06/08/2023, 4:10 PMBennie Regenold
06/08/2023, 4:10 PMjamie
06/08/2023, 4:10 PM