npawar commented on issue #8604:
URL: https://github.com/apache/pinot/issues/8604#issuecomment-1118106277
@saumya2700 , as Saurabh has pointed out, you need to remove all the
non-array fields from fieldsToUnnest. Here's what works. Schema should have,
instead of just calActivity.metadata,
```
{
"name": "calActivity.metadata.activityType",
"dataType": "STRING"
},
{
"name": "calActivity.metadata.conf",
"dataType": "FLOAT"
},
```
Ingestion config should just have
```
"complexTypeConfig": {
"fieldsToUnnest": ["calActivity.metadata"]
}
```
You dont need any transform functions, just this is enough.
Please try this out and let us know
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]