class Google::Cloud::Bigquery::Job::ScriptStatistics


end
end
puts stack_frame.text
script_statistics.stack_frames.each do |stack_frame|
puts script_statistics.evaluation_kind
script_statistics = child_job.script_statistics
child_jobs.each do |child_job|
child_jobs = bigquery.jobs parent_job: job
job.wait_until_done!
job = bigquery.query_job multi_statement_sql
SQL
);
FROM ‘bigquery-public-data.samples.shakespeare`
SELECT word
WHERE name IN (
FROM UNNEST(top_names) AS name
name AS shakespeare_name
SELECT
– Which names appear as words in Shakespeare’s plays?
);
WHERE year = 2017
FROM ‘bigquery-public-data.usa_names.usa_1910_current`
SELECT ARRAY_AGG(name ORDER BY number DESC LIMIT 100)
SET top_names = (
– Build an array of the top 100 names from the year 2017.
DECLARE top_names ARRAY<STRING>;
– Declare a variable to hold names as an array.
multi_statement_sql = <<~SQL
bigquery = Google::Cloud::Bigquery.new
require “google/cloud/bigquery”
@example
the current evaluation happened. The leaf frame is first, the primary script is last.
current evaluation happened. Shows line/column/procedure name of each frame on the stack at the point where
@attr_reader [Array<Google::Cloud::Bigquery::Job::ScriptStackFrame>] stack_frames Stack trace where the
`EXPRESSION`.
@attr_reader [String] evaluation_kind Indicates the type of child job. Possible values include `STATEMENT` and
Represents statistics for a child job of a script.
#

def self.from_gapi gapi

Other tags:
    Private: - New ScriptStatistics from a statistics.script_statistics value.
def self.from_gapi gapi
  frames = Array(gapi.stack_frames).map { |g| ScriptStackFrame.from_gapi g }
  new gapi.evaluation_kind, frames
end

def initialize evaluation_kind, stack_frames

Other tags:
    Private: - Creates a new ScriptStatistics instance.
def initialize evaluation_kind, stack_frames
  @evaluation_kind = evaluation_kind
  @stack_frames = stack_frames
end