You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 16, 2026. It is now read-only.
I need to create a join of 2 BQ tables where one of them has an id field that has to be compared with the record id in the repeated field (array of records) of another one. I'm struggling with SQLAlchemy implementation of the SQL query that works fine. Tried to solve this problem in different ways, but nothing was successful, most relevant and similar to sql-like solution below. Probably, there are some troubles with sqlalchemy interpretation of SQL queries or result fetch either, aren't?
I need to create a join of 2 BQ tables where one of them has an
idfield that has to be compared with the record id in the repeated field (array of records) of another one. I'm struggling with SQLAlchemy implementation of the SQL query that works fine. Tried to solve this problem in different ways, but nothing was successful, most relevant and similar to sql-like solution below. Probably, there are some troubles with sqlalchemy interpretation of SQL queries or result fetch either, aren't?Environment details
google-cloud-bigqueryversion: 2.22.1Steps to reproduce
Create the BQ table
Mockwith fields:mock_id| type:STRING| mode:NULLABLECreate the BQ table
AnotherMockwith fields:objects| type:RECORD| mode:REPEATEDobject_id| type:STRING| mode:NULLABLERun code below (It gonna fail).
Run SQL below (it gonna success).
SQL example
Code example
Stack trace
AttributeError: 'Comparator' object has no attribute 'object_id'