ambitious-shoe-92590
02/21/2023, 1:33 AMStruct type with "pull" based ingestion. I have a nested field called data which contains a number of child key:values. When I ingest this data with datahub, the outputted dataset will have the data field, but it is un-expandable.
I've read into Field Paths and the differences between v1 and v2 paths, but I am a bit confused on how to actually get to the point of being able to "expand" the nested struct. Seems like emitters are used in some examples but from my understanding that is if you want to manually add fields to the schema?
Any help would be appreciated, the data is coming from a S3 source if that makes a difference.bulky-soccer-26729
02/21/2023, 3:28 PMSchemaField gets created for each field on the dataset's schemaMetadata aspect in the fields field of that aspect. Then, for V1 field paths, we know it's nested using dot notation based on the fields fieldPath - so if data is a parent schema field then its child fieldPath would be data.child_nameambitious-shoe-92590
02/21/2023, 4:51 PMbulky-soccer-26729
02/21/2023, 4:55 PMschemaMetadata for a dataset. Or you could use a tool like Sequel Ace to look at your mysql DB and show me the row for that aspect on the dataset you care aboutambitious-shoe-92590
02/21/2023, 5:11 PMambitious-shoe-92590
02/21/2023, 5:42 PMcurl '<http://localhost:8080/entitiesV2/><url-encoded-entity-urn>'
I get this response:
{
"urn": "the urn",
"aspects": {
"datasetKey": {
"created": {
"actor": "urn:li:corpuser:__datahub_system",
"time": 1677001110711
},
"name": "datasetKey",
"type": "VERSIONED",
"version": 0,
"value": {
"origin": "PROD",
"name": "the name",
"platform": "urn:li:dataPlatform:s3"
}
}
},
"entityName": "dataset"
}
I would expect to also see schemaMetadata under aspects is this a limitation of the s3 source?ambitious-shoe-92590
02/21/2023, 5:45 PMSchemas for Parquet and Avro files are extracted as provided.ambitious-shoe-92590
02/21/2023, 5:49 PMbulky-soccer-26729
02/21/2023, 7:01 PMambitious-shoe-92590
02/21/2023, 7:08 PMschemaMetadata back for that at leastbulky-soccer-26729
02/21/2023, 7:08 PMambitious-shoe-92590
02/21/2023, 7:09 PMambitious-shoe-92590
02/21/2023, 7:09 PMbulky-soccer-26729
02/21/2023, 7:12 PMambitious-shoe-92590
02/21/2023, 7:19 PMschemaMetadata. Seems like something specific to the datalake/s3 source.ambitious-shoe-92590
02/21/2023, 7:20 PMbulky-soccer-26729
02/21/2023, 7:21 PM