BigQuery - adapter.get_relation() not finding a table that exists

The problem I’m having

BigQuery adapter.get_relation() not finding a table. When checking the manifest the project and data locations all match expected, and there are no casing issues.

The context of why I’m trying to do this

I’m unable to add a comment to the existing thread, but I figured I’d post here just incase anyone else comes across this problem.

The issue/solution:

The issue was happening in some environments for us, but we were unable to reproduce it at will. After significant digging, we noticed this line in the big-query adapter. We were not cleaning up our test runs, and in an enterprise setting across many many pipeline executions we had >100k tables in our elementary schema and in that situation the request fails silently as the adapter assumes that all tables exist in the cache.

Hope this helps someone, it took us way to long to hunt down.