Struct aws_sdk_athena::types::QueryExecutionStatus
source · #[non_exhaustive]pub struct QueryExecutionStatus {
pub state: Option<QueryExecutionState>,
pub state_change_reason: Option<String>,
pub submission_date_time: Option<DateTime>,
pub completion_date_time: Option<DateTime>,
pub athena_error: Option<AthenaError>,
}Expand description
The completion date, current state, submission time, and state change reason (if applicable) for the query execution.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.state: Option<QueryExecutionState>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.
state_change_reason: Option<String>Further detail about the status of the query.
submission_date_time: Option<DateTime>The date and time that the query was submitted.
completion_date_time: Option<DateTime>The date and time that the query completed.
athena_error: Option<AthenaError>Provides information about an Athena query error.
Implementations§
source§impl QueryExecutionStatus
impl QueryExecutionStatus
sourcepub fn state(&self) -> Option<&QueryExecutionState>
pub fn state(&self) -> Option<&QueryExecutionState>
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.
sourcepub fn state_change_reason(&self) -> Option<&str>
pub fn state_change_reason(&self) -> Option<&str>
Further detail about the status of the query.
sourcepub fn submission_date_time(&self) -> Option<&DateTime>
pub fn submission_date_time(&self) -> Option<&DateTime>
The date and time that the query was submitted.
sourcepub fn completion_date_time(&self) -> Option<&DateTime>
pub fn completion_date_time(&self) -> Option<&DateTime>
The date and time that the query completed.
sourcepub fn athena_error(&self) -> Option<&AthenaError>
pub fn athena_error(&self) -> Option<&AthenaError>
Provides information about an Athena query error.
source§impl QueryExecutionStatus
impl QueryExecutionStatus
sourcepub fn builder() -> QueryExecutionStatusBuilder
pub fn builder() -> QueryExecutionStatusBuilder
Creates a new builder-style object to manufacture QueryExecutionStatus.
Trait Implementations§
source§impl Clone for QueryExecutionStatus
impl Clone for QueryExecutionStatus
source§fn clone(&self) -> QueryExecutionStatus
fn clone(&self) -> QueryExecutionStatus
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for QueryExecutionStatus
impl Debug for QueryExecutionStatus
source§impl PartialEq for QueryExecutionStatus
impl PartialEq for QueryExecutionStatus
source§fn eq(&self, other: &QueryExecutionStatus) -> bool
fn eq(&self, other: &QueryExecutionStatus) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for QueryExecutionStatus
Auto Trait Implementations§
impl Freeze for QueryExecutionStatus
impl RefUnwindSafe for QueryExecutionStatus
impl Send for QueryExecutionStatus
impl Sync for QueryExecutionStatus
impl Unpin for QueryExecutionStatus
impl UnwindSafe for QueryExecutionStatus
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more