Method: BigQuery::Client::Jobs#get_query_results

Defined in:
lib/big_query/client/jobs.rb

#get_query_results(id, opts = {}) ⇒ Hash

Gets the results of a given job

Parameters:

  • id (Integer)

    job id to fetch

  • options (Hash)

    bigquery opts accepted

Returns:

  • (Hash)

    json api response



32
33
34
35
36
37
# File 'lib/big_query/client/jobs.rb', line 32

def get_query_results(id, opts = {})
  opts['jobId'] ||= id

  api(api_method: @bq.jobs.get_query_results,
      parameters: opts)
end