@@ -80,6 +80,7 @@ def __init__( # noqa: PLR0913
80
80
connection : dict [str , Any ] | None = None ,
81
81
load_args : dict [str , Any ] | None = None ,
82
82
save_args : dict [str , Any ] | None = None ,
83
+ metadata : dict [str , Any ] | None = None ,
83
84
) -> None :
84
85
"""Creates a new ``TableDataset`` pointing to a table (or file).
85
86
@@ -117,6 +118,8 @@ def __init__( # noqa: PLR0913
117
118
objects are materialized as views. To save a table using
118
119
a different materialization strategy, supply a value for
119
120
`materialized` in `save_args`.
121
+ metadata: Any arbitrary metadata. This is ignored by Kedro,
122
+ but may be consumed by users or external plugins.
120
123
"""
121
124
if filepath is None and table_name is None :
122
125
raise DatasetError (
@@ -127,6 +130,7 @@ def __init__( # noqa: PLR0913
127
130
self ._file_format = file_format
128
131
self ._table_name = table_name
129
132
self ._connection_config = connection
133
+ self .metadata = metadata
130
134
131
135
# Set load and save arguments, overwriting defaults if provided.
132
136
self ._load_args = deepcopy (self .DEFAULT_LOAD_ARGS )
0 commit comments