Class: Aws::Athena::Types::QueryExecutionStatus

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-athena/lib/aws-sdk-athena/types.rb

Overview

The completion date, current state, submission time, and state change reason (if applicable) for the query execution.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#athena_error ⇒ Types::AthenaError

Provides information about an Athena query error.

Returns:



3917
3918
3919
3920
3921
3922
3923
3924
3925
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/types.rb', line 3917

class QueryExecutionStatus < Struct.new(
  :state,
  :state_change_reason,
  :submission_date_time,
  :completion_date_time,
  :athena_error)
  SENSITIVE = []
  include Aws::Structure
end

#completion_date_time ⇒ Time

The date and time that the query completed.

Returns:

  • (Time)


3917
3918
3919
3920
3921
3922
3923
3924
3925
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/types.rb', line 3917

class QueryExecutionStatus < Struct.new(
  :state,
  :state_change_reason,
  :submission_date_time,
  :completion_date_time,
  :athena_error)
  SENSITIVE = []
  include Aws::Structure
end

#state ⇒ String

The state of query execution. QUEUED indicates that the query has been submitted to the service, and Athena will execute the query as soon as resources are available. RUNNING indicates that the query is in execution phase. SUCCEEDED indicates that the query completed without errors. FAILED indicates that the query experienced an error and did not complete processing. CANCELLED indicates that a user input interrupted query execution.

For queries that experience certain transient errors, the state transitions from RUNNING back to QUEUED. The FAILED state is always terminal with no automatic retry.

Returns:

  • (String)


3917
3918
3919
3920
3921
3922
3923
3924
3925
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/types.rb', line 3917

class QueryExecutionStatus < Struct.new(
  :state,
  :state_change_reason,
  :submission_date_time,
  :completion_date_time,
  :athena_error)
  SENSITIVE = []
  include Aws::Structure
end

#state_change_reason ⇒ String

Further detail about the status of the query.

Returns:

  • (String)


3917
3918
3919
3920
3921
3922
3923
3924
3925
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/types.rb', line 3917

class QueryExecutionStatus < Struct.new(
  :state,
  :state_change_reason,
  :submission_date_time,
  :completion_date_time,
  :athena_error)
  SENSITIVE = []
  include Aws::Structure
end

#submission_date_time ⇒ Time

The date and time that the query was submitted.

Returns:

  • (Time)


3917
3918
3919
3920
3921
3922
3923
3924
3925
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/types.rb', line 3917

class QueryExecutionStatus < Struct.new(
  :state,
  :state_change_reason,
  :submission_date_time,
  :completion_date_time,
  :athena_error)
  SENSITIVE = []
  include Aws::Structure
end