Best way to create randomly assigned partitions in Google BigQuery
问题 I have a BigQuery table that is not randomly sorted. The IDs are also not random. I would like to partition the data into chunks based on a random number, so that I can use those chunks for various parts of the project. The solution I have in mind is to add two columns to my table: a randomly generated number, and a partition number. I am following this code snippet on AI Platform Notebooks. The only substantive difference is I've changed the query_job line to traintestsplit=""" DECLARE randn