Skip to content

Instantly share code, notes, and snippets.

@ByoungInKim
Created January 25, 2017 03:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ByoungInKim/56b55219604c3b804d3296ab530fc809 to your computer and use it in GitHub Desktop.
Save ByoungInKim/56b55219604c3b804d3296ab530fc809 to your computer and use it in GitHub Desktop.
BigQeury - get partition table and table row count
-- 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