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.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#compatibility_context ⇒ Types::CompatibilityContext

For a query that ran on DuckDB as part of a compatibility validation, identifies the original query that it was translated from.



3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/types.rb', line 3951

class QueryExecution < Struct.new(
  :query_execution_id,
  :query,
  :statement_type,
  :managed_query_results_configuration,
  :result_configuration,
  :result_reuse_configuration,
  :query_execution_context,
  :status,
  :statistics,
  :work_group,
  :engine_version,
  :execution_parameters,
  :substatement_type,
  :query_results_s3_access_grants_configuration,
  :engine_configuration,
  :compatibility_result,
  :compatibility_context)
  SENSITIVE = []
  include Aws::Structure
end

#compatibility_result ⇒ Types::CompatibilityResult

The result of translating this query to DuckDB, and of validating the translated query, if performed. Returned only for queries in the SUCCEEDED state.



3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/types.rb', line 3951

class QueryExecution < Struct.new(
  :query_execution_id,
  :query,
  :statement_type,
  :managed_query_results_configuration,
  :result_configuration,
  :result_reuse_configuration,
  :query_execution_context,
  :status,
  :statistics,
  :work_group,
  :engine_version,
  :execution_parameters,
  :substatement_type,
  :query_results_s3_access_grants_configuration,
  :engine_configuration,
  :compatibility_result,
  :compatibility_context)
  SENSITIVE = []
  include Aws::Structure
end

#engine_configuration ⇒ Types::EngineConfiguration

The effective engine configuration that was applied to the query, such as the minimum and maximum number of DPUs used when the query runs in a capacity reservation.



3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/types.rb', line 3951

class QueryExecution < Struct.new(
  :query_execution_id,
  :query,
  :statement_type,
  :managed_query_results_configuration,
  :result_configuration,
  :result_reuse_configuration,
  :query_execution_context,
  :status,
  :statistics,
  :work_group,
  :engine_version,
  :execution_parameters,
  :substatement_type,
  :query_results_s3_access_grants_configuration,
  :engine_configuration,
  :compatibility_result,
  :compatibility_context)
  SENSITIVE = []
  include Aws::Structure
end

#engine_version ⇒ Types::EngineVersion

The engine version that executed the query.



3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/types.rb', line 3951

class QueryExecution < Struct.new(
  :query_execution_id,
  :query,
  :statement_type,
  :managed_query_results_configuration,
  :result_configuration,
  :result_reuse_configuration,
  :query_execution_context,
  :status,
  :statistics,
  :work_group,
  :engine_version,
  :execution_parameters,
  :substatement_type,
  :query_results_s3_access_grants_configuration,
  :engine_configuration,
  :compatibility_result,
  :compatibility_context)
  SENSITIVE = []
  include Aws::Structure
end

#execution_parameters ⇒ Array<String>

A list of values for the parameters in a query. The values are applied sequentially to the parameters in the query in the order in which the parameters occur. The list of parameters is not returned in the response.

Returns:

  • (Array<String>)


3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/types.rb', line 3951

class QueryExecution < Struct.new(
  :query_execution_id,
  :query,
  :statement_type,
  :managed_query_results_configuration,
  :result_configuration,
  :result_reuse_configuration,
  :query_execution_context,
  :status,
  :statistics,
  :work_group,
  :engine_version,
  :execution_parameters,
  :substatement_type,
  :query_results_s3_access_grants_configuration,
  :engine_configuration,
  :compatibility_result,
  :compatibility_context)
  SENSITIVE = []
  include Aws::Structure
end

#managed_query_results_configuration ⇒ Types::ManagedQueryResultsConfiguration

The configuration for storing results in Athena owned storage, which includes whether this feature is enabled; whether encryption configuration, if any, is used for encrypting query results.



3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/types.rb', line 3951

class QueryExecution < Struct.new(
  :query_execution_id,
  :query,
  :statement_type,
  :managed_query_results_configuration,
  :result_configuration,
  :result_reuse_configuration,
  :query_execution_context,
  :status,
  :statistics,
  :work_group,
  :engine_version,
  :execution_parameters,
  :substatement_type,
  :query_results_s3_access_grants_configuration,
  :engine_configuration,
  :compatibility_result,
  :compatibility_context)
  SENSITIVE = []
  include Aws::Structure
end

#query ⇒ String

The SQL query statements which the query execution ran.

Returns:

  • (String)


3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/types.rb', line 3951

class QueryExecution < Struct.new(
  :query_execution_id,
  :query,
  :statement_type,
  :managed_query_results_configuration,
  :result_configuration,
  :result_reuse_configuration,
  :query_execution_context,
  :status,
  :statistics,
  :work_group,
  :engine_version,
  :execution_parameters,
  :substatement_type,
  :query_results_s3_access_grants_configuration,
  :engine_configuration,
  :compatibility_result,
  :compatibility_context)
  SENSITIVE = []
  include Aws::Structure
end

#query_execution_context ⇒ Types::QueryExecutionContext

The database in which the query execution occurred.



3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/types.rb', line 3951

class QueryExecution < Struct.new(
  :query_execution_id,
  :query,
  :statement_type,
  :managed_query_results_configuration,
  :result_configuration,
  :result_reuse_configuration,
  :query_execution_context,
  :status,
  :statistics,
  :work_group,
  :engine_version,
  :execution_parameters,
  :substatement_type,
  :query_results_s3_access_grants_configuration,
  :engine_configuration,
  :compatibility_result,
  :compatibility_context)
  SENSITIVE = []
  include Aws::Structure
end

#query_execution_id ⇒ String

The unique identifier for each query execution.

Returns:

  • (String)


3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/types.rb', line 3951

class QueryExecution < Struct.new(
  :query_execution_id,
  :query,
  :statement_type,
  :managed_query_results_configuration,
  :result_configuration,
  :result_reuse_configuration,
  :query_execution_context,
  :status,
  :statistics,
  :work_group,
  :engine_version,
  :execution_parameters,
  :substatement_type,
  :query_results_s3_access_grants_configuration,
  :engine_configuration,
  :compatibility_result,
  :compatibility_context)
  SENSITIVE = []
  include Aws::Structure
end

#query_results_s3_access_grants_configuration ⇒ Types::QueryResultsS3AccessGrantsConfiguration

Specifies whether Amazon S3 access grants are enabled for query results.



3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/types.rb', line 3951

class QueryExecution < Struct.new(
  :query_execution_id,
  :query,
  :statement_type,
  :managed_query_results_configuration,
  :result_configuration,
  :result_reuse_configuration,
  :query_execution_context,
  :status,
  :statistics,
  :work_group,
  :engine_version,
  :execution_parameters,
  :substatement_type,
  :query_results_s3_access_grants_configuration,
  :engine_configuration,
  :compatibility_result,
  :compatibility_context)
  SENSITIVE = []
  include Aws::Structure
end

#result_configuration ⇒ Types::ResultConfiguration

The location in Amazon S3 where query and calculation results are 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.



3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/types.rb', line 3951

class QueryExecution < Struct.new(
  :query_execution_id,
  :query,
  :statement_type,
  :managed_query_results_configuration,
  :result_configuration,
  :result_reuse_configuration,
  :query_execution_context,
  :status,
  :statistics,
  :work_group,
  :engine_version,
  :execution_parameters,
  :substatement_type,
  :query_results_s3_access_grants_configuration,
  :engine_configuration,
  :compatibility_result,
  :compatibility_context)
  SENSITIVE = []
  include Aws::Structure
end

#result_reuse_configuration ⇒ Types::ResultReuseConfiguration

Specifies the query result reuse behavior that was used for the query.



3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/types.rb', line 3951

class QueryExecution < Struct.new(
  :query_execution_id,
  :query,
  :statement_type,
  :managed_query_results_configuration,
  :result_configuration,
  :result_reuse_configuration,
  :query_execution_context,
  :status,
  :statistics,
  :work_group,
  :engine_version,
  :execution_parameters,
  :substatement_type,
  :query_results_s3_access_grants_configuration,
  :engine_configuration,
  :compatibility_result,
  :compatibility_context)
  SENSITIVE = []
  include Aws::Structure
end

#statement_type ⇒ String

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, EXPLAIN, DESCRIBE, or SHOW TABLES.

Returns:

  • (String)


3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/types.rb', line 3951

class QueryExecution < Struct.new(
  :query_execution_id,
  :query,
  :statement_type,
  :managed_query_results_configuration,
  :result_configuration,
  :result_reuse_configuration,
  :query_execution_context,
  :status,
  :statistics,
  :work_group,
  :engine_version,
  :execution_parameters,
  :substatement_type,
  :query_results_s3_access_grants_configuration,
  :engine_configuration,
  :compatibility_result,
  :compatibility_context)
  SENSITIVE = []
  include Aws::Structure
end

#statistics ⇒ Types::QueryExecutionStatistics

Query execution statistics, such as the amount of data scanned, the amount of time that the query took to process, and the type of statement that was run.



3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/types.rb', line 3951

class QueryExecution < Struct.new(
  :query_execution_id,
  :query,
  :statement_type,
  :managed_query_results_configuration,
  :result_configuration,
  :result_reuse_configuration,
  :query_execution_context,
  :status,
  :statistics,
  :work_group,
  :engine_version,
  :execution_parameters,
  :substatement_type,
  :query_results_s3_access_grants_configuration,
  :engine_configuration,
  :compatibility_result,
  :compatibility_context)
  SENSITIVE = []
  include Aws::Structure
end

#status ⇒ Types::QueryExecutionStatus

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



3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/types.rb', line 3951

class QueryExecution < Struct.new(
  :query_execution_id,
  :query,
  :statement_type,
  :managed_query_results_configuration,
  :result_configuration,
  :result_reuse_configuration,
  :query_execution_context,
  :status,
  :statistics,
  :work_group,
  :engine_version,
  :execution_parameters,
  :substatement_type,
  :query_results_s3_access_grants_configuration,
  :engine_configuration,
  :compatibility_result,
  :compatibility_context)
  SENSITIVE = []
  include Aws::Structure
end

#substatement_type ⇒ String

The kind of query statement that was run.

Returns:

  • (String)


3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/types.rb', line 3951

class QueryExecution < Struct.new(
  :query_execution_id,
  :query,
  :statement_type,
  :managed_query_results_configuration,
  :result_configuration,
  :result_reuse_configuration,
  :query_execution_context,
  :status,
  :statistics,
  :work_group,
  :engine_version,
  :execution_parameters,
  :substatement_type,
  :query_results_s3_access_grants_configuration,
  :engine_configuration,
  :compatibility_result,
  :compatibility_context)
  SENSITIVE = []
  include Aws::Structure
end

#work_group ⇒ String

The name of the workgroup in which the query ran.

Returns:

  • (String)


3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
# File 'gems/aws-sdk-athena/lib/aws-sdk-athena/types.rb', line 3951

class QueryExecution < Struct.new(
  :query_execution_id,
  :query,
  :statement_type,
  :managed_query_results_configuration,
  :result_configuration,
  :result_reuse_configuration,
  :query_execution_context,
  :status,
  :statistics,
  :work_group,
  :engine_version,
  :execution_parameters,
  :substatement_type,
  :query_results_s3_access_grants_configuration,
  :engine_configuration,
  :compatibility_result,
  :compatibility_context)
  SENSITIVE = []
  include Aws::Structure
end