BigQuery check if table exists or not
问题 I'm using C# to dynamically construct a query based on a response from the bigquery api tables endpoint. I'm trying to calculate active users which works, but only if I select every table with .* . My question is quite simple really, is there a way to check if a table exists within BigQuery SQL? 回答1: There are metatables called __TABLES__ and __TABLES_SUMMARY__ You can run a query like: SELECT size_bytes FROM <dataset>.__TABLES__ WHERE table_id='mytablename' The __TABLES__ portion of that