Created
September 14, 2022 13:23
-
-
Save paveljasek/5dd2a16be36e3e20f52362017b8d00ca to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select table_id, round(sum(size_bytes)/(1024*1024*1024),2) as size_GB | |
FROM `PROJECT.DATASET.__TABLES__` | |
group by table_id | |
union all | |
select table_id, round(sum(size_bytes)/(1024*1024*1024),2) as size_GB | |
FROM `PROJECT.DATASET.__TABLES__` | |
group by table_id |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment