Skip to content

Commit

Permalink
Adding a default super type (DataSet) for parse_entity_defs.
Browse files Browse the repository at this point in the history
There should be a better way to do this but I can't figure it out through the Excel method.
  • Loading branch information
wjohnson committed Nov 5, 2020
1 parent e9801f2 commit 129d1ee
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Create a wheel distribution file and install it in your environment.
```
python -m pip install wheel
python setup.py bdist_wheel
python -m pip install ./dist/pyapacheatlas-0.0b17-py3-none-any.whl
python -m pip install ./dist/pyapacheatlas-0.0b18-py3-none-any.whl
```

### Create a Client Connection
Expand Down
2 changes: 1 addition & 1 deletion pyapacheatlas/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.0b17"
__version__ = "0.0b18"
5 changes: 4 additions & 1 deletion pyapacheatlas/readers/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,10 @@ def parse_entity_defs(self, json_rows):
for entityType in entities:
local_entity_def = EntityTypeDef(
name=entityType,
attributeDefs=entities[entityType]
attributeDefs=entities[entityType],
# Adding this as a default until I figur
# do this from the excel / json readers.
superTypes = ["DataSet"]
).to_json()
output["entityDefs"].append(local_entity_def)

Expand Down

0 comments on commit 129d1ee

Please sign in to comment.