diff --git a/metadata-ingestion/src/datahub/metadata/schema.avsc b/metadata-ingestion/src/datahub/metadata/schema.avsc index 52f89a291e8c15..f15fb085da162f 100644 --- a/metadata-ingestion/src/datahub/metadata/schema.avsc +++ b/metadata-ingestion/src/datahub/metadata/schema.avsc @@ -271,7 +271,15 @@ } ], "doc": "Data sources for the chart", - "default": null + "default": null, + "Relationship": { + "/*/string": { + "entityTypes": [ + "dataset" + ], + "name": "Consumes" + } + } }, { "name": "type", diff --git a/metadata-models/src/main/pegasus/com/linkedin/chart/ChartInfo.pdl b/metadata-models/src/main/pegasus/com/linkedin/chart/ChartInfo.pdl index f7d69e236e9aca..969bb17376f0ee 100644 --- a/metadata-models/src/main/pegasus/com/linkedin/chart/ChartInfo.pdl +++ b/metadata-models/src/main/pegasus/com/linkedin/chart/ChartInfo.pdl @@ -43,6 +43,12 @@ record ChartInfo includes CustomProperties, ExternalReference { /** * Data sources for the chart */ + @Relationship = { + "/*/string": { + "name": "Consumes", + "entityTypes": [ "dataset" ] + } + } inputs: optional array[ChartDataSourceType] /** @@ -67,4 +73,4 @@ record ChartInfo includes CustomProperties, ExternalReference { * The time when this chart last refreshed */ lastRefreshed: optional Time -} \ No newline at end of file +}