Hi All , I was exploring the datahub relationships...
# ingestion
s
Hi All , I was exploring the datahub relationships, So my as is if i have mysql database and table are normalized in. So can we manage the relationship between the these table. Like table " A" has a foreign key which is a primary key in table "B". So any way i can manage this relationship between Table "A" and "B"
g
Hey Rahul- Datahub does have a way to store foreign key relationships on the modeling side, here: https://github.com/linkedin/datahub/blob/master/metadata-models/src/main/pegasus/com/linkedin/schema/SchemaMetadata.pdl#L56
However, this property is not currently being propagated to the UI
s
@green-football-43791 So can't we see any relational diagram of the related table "A" and "B"
?
@green-football-43791 Also as these foreignKeySpec is not being propagated , so for now we can consider this as just persisting into database but not using anywhere. Right ?
g
Correct- we intend to add them into the React UI, but for now, they are just persisted in the database.
s
@green-football-43791 Can we use the Lineages to view such type of related tables as well, what you suggest for now ?
m
@some-cricket-23089 what you’re looking for would most likely be similar to an ER model diagram. Lineage seems more related to derivation.
For now, the simplest solution would be to enhance the existing schema view to support navigating to the related tables
@some-cricket-23089 primary and foreign keys should be available for sql sources starting with pypi 
acryl_datahub==0.8.15.1
 and server version
0.8.15
onwards. Let us know if it works for you!
s
@mammoth-bear-12532 Sure will try it and let you know
Thanks for updating the same