Skip to content
This repository has been archived by the owner on Jan 2, 2025. It is now read-only.

BigQuery column names schema should be "dimension" not "cd" for Data Import Destination. #122

Open
gibrano opened this issue Nov 10, 2022 · 0 comments

Comments

@gibrano
Copy link

gibrano commented Nov 10, 2022

Hi Guys, I'm using megalista to upload some audiences from bigquery to google analytics data import.

Right now you're checking the column names in the data source in bigquery with the schema 'cd\d+', but it doesn't work when we upload the data into google analytics, since the data import only accept 'dimension\d+' schema.

So, my recommendation is to change in the script megalista_dataflow/data_sources/data_source.py, the line:

'GA_DATA_IMPORT': {
    'columns': [
        {'name': 'cd\\d+', 'required': True, 'data_type': 'string'},
        {'name': 'cd\\d+', 'required': True, 'data_type': 'string'},
        {'name': 'cd\\d+', 'required': False, 'data_type': 'string'},
    ],
    'groups': []
},

for:

'GA_DATA_IMPORT': {
    'columns': [
        {'name': 'dimension\\d+', 'required': True, 'data_type': 'string'},
        {'name': 'dimension\\d+', 'required': True, 'data_type': 'string'},
        {'name': 'dimension\\d+', 'required': False, 'data_type': 'string'},
    ],
    'groups': []
},

Best,

Gibran

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant