Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

update_schema API returns KeyError #65

Closed
vrajat opened this issue Jul 17, 2021 · 0 comments · Fixed by #66
Closed

update_schema API returns KeyError #65

vrajat opened this issue Jul 17, 2021 · 0 comments · Fixed by #66

Comments

@vrajat
Copy link
Member

vrajat commented Jul 17, 2021

Couple of issues:

  1. update_schema() is adding a default schema but the return seems to be failing:
Traceback (most recent call last):
  File "~/Library/Application Support/Sublime Text 3/Packages/User/lin_test.py", line 46, in <module>
    catalog.update_source(source,schema)
  File "~/Library/Python/3.8/lib/python/site-packages/data_lineage/__init__.py", line 489, in update_source
    attributes=payload["attributes"],
KeyError: 'attributes'

Code executed:

source = catalog.get_source("rs")
schema = catalog.get_schema("rs", "test")
catalog.update_source(source,schema)
  1. Query is sent to the server for parsing but no update in UI and also no logs generated on lineage app as well.

Last line from visualizer log:
10.10.0.1 - - [16/Jul/2021:15:53:08 +0000] "POST /api/v1/parse?query=<query>&source_id=7 HTTP/1.1" 200 181 "-" "python-requests/2.25.1"

*removed the query as its pretty long

Originally posted by @siva-mudiyanur in #57 (comment)

vrajat added a commit to vrajat/data-lineage that referenced this issue Jul 17, 2021
DefaultSchema object was not being instantiated correctly resulting in
AttributeError. Fix the errors and also resolve relationships to easily
access source and schema objects.

Fix tokern#65
vrajat added a commit that referenced this issue Jul 17, 2021
DefaultSchema object was not being instantiated correctly resulting in
AttributeError. Fix the errors and also resolve relationships to easily
access source and schema objects.

Fix #65
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant