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 publicdata.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



431
432
433
# File 'lib/google/cloud/bigquery/query_job.rb', line 431

def kind
  @kind
end

#substepsArray<String> (readonly)

Human-readable stage descriptions.

Returns:

  • (Array<String>)

    the current value of substeps



431
432
433
# File 'lib/google/cloud/bigquery/query_job.rb', line 431

def substeps
  @substeps
end