require "gcloud" gcloud = Gcloud.new bigquery = gcloud.bigquery sql = "SELECT TOP(word, 50) as word, COUNT(*) as count " + "FROM publicdata:samples.shakespeare" job = bigquery.query_job sql job.wait_until_done! if !job.failed? job.query_results.each do |row| puts row["word"] end end
0 件のコメント :
コメントを投稿