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
As a user, it would be useful to have a programmatic way to interact with the metadata for all of the tables in my dataset.
Expected behavior
In the metadata module, add a class called MultiTableMetadata
The class needs to store a dictionary that maps all of the table names to their SingleTableMetadata class instances and another dictionary that stores the relationships.
The __init__ requires no parameters
There should be a to_dict method that returns the underlying dictionaries in the proper json format
There should be an internal _load_from_dict(dict) method that returns a class instance with the values set based on a provided python dictionary that matches the json spec. The instance should call the SingleTableMetadata._load_from_dict to create the SingleTableMetadata instances.
Problem Description
As a user, it would be useful to have a programmatic way to interact with the metadata for all of the tables in my dataset.
Expected behavior
MultiTableMetadata
SingleTableMetadata
class instances and another dictionary that stores the relationships.__init__
requires no parametersto_dict
method that returns the underlying dictionaries in the proper json format_load_from_dict(dict)
method that returns a class instance with the values set based on a provided python dictionary that matches the json spec. The instance should call theSingleTableMetadata._load_from_dict
to create theSingleTableMetadata
instances.__repr__
method should be overridden to print the full dictionary representation of the json for theMultiTableMetadata
.The text was updated successfully, but these errors were encountered: