Hi all,
Im trying to fetch data from an existing view in BigQuery. From what I can read online, you cannot fetch data from a view using tabledata.list directly. You need to materialize the view into a table before you can use tabledata.list.
So what I am want to do is use bigquery.jobs.query to create a temp table based of a view, and then use tabledata.list. However, I cannot seem to get the bigquery.jobs.query to work.
The query im using is this:
"CREATE TEMP TABLE NewTable_ExistingView
AS
SELECT * FROM `ProjectID.DatasetID.ViewID`"
Input parameters for the API:
How the webservice is setup. Haven't changed anything after importing the skill.
API Request:
And the error I'm getting (shortened) :
HTTP Status Code: 400
"message": "Invalid JSON payload received. Unexpected token.\n\n\"queryParameters\": ,\r\n\"useLegacySql\": \"\n ^",
From my understanding "useLegacySql" is set to true as default, meaning that "queryParameters" is uncessary as it is only used with standardSQL?
Any help is greatly appreciated.
Br,
Seb