I am trying to use the Google Datalab - BigQuery magic command to insert data into a BigQuery table via the datalab notebook. When I run this code it works fine with the data appearing in the table correctly;
INSERT mydataset.sampletable (word, count)
VALUES('testing', 7)
However, I would like to have the string 'testing' and number 7 in their own variables, which I would then insert into BQ. I have set:
test = 'testing'
size = 7
and then I try to run
%%bq query
INSERT mydataset.sampletable (word, count)
VALUES (test, size)
This results in an error message: "invalidQuery: Unrecognized name: test at [2:9]" How can I go about utilizing my variables within an SQL function?
Thanks,
