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

Attributes 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



838
839
840
# File 'lib/google/cloud/bigquery/query_job.rb', line 838

def kind
  @kind
end

#substepsArray<String> (readonly)

Human-readable stage descriptions.

Returns:

  • (Array<String>)

    the current value of substeps



838
839
840
# File 'lib/google/cloud/bigquery/query_job.rb', line 838

def substeps
  @substeps
end