-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AttributeError: 'list' object has no attribute 'upper' #115
Comments
Yes. Same here. Same independent diagnosis. The BQ target doesn't like "properties_versions" because properties is already an object (STRUCT) and then versions comes along. I think it might be a problem with target-bigquery implementation from @saidtezel, but I am still poking around in the code that decomposes a struct to a struct_gut-of-struct in target_bigquery.py. |
@doody-doody Could you paste the error code you receive while using my BQ repo? I'll have a look. |
Of course (and thank you for your BigQuery target! And your awesome blog posts on using this target in k8s - https://saidtezel.com/ga-bigquery-replication-part-1). Error is:
I have attached the two files in the invocation: System is Ubuntu Linux + Python 3.6 (but I suspect this is a code issue). Thanks again for looking at this. |
@git243 & @doody-doody did you manage to find a solution? |
Yes, I fixed it by writing another Python script to flatten the elements in the nested arrays. |
@git243 is it possible to share your script and method with us? I have tried to use target-csv instead of target-bigquery and have the same problem (csv file is corrupt with empty columns and data in other columns) so probably due to the same kind of problem. |
@git243 Good idea! Why did I not think of that!? That is much simpler than trying to fix it in @saidtezel's code. If you are happy to share, I also would appreciate your script (thank you). |
Hello @doody-doody , have you got any response from @saidtezel to resolve this issue? Or have you figured it out? I met exactly the same question as yours. I used tap-facebook and target-bigquery. |
I am going tap-hubspot to target-bigquery, and after everything set-up and run the tap and target in separate virtual environment, the stated error above is prompted. After reviewing, I believe this is because array of array is extracted. Below is the example of data I extracted into csv.
Any solution to solve this problem?
[{'deleted-changed-timestamp': '1970-01-01T00:00:00.000000Z', 'saved-at-timestamp': '2020-03-26T06:05:56.130000Z', 'vid': 301, 'identities': [{'type': 'EMAIL', 'value': '[email protected]', 'timestamp': '2020-03-26T06:05:56.104000Z'}, {'type': 'LEAD_GUID', 'value': 'c985e285-2c5a-40c7-a81f-bd4679bcc881', 'timestamp': '2020-03-26T06:05:56.125000Z'}]}]
The text was updated successfully, but these errors were encountered: