Some kedro-datasets do not have a metadata parameter. This causes kedro-pandera to throw an error, even if there is no schema validation for the affected dataset.
Context
The bug prevents me from using datasets without a metadata parameter, disrupting my data pipeline. Even some official kedro datasets are missing this parameter (e.g. ManagedTableDataset, EagerPolarsDataset)
Description
Some
kedro-datasets
do not have ametadata
parameter. This causeskedro-pandera
to throw an error, even if there is no schema validation for the affected dataset.Context
The bug prevents me from using datasets without a
metadata
parameter, disrupting my data pipeline. Even some official kedro datasets are missing this parameter (e.g. ManagedTableDataset, EagerPolarsDataset)Steps to Reproduce
spaceflights-pandas
starter.kedro-datasets
.metadata
parameter from the custom dataset.Expected Result
The custom dataset should work without throwing an error, even if it lacks a
metadata
parameter.Actual Result
An
AttributeError
is thrown:AttributeError: 'CSVDataset' object has no attribute 'metadata'
Additional Information
Code causing the error:
catalog._datasets[name].metadata is not None