When trying the access a federated source (Google sheets) from BigQuery API, the following error is thrown:
[..]
\"errorResult\" : {
\"location\" : \"
There are 3 steps to follow when allowing the API to query a federated table in BigQuery - which is pointing to a file in Drive i.e. Google Sheets.
Two of the steps are documented here (I was missing the 2nd one - adding the Drive scope). The last one is the add the associated service account email that is being used to access the API to the file itself.
<project-id>-<fingerprint-hash>@developer.gserviceaccount.com
. "View" permission is enough.