Skip to content

Instantly share code, notes, and snippets.

@lakshmanok
Last active October 6, 2016 18:43
Show Gist options
  • Save lakshmanok/13e099c064fa2d5656b134a6a291d5e6 to your computer and use it in GitHub Desktop.
Save lakshmanok/13e099c064fa2d5656b134a6a291d5e6 to your computer and use it in GitHub Desktop.
SELECT
date,
airline,
departure_airport,
departure_schedule,
arrival_airport,
arrival_delay
FROM
[bigquery-samples:airline_ontime_data.flights]
WHERE
ABS(HASH(date))%70 == 0 AND ABS(HASH(date)) % 10 < 8
@lakshmanok
Copy link
Author

To be clear, this is wrong sampling. It doesn't work. Please don't use this as a sample!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment