Created
June 13, 2022 01:28
-
-
Save ddikman/f2c35dae747defa218893c762abb7d07 to your computer and use it in GitHub Desktop.
Filtering events in bigquery using partitions
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 | |
count(*) as events | |
FROM `<project-name>.analytics_<id>.events_*` | |
WHERE _TABLE_SUFFIX >= FORMAT_DATE('%Y%m%d', CURRENT_DATE() - 7) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment