Skip to content

Instantly share code, notes, and snippets.

@hadoopsters
Created February 4, 2018 17:19
Show Gist options
  • Save hadoopsters/ded35125ac98dfe3477fc77f9d664cd8 to your computer and use it in GitHub Desktop.
Save hadoopsters/ded35125ac98dfe3477fc77f9d664cd8 to your computer and use it in GitHub Desktop.
select * from my_table
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