You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to retrieve metadata (like file size) from datasets in Kedro Viz we are running into issues, specifically within our DatasetStatsHook. Currently, to obtain this metadata, we need to access private attributes (e.g., _filepath, _fs, _protocol), which is causing inconsistency and compatibility problems with datasets that do not expose these attributes.
Context
By having a standardised, public way to retrieve dataset metadata we can improve best practices. This benefits users who want to collect dataset metadata or build plugins, as it provides a consistent and maintainable approach.
Possible Implementation
Perhaps adding an optional, public method (e.g., get_info) to datasets that can provide metadata like file size, etc.
The text was updated successfully, but these errors were encountered:
Description
Related to: kedro-org/kedro-viz#1893 (comment)
When trying to retrieve metadata (like file size) from datasets in Kedro Viz we are running into issues, specifically within our
DatasetStatsHook
. Currently, to obtain this metadata, we need to access private attributes (e.g.,_filepath
,_fs
,_protocol
), which is causing inconsistency and compatibility problems with datasets that do not expose these attributes.Context
By having a standardised, public way to retrieve dataset metadata we can improve best practices. This benefits users who want to collect dataset metadata or build plugins, as it provides a consistent and maintainable approach.
Possible Implementation
Perhaps adding an optional, public method (e.g.,
get_info
) to datasets that can provide metadata like file size, etc.The text was updated successfully, but these errors were encountered: