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_errorTypes::AthenaError

Provides information about an Athena query error.

Returns:



2877
2878
2879
2880
2881
2882
2883
2884
2885
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/types.rb', line 2877

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

#completion_date_timeTime

The date and time that the query completed.

Returns:

  • (Time)


2877
2878
2879
2880
2881
2882
2883
2884
2885
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/types.rb', line 2877

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

#stateString

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.

Athena automatically retries your queries in cases of certain transient errors. As a result, you may see the query state transition from RUNNING or FAILED to QUEUED.

Returns:

  • (String)


2877
2878
2879
2880
2881
2882
2883
2884
2885
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/types.rb', line 2877

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

#state_change_reasonString

Further detail about the status of the query.

Returns:

  • (String)


2877
2878
2879
2880
2881
2882
2883
2884
2885
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/types.rb', line 2877

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

#submission_date_timeTime

The date and time that the query was submitted.

Returns:

  • (Time)


2877
2878
2879
2880
2881
2882
2883
2884
2885
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/types.rb', line 2877

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