Currently I am using the following rest api to get list of guids of tables associated with a tag
This api returns guid of tables along with their status as DELETED or ACTIVE. I wish to retrieve only the tables with status ACTIVE. Is it possible somehow?
Currently there is no support for fetching the entities based on their status via REST API. DSL support is limited as of HDP-2.5. Please check below link for the REST API documentation.
The same can be achieved using some python wrapper on top of dsl query.
Also if writing a python wrapper is more appropriate rather than deleting the 'deleted tables' entries from atlas db then could you please point me to some link explaining how it can be done.
Will this python wrapper be written to intercept the api calls?
you can retrieve table with tag name using query "tagname"
and ACTIVE entity using
hive_table where __state="ACTIVE"
There is no support currently to combine these 2 queries.
You can combine queries like :
hive_table where name="t1" and __state="ACTIVE" which retrieves the ACTIVE hive_tables with name t1
but there is no current support for ACTIVE tables tagged with tagname.
is there a way by which I could delete all these deleted table entries from titan so they are not retrieved at all