pyapacheatlas.readers.reader.Reader.parse_entity_defs#

Reader.parse_entity_defs(json_rows)#

Create an AtlasTypeDef consisting of entityDefs for the given json_rows. The columns Entity TypeName and Entity superTypes are special and map to typeName and superTypes respectively.

Entity TypeName must be repeated for each row that has a relevant attribute being defined on it. For example, if you plan on including five attributes for type X, you would need to have five rows and each row would have to fill in the Entity TypeName column.

superTypes can be specified all in one cell (default delimiter is ; and is controlled by the Reader’s configuration) or across multiple cells. If you specify DataSet in one row for type X and hive_table for type X in a second row, it will result in a superType of [DataSet, hive_table].

Parameters

json_rows (list(dict(str,str))) – A list of dicts containing at least Entity TypeName and name that represents the metadata for a given entity type’s attributeDefs. Extra metadata will be ignored.

Returns

An AtlasTypeDef with entityDefs for the provided rows.

Return type

dict(str, list(dict))