datahub/metadata-ingestion/tests/unit/serde/test_canonicalization_output.json

536 lines
18 KiB
JSON

[
{
"entityType": "dataset",
"entityUrn": "urn:li:dataset:(urn:li:dataPlatform:mysql,metagalaxy.metagalaxy.metadata_aspect,PROD)",
"changeType": "UPSERT",
"aspectName": "schemaMetadata",
"aspect": {
"json": {
"schemaName": "metagalaxy.metagalaxy.metadata_aspect",
"platform": "urn:li:dataPlatform:mysql",
"version": 0,
"created": {
"time": 1613070834000,
"actor": "urn:li:corpuser:etl"
},
"lastModified": {
"time": 1613070834000,
"actor": "urn:li:corpuser:etl"
},
"hash": "",
"platformSchema": {
"com.linkedin.schema.MySqlDDL": {
"tableSchema": ""
}
},
"fields": [
{
"fieldPath": "urn",
"nullable": false,
"type": {
"type": {
"com.linkedin.schema.StringType": {}
}
},
"nativeDataType": "VARCHAR(length=500)",
"recursive": false,
"isPartOfKey": false
},
{
"fieldPath": "aspect",
"nullable": false,
"type": {
"type": {
"com.linkedin.schema.StringType": {}
}
},
"nativeDataType": "VARCHAR(length=200)",
"recursive": false,
"isPartOfKey": false
},
{
"fieldPath": "version",
"nullable": false,
"type": {
"type": {
"com.linkedin.schema.NumberType": {}
}
},
"nativeDataType": "BIGINT()",
"recursive": false,
"isPartOfKey": false
},
{
"fieldPath": "metadata",
"nullable": false,
"type": {
"type": {
"com.linkedin.schema.StringType": {}
}
},
"nativeDataType": "LONGTEXT()",
"recursive": false,
"isPartOfKey": false
},
{
"fieldPath": "createdon",
"nullable": false,
"type": {
"type": {
"com.linkedin.schema.NullType": {}
}
},
"nativeDataType": "DATETIME(fsp=6)",
"recursive": false,
"isPartOfKey": false
},
{
"fieldPath": "createdby",
"nullable": false,
"type": {
"type": {
"com.linkedin.schema.StringType": {}
}
},
"nativeDataType": "VARCHAR(length=255)",
"recursive": false,
"isPartOfKey": false
},
{
"fieldPath": "createdfor",
"nullable": false,
"type": {
"type": {
"com.linkedin.schema.StringType": {}
}
},
"nativeDataType": "VARCHAR(length=255)",
"recursive": false,
"isPartOfKey": false
}
]
}
},
"systemMetadata": {
"lastObserved": 1626980046000,
"runId": "serde_test"
}
},
{
"entityType": "dataset",
"entityUrn": "urn:li:dataset:(urn:li:dataPlatform:mysql,metagalaxy.metagalaxy.metadata_index,PROD)",
"changeType": "UPSERT",
"aspectName": "schemaMetadata",
"aspect": {
"json": {
"schemaName": "metagalaxy.metagalaxy.metadata_index",
"platform": "urn:li:dataPlatform:mysql",
"version": 0,
"created": {
"time": 1613070834000,
"actor": "urn:li:corpuser:etl"
},
"lastModified": {
"time": 1613070834000,
"actor": "urn:li:corpuser:etl"
},
"hash": "",
"platformSchema": {
"com.linkedin.schema.MySqlDDL": {
"tableSchema": ""
}
},
"fields": [
{
"fieldPath": "id",
"nullable": false,
"type": {
"type": {
"com.linkedin.schema.NumberType": {}
}
},
"nativeDataType": "BIGINT()",
"recursive": false,
"isPartOfKey": false
},
{
"fieldPath": "urn",
"nullable": false,
"type": {
"type": {
"com.linkedin.schema.StringType": {}
}
},
"nativeDataType": "VARCHAR(length=200)",
"recursive": false,
"isPartOfKey": false
},
{
"fieldPath": "aspect",
"nullable": false,
"type": {
"type": {
"com.linkedin.schema.StringType": {}
}
},
"nativeDataType": "VARCHAR(length=150)",
"recursive": false,
"isPartOfKey": false
},
{
"fieldPath": "path",
"nullable": false,
"type": {
"type": {
"com.linkedin.schema.StringType": {}
}
},
"nativeDataType": "VARCHAR(length=150)",
"recursive": false,
"isPartOfKey": false
},
{
"fieldPath": "longVal",
"nullable": false,
"type": {
"type": {
"com.linkedin.schema.NumberType": {}
}
},
"nativeDataType": "BIGINT()",
"recursive": false,
"isPartOfKey": false
},
{
"fieldPath": "stringVal",
"nullable": false,
"type": {
"type": {
"com.linkedin.schema.StringType": {}
}
},
"nativeDataType": "VARCHAR(length=200)",
"recursive": false,
"isPartOfKey": false
},
{
"fieldPath": "doubleVal",
"nullable": false,
"type": {
"type": {
"com.linkedin.schema.NumberType": {}
}
},
"nativeDataType": "DOUBLE(asdecimal=True)",
"recursive": false,
"isPartOfKey": false
}
]
}
},
"systemMetadata": {
"lastObserved": 1626980046000,
"runId": "serde_test"
}
},
{
"entityType": "dataset",
"entityUrn": "urn:li:dataset:(urn:li:dataPlatform:mysql,metagalaxy.mysql.columns_priv,PROD)",
"changeType": "UPSERT",
"aspectName": "schemaMetadata",
"aspect": {
"json": {
"schemaName": "metagalaxy.mysql.columns_priv",
"platform": "urn:li:dataPlatform:mysql",
"version": 0,
"created": {
"time": 1613070834000,
"actor": "urn:li:corpuser:etl"
},
"lastModified": {
"time": 1613070834000,
"actor": "urn:li:corpuser:etl"
},
"hash": "",
"platformSchema": {
"com.linkedin.schema.MySqlDDL": {
"tableSchema": ""
}
},
"fields": [
{
"fieldPath": "Host",
"nullable": false,
"type": {
"type": {
"com.linkedin.schema.StringType": {}
}
},
"nativeDataType": "CHAR(charset='ascii', collation='ascii_general_ci', length=255)",
"recursive": false,
"isPartOfKey": false
},
{
"fieldPath": "Db",
"nullable": false,
"type": {
"type": {
"com.linkedin.schema.StringType": {}
}
},
"nativeDataType": "CHAR(collation='utf8_bin', length=64)",
"recursive": false,
"isPartOfKey": false
},
{
"fieldPath": "User",
"nullable": false,
"type": {
"type": {
"com.linkedin.schema.StringType": {}
}
},
"nativeDataType": "CHAR(collation='utf8_bin', length=32)",
"recursive": false,
"isPartOfKey": false
},
{
"fieldPath": "Table_name",
"nullable": false,
"type": {
"type": {
"com.linkedin.schema.StringType": {}
}
},
"nativeDataType": "CHAR(collation='utf8_bin', length=64)",
"recursive": false,
"isPartOfKey": false
},
{
"fieldPath": "Column_name",
"nullable": false,
"type": {
"type": {
"com.linkedin.schema.StringType": {}
}
},
"nativeDataType": "CHAR(collation='utf8_bin', length=64)",
"recursive": false,
"isPartOfKey": false
},
{
"fieldPath": "Timestamp",
"nullable": false,
"type": {
"type": {
"com.linkedin.schema.NullType": {}
}
},
"nativeDataType": "TIMESTAMP()",
"recursive": false,
"isPartOfKey": false
},
{
"fieldPath": "Column_priv",
"nullable": false,
"type": {
"type": {
"com.linkedin.schema.StringType": {}
}
},
"nativeDataType": "SET(charset='utf8', collation='utf8_general_ci', length=10)",
"recursive": false,
"isPartOfKey": false
}
]
}
},
"systemMetadata": {
"lastObserved": 1626980046000,
"runId": "serde_test"
}
},
{
"entityType": "dataset",
"entityUrn": "urn:li:dataset:(urn:li:dataPlatform:mysql,metagalaxy.mysql.component,PROD)",
"changeType": "UPSERT",
"aspectName": "schemaMetadata",
"aspect": {
"json": {
"schemaName": "metagalaxy.mysql.component",
"platform": "urn:li:dataPlatform:mysql",
"version": 0,
"created": {
"time": 1613070834000,
"actor": "urn:li:corpuser:etl"
},
"lastModified": {
"time": 1613070834000,
"actor": "urn:li:corpuser:etl"
},
"hash": "",
"platformSchema": {
"com.linkedin.schema.MySqlDDL": {
"tableSchema": ""
}
},
"fields": [
{
"fieldPath": "component_id",
"nullable": false,
"type": {
"type": {
"com.linkedin.schema.NumberType": {}
}
},
"nativeDataType": "INTEGER(unsigned=True)",
"recursive": false,
"isPartOfKey": false
},
{
"fieldPath": "component_group_id",
"nullable": false,
"type": {
"type": {
"com.linkedin.schema.NumberType": {}
}
},
"nativeDataType": "INTEGER(unsigned=True)",
"recursive": false,
"isPartOfKey": false
},
{
"fieldPath": "component_urn",
"nullable": false,
"type": {
"type": {
"com.linkedin.schema.StringType": {}
}
},
"nativeDataType": "TEXT()",
"recursive": false,
"isPartOfKey": false
}
]
}
},
"systemMetadata": {
"lastObserved": 1626980046000,
"runId": "serde_test"
}
},
{
"entityType": "dataset",
"entityUrn": "urn:li:dataset:(urn:li:dataPlatform:mssql,DemoData.dbo.Products,PROD)",
"changeType": "UPSERT",
"aspectName": "schemaMetadata",
"aspect": {
"json": {
"schemaName": "DemoData.dbo.Products",
"platform": "urn:li:dataPlatform:mssql",
"version": 0,
"created": {
"time": 1613095693000,
"actor": "urn:li:corpuser:etl"
},
"lastModified": {
"time": 1613095693000,
"actor": "urn:li:corpuser:etl"
},
"hash": "",
"platformSchema": {
"com.linkedin.schema.MySqlDDL": {
"tableSchema": ""
}
},
"fields": [
{
"fieldPath": "ID",
"nullable": false,
"type": {
"type": {
"com.linkedin.schema.NumberType": {}
}
},
"nativeDataType": "INTEGER()",
"recursive": false,
"isPartOfKey": false
},
{
"fieldPath": "ProductName",
"nullable": false,
"type": {
"type": {
"com.linkedin.schema.StringType": {}
}
},
"nativeDataType": "NVARCHAR()",
"recursive": false,
"isPartOfKey": false
}
]
}
},
"systemMetadata": {
"lastObserved": 1626980046000,
"runId": "serde_test"
}
},
{
"entityType": "dataset",
"entityUrn": "urn:li:dataset:(urn:li:dataPlatform:mssql,DemoData.Foo.Items,PROD)",
"changeType": "UPSERT",
"aspectName": "schemaMetadata",
"aspect": {
"json": {
"schemaName": "DemoData.Foo.Items",
"platform": "urn:li:dataPlatform:mssql",
"version": 0,
"created": {
"time": 1613095694000,
"actor": "urn:li:corpuser:etl"
},
"lastModified": {
"time": 1613095694000,
"actor": "urn:li:corpuser:etl"
},
"hash": "",
"platformSchema": {
"com.linkedin.schema.MySqlDDL": {
"tableSchema": ""
}
},
"fields": [
{
"fieldPath": "ID",
"nullable": false,
"type": {
"type": {
"com.linkedin.schema.NumberType": {}
}
},
"nativeDataType": "INTEGER()",
"recursive": false,
"isPartOfKey": false
},
{
"fieldPath": "ItemName",
"nullable": false,
"type": {
"type": {
"com.linkedin.schema.StringType": {}
}
},
"nativeDataType": "NVARCHAR()",
"recursive": false,
"isPartOfKey": false
}
]
}
},
"systemMetadata": {
"lastObserved": 1626980046000,
"runId": "serde_test"
}
}
]