Last active
October 6, 2016 18:37
-
-
Save lakshmanok/43d4acac0dde31a7a042a7e0a2bf8fa8 to your computer and use it in GitHub Desktop.
Repeatable sampling in BigQuery
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 | |
date, | |
airline, | |
departure_airport, | |
departure_schedule, | |
arrival_airport, | |
arrival_delay | |
FROM | |
[bigquery-samples:airline_ontime_data.flights] | |
WHERE | |
ABS(HASH(date)) % 10 < 8 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment