cancel
Showing results for 
Search instead for 
Did you mean: 
Community Platform Discussions
Connect with fellow community members to discuss general topics related to the Databricks platform, industry trends, and best practices. Share experiences, ask questions, and foster collaboration within the community.
cancel
Showing results for 
Search instead for 
Did you mean: 

Databricks lineage

Rachana2
New Contributor II

Hello,

I am trying to get the table lineage i.e upstreams and downstreams of all tables in unity catalog into my local database using API calls. I need my db to be up to date, if the lineage is updated in one of the in databricks, i have to update same in my database, but i dont want to make api calls to all tables in UC to check if its updated or not. To avoid this is there any way to get the last updated time lineage? or any other way so that i can make api calls to only those tables where were updated from last run.

 

3 REPLIES 3

Alberto_Umana
Databricks Employee
Databricks Employee

Hello @Rachana2,

Have you tried using system lineage tables instead?

system.access.table_lineage and system.access.column_lineage

Rachana2
New Contributor II

Thankyou for your quick response!

Is there any other way we can find the last altered time of lineage apart from system.access tables?

SantoshJoshi
New Contributor II

Hi @Rachana2,

As @Alberto_Umana has mentioned I'd check table_lineage / column_lineage tables, as maintaining a lineage through a bespoke pipeline/tooling may not be a right approach.

Can you please explain your use case which explains why you don't want to use the system tables? (is your Databricks not in UC?)

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group