I have created a nested table in bigQuery and I would like to insert values into this table.
I know normally we can perform as below:
INSERT INTO `tablename`(webformID,visitID,visitorID,loginID,mycat,country,webformData) VALUES ('1',2,'3','4','5','6',[STRUCT('key2','b'),('k3','c'),('k4','d')])
where webform data is a nested column.
However, in python, how can we do this?
I can create a list as follows: ["STRUCT('key2','b')",('k3','c')] but the 0th index is a problem while trying to insert.
Please advice Thank you