View Source GoogleApi.BigQuery.V2.Model.QueryResponse (google_api_big_query v0.79.0)

Attributes

  • cacheHit (type: boolean(), default: nil) - Whether the query result was fetched from the query cache.
  • dmlStats (type: GoogleApi.BigQuery.V2.Model.DmlStatistics.t, default: nil) - Output only. Detailed statistics for DML statements INSERT, UPDATE, DELETE, MERGE or TRUNCATE.
  • errors (type: list(GoogleApi.BigQuery.V2.Model.ErrorProto.t), default: nil) - Output only. The first errors or warnings encountered during the running of the job. The final message includes the number of errors that caused the process to stop. Errors here do not necessarily mean that the job has completed or was unsuccessful. For more information about error messages, see Error messages.
  • jobComplete (type: boolean(), default: nil) - Whether the query has completed or not. If rows or totalRows are present, this will always be true. If this is false, totalRows will not be available.
  • jobCreationReason (type: GoogleApi.BigQuery.V2.Model.JobCreationReason.t, default: nil) - Optional. Only relevant when a job_reference is present in the response. If job_reference is not present it will always be unset. When job_reference is present, this field should be interpreted as follows: If set, it will provide the reason of why a Job was created. If not set, it should be treated as the default: REQUESTED. This feature is not yet available. Jobs will always be created.
  • jobReference (type: GoogleApi.BigQuery.V2.Model.JobReference.t, default: nil) - Reference to the Job that was created to run the query. This field will be present even if the original request timed out, in which case GetQueryResults can be used to read the results once the query has completed. Since this API only returns the first page of results, subsequent pages can be fetched via the same mechanism (GetQueryResults).
  • kind (type: String.t, default: bigquery#queryResponse) - The resource type.
  • numDmlAffectedRows (type: String.t, default: nil) - Output only. The number of rows affected by a DML statement. Present only for DML statements INSERT, UPDATE or DELETE.
  • pageToken (type: String.t, default: nil) - A token used for paging results. A non-empty token indicates that additional results are available. To see additional results, query the jobs.getQueryResults method. For more information, see Paging through table data.
  • queryId (type: String.t, default: nil) - Query ID for the completed query. This ID will be auto-generated. This field is not yet available and it is currently not guaranteed to be populated.
  • rows (type: list(GoogleApi.BigQuery.V2.Model.TableRow.t), default: nil) - An object with as many results as can be contained within the maximum permitted reply size. To get any additional rows, you can call GetQueryResults and specify the jobReference returned above.
  • schema (type: GoogleApi.BigQuery.V2.Model.TableSchema.t, default: nil) - The schema of the results. Present only when the query completes successfully.
  • sessionInfo (type: GoogleApi.BigQuery.V2.Model.SessionInfo.t, default: nil) - Output only. Information of the session if this job is part of one.
  • totalBytesProcessed (type: String.t, default: nil) - The total number of bytes processed for this query. If this query was a dry run, this is the number of bytes that would be processed if the query were run.
  • totalRows (type: String.t, default: nil) - The total number of rows in the complete query result set, which can be more than the number of rows in this single page of results.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.BigQuery.V2.Model.QueryResponse{
  cacheHit: boolean() | nil,
  dmlStats: GoogleApi.BigQuery.V2.Model.DmlStatistics.t() | nil,
  errors: [GoogleApi.BigQuery.V2.Model.ErrorProto.t()] | nil,
  jobComplete: boolean() | nil,
  jobCreationReason: GoogleApi.BigQuery.V2.Model.JobCreationReason.t() | nil,
  jobReference: GoogleApi.BigQuery.V2.Model.JobReference.t() | nil,
  kind: String.t() | nil,
  numDmlAffectedRows: String.t() | nil,
  pageToken: String.t() | nil,
  queryId: String.t() | nil,
  rows: [GoogleApi.BigQuery.V2.Model.TableRow.t()] | nil,
  schema: GoogleApi.BigQuery.V2.Model.TableSchema.t() | nil,
  sessionInfo: GoogleApi.BigQuery.V2.Model.SessionInfo.t() | nil,
  totalBytesProcessed: String.t() | nil,
  totalRows: String.t() | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.