Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

How to update Expert information using pyapacheatlas.core.client.PurviewClient.partial_update_entity() for an already existing entity #283

Open
laknath123 opened this issue Feb 1, 2024 · 1 comment
Labels
purview question A question more about Purview and less about PyApacheAtlas

Comments

@laknath123
Copy link

laknath123 commented Feb 1, 2024

I am trying to update the Expert information for an already existing azure_sql_dw_table entity using
pyapacheatlas.core.client.PurviewClient.partial_update_entity()

and while I can do this for something that is not nested using something like the following
client.partial_update_entity(guid="xxxxxxxx",typeName="azure_sql_dw_table", attributes={"description": "testsestsestr"})

It seems that this is not possible for updating the Expert attribute using this function.

This is what I have tried so far

client.partial_update_entity(guid="xxxxxxxxx",
                             typeName=None, 
                             attributes= {'contacts': {'Expert': [{'id': 'xxxxxxxxxxx'}]}})

I get the following error Attribute contacts not found for type azure_sql_table

  • OS: [Windows]
  • PyApacheAtlas Version - 0.16.0
@laknath123 laknath123 added the purview question A question more about Purview and less about PyApacheAtlas label Feb 1, 2024
@mtijssen-at-lely
Copy link

It would be really nice if we could update these more nested attributes! It is not working for me this way... Is there some other way to do this programmatically?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
purview question A question more about Purview and less about PyApacheAtlas
Projects
None yet
Development

No branches or pull requests

2 participants