Class: Google::Cloud::Bigquery::QueryJob::Step

Inherits:
Object
  • Object
show all
Defined in:
lib/google/cloud/bigquery/query_job.rb

Overview

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

Examples:

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

Instance Attribute Summary collapse

Instance Attribute Details

#kindString (readonly)

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

Returns:

  • (String)

    the current value of kind



433
434
435
# File 'lib/google/cloud/bigquery/query_job.rb', line 433

def kind
  @kind
end

#substepsArray<String> (readonly)

Human-readable stage descriptions.

Returns:

  • (Array<String>)

    the current value of substeps



433
434
435
# File 'lib/google/cloud/bigquery/query_job.rb', line 433

def substeps
  @substeps
end