New Source: YouGov BrandIndex #33146
Replies: 8 comments
-
@sherifnada as per our conversation on slack, here's an exemplary custom schema we would need to pass as post data to the {
"data": {
"id": "some-analysis",
"queries": [
{
"entity": {
"region": "us",
"sector_id": 1
},
"filters": [
{
"expression": "bixdemo_age2 > 1"
}
],
"id": "some-simple-query",
"metrics_score_types": {
"buzz": "net_score"
},
"period": {
"end_date": {
"days": 5
},
"start_date": {
"days": 8
}
}
},
{
"confidence_bound": {
"percent": 95,
"type": "upper"
},
"entity": {
"brand_id": 1007,
"region": "us",
"sector_id": 1
},
"filters": [],
"id": "some-complex-query",
"metrics_score_types": {
"buzz": "net_score",
"wom": "negatives_neutrals"
},
"moving_average": 3,
"period": {
"end_date": {
"days": 5
},
"start_date": {
"date": "2018-12-25"
}
},
"resample": {
"size": 2,
"type": "calendar_day"
},
"scoring": "total"
}
],
"title": "My Analysis"
},
"meta": {
"version": "v1"
}
} So far, I just add the custom schema as string to the The request response, however, is a whole other thing. Here's the catalog to give you a feeling of what we're working with. The time series are contained in an array, and the metrics for the dates are contained in their own arrays. This is normalization hell. Do you have any suggestions on how to go about this? |
Beta Was this translation helpful? Give feedback.
-
@darian-heede as long as the connector can programmatically "discover" this schema given the inputs in config.json the normalization module should be able to handle it no? Some alternatives:
I don't love 2 and 3 because if tomorrow we decide it's actually better to structure the data in a different way, then it would require a potentially backwards breaking change to the schema but it seems like those are our options. My preference would be:
If you can wave a magic wand here what would your preference be? |
Beta Was this translation helpful? Give feedback.
-
Thank you for your input @sherifnada. The issue here is with the raw JSON itself that is output by Airbyte or rather the YouGov API. Here's an example of the raw connector output. Unfortunately, the basic normalization doesn't really help, as the main query data isn't normalized at all (tested on postgres). My magic wand preference would be for the normalization to work with the given catalog. I'll check if a catalog directly based on the custom schema will help. Can you go into more detail for 2. and 3.? |
Beta Was this translation helpful? Give feedback.
-
@darian-heede normalization operates based on the output discovered catalog. So for the custom schema to be normalized, it would need to be described as accurately as possible by the catalog output in |
Beta Was this translation helpful? Give feedback.
-
@sherifnada using a configured catalog based on the response message indeed helps with the normalization step. I used genSON to create the catalog from the message, which worked well. The only missing step is the unnesting of the arrays containing most dimensions and metrics. This can be done in further transformations, which is ok for my use case. Nevertheless, the custom schema changes the workflow compared to other source connectors somewhat. As the configured catalog needs to be generated after a first message is fetched using the custom schema. Anyway, I'm fine to continue for now. |
Beta Was this translation helpful? Give feedback.
-
Sent request about sandbox account (https://business.yougov.com/thank-you-contact?marketo=contact) |
Beta Was this translation helpful? Give feedback.
-
There is the problem with account: Sent letter to the support https://business.yougov.com/thank-you-contact. |
Beta Was this translation helpful? Give feedback.
-
Sent request to https://business.yougov.com/thank-you-contact?marketo=contact with request_id=1565930640 |
Beta Was this translation helpful? Give feedback.
-
Tell us about the new connector you’d like to have
Describe the context around this new connector
/v1/analyses/execute
endpoint.Describe the alternative you are considering or using
Manual Excel file downloads and integrations.
Are you willing to submit a PR?
Yes.
Beta Was this translation helpful? Give feedback.
All reactions