Skip to content

Instantly share code, notes, and snippets.

@hadoopsters
Created February 4, 2018 17:25
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 hadoopsters/f8c53e2f881826e04f8bb48852f8de42 to your computer and use it in GitHub Desktop.
Save hadoopsters/f8c53e2f881826e04f8bb48852f8de42 to your computer and use it in GitHub Desktop.
select * from my_table
where rand() <= 0.0001
distribute by rand()
sort by rand()
limit 10000;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment