-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8f8b7f5
commit d997bb6
Showing
4 changed files
with
240 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
...ata-ingestion/tests/unit/sql_parsing/aggregator_goldens/test_create_table_query_mcps.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
[ | ||
{ | ||
"entityType": "dataset", | ||
"entityUrn": "urn:li:dataset:(urn:li:dataPlatform:bigquery,dev.dataset.foo,PROD)", | ||
"changeType": "UPSERT", | ||
"aspectName": "operation", | ||
"aspect": { | ||
"json": { | ||
"timestampMillis": 1707182625000, | ||
"partitionSpec": { | ||
"type": "FULL_TABLE", | ||
"partition": "FULL_TABLE_SNAPSHOT" | ||
}, | ||
"operationType": "CREATE", | ||
"customProperties": { | ||
"query_urn": "urn:li:query:f2e61c641cf14eae74147b6280ae40648516c4b7b58cfca6c4f7fb14ab255ce2" | ||
}, | ||
"lastUpdatedTimestamp": 1707182625000 | ||
} | ||
} | ||
} | ||
] |
79 changes: 79 additions & 0 deletions
79
...tests/unit/sql_parsing/aggregator_goldens/test_lineage_via_temp_table_disordered_add.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
[ | ||
{ | ||
"entityType": "dataset", | ||
"entityUrn": "urn:li:dataset:(urn:li:dataPlatform:redshift,dev.public.derived_from_foo,PROD)", | ||
"changeType": "UPSERT", | ||
"aspectName": "upstreamLineage", | ||
"aspect": { | ||
"json": { | ||
"upstreams": [ | ||
{ | ||
"auditStamp": { | ||
"time": 1707182625000, | ||
"actor": "urn:li:corpuser:_ingestion" | ||
}, | ||
"created": { | ||
"time": 0, | ||
"actor": "urn:li:corpuser:_ingestion" | ||
}, | ||
"dataset": "urn:li:dataset:(urn:li:dataPlatform:redshift,dev.public.bar,PROD)", | ||
"type": "TRANSFORMED", | ||
"query": "urn:li:query:composite_39f4adf89c8ad4d6d307b628c82d8260e1c5cd7eb6fb3a8cbb437421f970c16f" | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
{ | ||
"entityType": "query", | ||
"entityUrn": "urn:li:query:composite_39f4adf89c8ad4d6d307b628c82d8260e1c5cd7eb6fb3a8cbb437421f970c16f", | ||
"changeType": "UPSERT", | ||
"aspectName": "queryProperties", | ||
"aspect": { | ||
"json": { | ||
"statement": { | ||
"value": "CREATE TEMPORARY TABLE foo AS\nSELECT\n a,\n b + c AS c\nFROM bar;\n\nCREATE TABLE derived_from_foo AS\nSELECT\n *\nFROM foo", | ||
"language": "SQL" | ||
}, | ||
"source": "SYSTEM", | ||
"created": { | ||
"time": 0, | ||
"actor": "urn:li:corpuser:_ingestion" | ||
}, | ||
"lastModified": { | ||
"time": 1707182625000, | ||
"actor": "urn:li:corpuser:_ingestion" | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"entityType": "query", | ||
"entityUrn": "urn:li:query:composite_39f4adf89c8ad4d6d307b628c82d8260e1c5cd7eb6fb3a8cbb437421f970c16f", | ||
"changeType": "UPSERT", | ||
"aspectName": "querySubjects", | ||
"aspect": { | ||
"json": { | ||
"subjects": [ | ||
{ | ||
"entity": "urn:li:dataset:(urn:li:dataPlatform:redshift,dev.public.bar,PROD)" | ||
}, | ||
{ | ||
"entity": "urn:li:dataset:(urn:li:dataPlatform:redshift,dev.public.derived_from_foo,PROD)" | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
{ | ||
"entityType": "query", | ||
"entityUrn": "urn:li:query:composite_39f4adf89c8ad4d6d307b628c82d8260e1c5cd7eb6fb3a8cbb437421f970c16f", | ||
"changeType": "UPSERT", | ||
"aspectName": "dataPlatformInstance", | ||
"aspect": { | ||
"json": { | ||
"platform": "urn:li:dataPlatform:redshift" | ||
} | ||
} | ||
} | ||
] |
Oops, something went wrong.