I have two tables table1 (complex one with repeated/record columns) and table2 (fairly simple). I am trying to create a new table with all columns from table1 with one column from table2 using the following query:
select t1.id, t1.experience.desc, t1.experience.organization.*, t1.experience.department, t2.field2 as t1.experience.organization.newfield, t1.family_name
from [so_public.table1] as t1 left join each [so_public.table2] as t2
on t1.experience.organization.name = t2.field1
I get an error Cannot partition on repeated field as shown in the image below. The schemas of the two tables are also shown in their respective images.
Is there a general rule of thumb here when one wants to merge data from two tables? Is what I am trying to do at all possible?
The actual tables are much more complex. I am only showing enough context that reproduces the issue.


