We’re using Google BigQuery via the Python API. How would I create a table (new one or overwrite old one) from query results? I reviewed the query documentation, but I didn’t find it useful.
We want to simulate:
“SELEC … INTO …” from ANSI SQL.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can do this by specifying a destination table in the query. You would need to use the
Jobs.insertAPI rather than theJobs.querycall, and you should specifywriteDisposition=WRITE_APPENDand fill out the destination table.Here is what the configuration would look like, if you were using the raw API. If you’re using Python, the Python client should give accessors to these same fields: