BigQuery API - Class Google::Cloud::Bigquery::QueryJob::Step (v1.44.1)

Reference documentation and code samples for the BigQuery API class Google::Cloud::Bigquery::QueryJob::Step.

Represents an operation in a stage in the execution plan for the query.

Inherits

  • Object

Example

require "google/cloud/bigquery"

bigquery = Google::Cloud::Bigquery.new

sql = "SELECT word FROM `bigquery-public-data.samples.shakespeare`"
job = bigquery.query_job sql

job.wait_until_done!

stages = job.query_plan
stages.each do |stage|
  puts stage.name
  stage.steps.each do |step|
    puts step.kind
    puts step.substeps.inspect
  end
end

Methods

#kind

def kind() -> String

Machine-readable operation type. For a full list of operation types, see Steps metadata.

Returns
  • (String) — the current value of kind

#substeps

def substeps() -> Array<String>

Human-readable stage descriptions.

Returns
  • (Array<String>) — the current value of substeps