When trying the access a federated source (Google sheets) from BigQuery API, the following error is thrown:
[..]
"errorResult" : {
"location" : "/gdrive/id/<removed_file_id>",
"message" : "Encountered an error while globbing file pattern.",
"reason" : "invalid"
}
[..]
The table in BigQuery is set up to point to this file. It works via the Web UI. It is only when trying to query the table through the API does it then choke with the error above.
I'm guessing it has something to do with permissions. What needs to be done to allow accessing a BigQuery table from the API which is a federated source (pointing to Google Sheets)?