Created
January 25, 2017 03:33
-
-
Save ByoungInKim/56b55219604c3b804d3296ab530fc809 to your computer and use it in GitHub Desktop.
BigQeury - get partition table and table row count
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
-- strandard SQL | |
-- normal table | |
SELECT COUNT(*) `project_id.data_set.table_name` | |
-- partition table | |
SELECT COUNT(*) `project_id.data_set.table_name` Where _PARTITIONTIME = '2017-01-02' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment