@@ -341,6 +341,8 @@ async def test_get_dataset_lineage_with_granularity_dataset(
341341 "name" : dataset .name ,
342342 "location" : location_to_json (dataset .location ),
343343 "schema" : schema_to_json (lineage .inputs [0 ].schema , "EXACT_MATCH" ),
344+ "external_id" : dataset .external_id ,
345+ "external_url" : dataset .external_url ,
344346 }
345347 for dataset in datasets
346348 },
@@ -417,6 +419,8 @@ async def test_get_dataset_lineage_with_granularity_dataset_and_direction(
417419 "name" : dataset .name ,
418420 "location" : location_to_json (dataset .location ),
419421 "schema" : schema_to_json (lineage .inputs [0 ].schema , "EXACT_MATCH" ),
422+ "external_id" : dataset .external_id ,
423+ "external_url" : dataset .external_url ,
420424 }
421425 for dataset in datasets
422426 },
@@ -485,6 +489,8 @@ async def test_get_dataset_lineage_with_granularity_dataset_and_depth(
485489 "name" : dataset .name ,
486490 "location" : location_to_json (dataset .location ),
487491 "schema" : schema_to_json (lineage .inputs [0 ].schema , "EXACT_MATCH" ),
492+ "external_id" : dataset .external_id ,
493+ "external_url" : dataset .external_url ,
488494 }
489495 for dataset in datasets
490496 },
@@ -563,6 +569,8 @@ async def test_get_dataset_lineage_with_granularity_dataset_and_symlinks(
563569 if dataset .id in inputs_by_dataset_id or dataset .id in outputs_by_dataset_id
564570 else None
565571 ),
572+ "external_id" : dataset .external_id ,
573+ "external_url" : dataset .external_url ,
566574 }
567575 for dataset in datasets
568576 },
@@ -633,6 +641,8 @@ async def test_get_dataset_lineage_with_granularity_dataset_and_until(
633641 "name" : dataset .name ,
634642 "location" : location_to_json (dataset .location ),
635643 "schema" : schema_to_json (lineage .inputs [0 ].schema , "EXACT_MATCH" ),
644+ "external_id" : dataset .external_id ,
645+ "external_url" : dataset .external_url ,
636646 }
637647 for dataset in datasets
638648 },
@@ -1495,6 +1505,8 @@ async def test_get_dataset_lineage_unmergeable_schema_and_output_type(
14951505 "name" : dataset .name ,
14961506 "location" : location_to_json (dataset .location ),
14971507 "schema" : schema_to_json (response_schema , "LATEST_KNOWN" ),
1508+ "external_id" : dataset .external_id ,
1509+ "external_url" : dataset .external_url ,
14981510 },
14991511 },
15001512 "jobs" : jobs_to_json (jobs ),
@@ -1685,18 +1697,24 @@ async def test_get_dataset_lineage_with_granularity_dataset_without_output_schem
16851697 "name" : lineage_dataset .name ,
16861698 "location" : location_to_json (lineage_dataset .location ),
16871699 "schema" : schema_to_json (response_schema , "EXACT_MATCH" ),
1700+ "external_id" : lineage_dataset .external_id ,
1701+ "external_url" : lineage_dataset .external_url ,
16881702 },
16891703 str (datasets [0 ].id ): {
16901704 "id" : str (datasets [0 ].id ),
16911705 "name" : datasets [0 ].name ,
16921706 "location" : location_to_json (datasets [0 ].location ),
16931707 "schema" : schema_to_json (lineage .inputs [0 ].schema , "EXACT_MATCH" ),
1708+ "external_id" : datasets [0 ].external_id ,
1709+ "external_url" : datasets [0 ].external_url ,
16941710 },
16951711 str (datasets [2 ].id ): {
16961712 "id" : str (datasets [2 ].id ),
16971713 "name" : datasets [2 ].name ,
16981714 "location" : location_to_json (datasets [2 ].location ),
16991715 "schema" : schema_to_json (lineage .inputs [0 ].schema , "EXACT_MATCH" ),
1716+ "external_id" : datasets [2 ].external_id ,
1717+ "external_url" : datasets [2 ].external_url ,
17001718 },
17011719 },
17021720 "jobs" : {},
@@ -1749,6 +1767,8 @@ async def test_get_dataset_lineage_with_granularity_dataset_ignore_self_referenc
17491767 "name" : dataset .name ,
17501768 "location" : location_to_json (dataset .location ),
17511769 "schema" : None ,
1770+ "external_id" : dataset .external_id ,
1771+ "external_url" : dataset .external_url ,
17521772 },
17531773 },
17541774 "jobs" : {},
@@ -1802,6 +1822,8 @@ async def test_get_dataset_lineage_with_granularity_dataset_ignore_not_connected
18021822 "name" : dataset .name ,
18031823 "location" : location_to_json (dataset .location ),
18041824 "schema" : None ,
1825+ "external_id" : dataset .external_id ,
1826+ "external_url" : dataset .external_url ,
18051827 },
18061828 },
18071829 "jobs" : {},
0 commit comments