You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::Athena::Types::QueryExecution

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

Overview

Information about a single instance of a query execution.

Instance Attribute Summary collapse

Instance Attribute Details

#queryString

The SQL query statements which the query execution ran.

Returns:

  • (String)


821
822
823
824
825
826
827
828
829
830
831
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/types.rb', line 821

class QueryExecution < Struct.new(
  :query_execution_id,
  :query,
  :statement_type,
  :result_configuration,
  :query_execution_context,
  :status,
  :statistics,
  :work_group)
  include Aws::Structure
end

#query_execution_contextTypes::QueryExecutionContext

The database in which the query execution occurred.



821
822
823
824
825
826
827
828
829
830
831
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/types.rb', line 821

class QueryExecution < Struct.new(
  :query_execution_id,
  :query,
  :statement_type,
  :result_configuration,
  :query_execution_context,
  :status,
  :statistics,
  :work_group)
  include Aws::Structure
end

#query_execution_idString

The unique identifier for each query execution.

Returns:

  • (String)


821
822
823
824
825
826
827
828
829
830
831
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/types.rb', line 821

class QueryExecution < Struct.new(
  :query_execution_id,
  :query,
  :statement_type,
  :result_configuration,
  :query_execution_context,
  :status,
  :statistics,
  :work_group)
  include Aws::Structure
end

#result_configurationTypes::ResultConfiguration

The location in Amazon S3 where query results were stored and the encryption option, if any, used for query results. These are known as "client-side settings". If workgroup settings override client-side settings, then the query uses the location for the query results and the encryption configuration that are specified for the workgroup.



821
822
823
824
825
826
827
828
829
830
831
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/types.rb', line 821

class QueryExecution < Struct.new(
  :query_execution_id,
  :query,
  :statement_type,
  :result_configuration,
  :query_execution_context,
  :status,
  :statistics,
  :work_group)
  include Aws::Structure
end

#statement_typeString

The type of query statement that was run. DDL indicates DDL query statements. DML indicates DML (Data Manipulation Language) query statements, such as CREATE TABLE AS SELECT. UTILITY indicates query statements other than DDL and DML, such as SHOW CREATE TABLE, or DESCRIBE <table>.

Returns:

  • (String)


821
822
823
824
825
826
827
828
829
830
831
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/types.rb', line 821

class QueryExecution < Struct.new(
  :query_execution_id,
  :query,
  :statement_type,
  :result_configuration,
  :query_execution_context,
  :status,
  :statistics,
  :work_group)
  include Aws::Structure
end

#statisticsTypes::QueryExecutionStatistics

The location of a manifest file that tracks file locations generated by the query, the amount of data scanned by the query, and the amount of time that it took the query to run.



821
822
823
824
825
826
827
828
829
830
831
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/types.rb', line 821

class QueryExecution < Struct.new(
  :query_execution_id,
  :query,
  :statement_type,
  :result_configuration,
  :query_execution_context,
  :status,
  :statistics,
  :work_group)
  include Aws::Structure
end

#statusTypes::QueryExecutionStatus

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



821
822
823
824
825
826
827
828
829
830
831
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/types.rb', line 821

class QueryExecution < Struct.new(
  :query_execution_id,
  :query,
  :statement_type,
  :result_configuration,
  :query_execution_context,
  :status,
  :statistics,
  :work_group)
  include Aws::Structure
end

#work_groupString

The name of the workgroup in which the query ran.

Returns:

  • (String)


821
822
823
824
825
826
827
828
829
830
831
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/types.rb', line 821

class QueryExecution < Struct.new(
  :query_execution_id,
  :query,
  :statement_type,
  :result_configuration,
  :query_execution_context,
  :status,
  :statistics,
  :work_group)
  include Aws::Structure
end