Enum mz_coord::CoordError
source · [−]pub enum CoordError {
Show 42 variants
Catalog(Error),
ChangedPlan,
ConstrainedParameter {
parameter: &'static (dyn Var + Send + Sync),
value: String,
valid_values: Option<Vec<&'static str>>,
},
DuplicateCursor(String),
Eval(EvalError),
FixedValueParameter(&'static (dyn Var + Send + Sync)),
IdExhaustionError,
Internal(String),
IntrospectionDisabled {
log_names: Vec<String>,
},
InvalidParameterType(&'static (dyn Var + Send + Sync)),
InvalidParameterValue {
parameter: &'static (dyn Var + Send + Sync),
value: String,
reason: String,
},
InvalidClusterReplicaAz {
az: String,
expected: Vec<String>,
},
InvalidClusterReplicaSize {
size: String,
expected: Vec<String>,
},
InvalidTableMutationSelection,
ConstraintViolation(NotNullViolation),
NoClusterReplicasAvailable(String),
OperationProhibitsTransaction(String),
OperationRequiresTransaction(String),
PlanError(PlanError),
PreparedStatementExists(String),
QGM(QGMError),
ReadOnlyTransaction,
ReadOnlyParameter(&'static (dyn Var + Send + Sync)),
RecursionLimit(RecursionLimitError),
RelationOutsideTimeDomain {
relations: Vec<String>,
names: Vec<String>,
},
SafeModeViolation(String),
StatementTimeout,
SqlCatalog(CatalogError),
TailOnlyTransaction,
Transform(TransformError),
UncallableFunction {
func: UnmaterializableFunc,
context: &'static str,
},
UnknownCursor(String),
UnknownLoginRole(String),
UnknownParameter(String),
UnknownPreparedStatement(String),
UnknownClusterReplica {
cluster_name: String,
replica_name: String,
},
Unstructured(Error),
Unsupported(&'static str),
UnmaterializableFunction(UnmaterializableFunc),
UntargetedLogRead {
log_names: Vec<String>,
},
WriteOnlyTransaction,
MultiTableWriteTransaction,
}
Expand description
Errors that can occur in the coordinator.
Variants
Catalog(Error)
An error occurred in a catalog operation.
ChangedPlan
The cached plan or descriptor changed.
ConstrainedParameter
Fields
value: String
The specified session parameter is constrained to a finite set of values.
DuplicateCursor(String)
The cursor already exists.
Eval(EvalError)
An error while evaluating an expression.
FixedValueParameter(&'static (dyn Var + Send + Sync))
The specified parameter is fixed to a single specific value.
IdExhaustionError
The ID allocator exhausted all valid IDs.
Internal(String)
Unexpected internal state was encountered.
IntrospectionDisabled
Attempted to read from log sources on a cluster with disabled introspection.
InvalidParameterType(&'static (dyn Var + Send + Sync))
The value for the specified parameter does not have the right type.
InvalidParameterValue
The value of the specified parameter is incorrect
InvalidClusterReplicaAz
No such cluster replica size has been configured.
InvalidClusterReplicaSize
No such cluster replica size has been configured.
InvalidTableMutationSelection
The selection value for a table mutation operation refers to an invalid object.
ConstraintViolation(NotNullViolation)
Expression violated a column’s constraint
NoClusterReplicasAvailable(String)
Target cluster has no replicas to service query.
OperationProhibitsTransaction(String)
The named operation cannot be run in a transaction.
OperationRequiresTransaction(String)
The named operation requires an active transaction.
PlanError(PlanError)
An error occurred while planning the statement.
PreparedStatementExists(String)
The named prepared statement already exists.
QGM(QGMError)
An error occurred in the QGM stage of the optimizer.
ReadOnlyTransaction
The transaction is in read-only mode.
ReadOnlyParameter(&'static (dyn Var + Send + Sync))
The specified session parameter is read-only.
RecursionLimit(RecursionLimitError)
The recursion limit of some operation was exceeded.
RelationOutsideTimeDomain
A query in a transaction referenced a relation outside the first query’s time domain.
SafeModeViolation(String)
The specified feature is not permitted in safe mode.
StatementTimeout
Waiting on a query timed out.
Note this differs slightly from PG’s implementation/semantics.
SqlCatalog(CatalogError)
An error occurred in a SQL catalog operation.
TailOnlyTransaction
The transaction is in single-tail mode.
Transform(TransformError)
An error occurred in the MIR stage of the optimizer.
UncallableFunction
The specified function cannot be called
UnknownCursor(String)
The named cursor does not exist.
UnknownLoginRole(String)
The named role does not exist.
UnknownParameter(String)
The named parameter is unknown to the system.
UnknownPreparedStatement(String)
UnknownClusterReplica
The named cluster replica does not exist.
Unstructured(Error)
A generic error occurred.
Unsupported(&'static str)
The named feature is not supported and will (probably) not be.
UnmaterializableFunction(UnmaterializableFunc)
The specified function cannot be materialized.
UntargetedLogRead
Attempted to read from log sources without selecting a target replica.
WriteOnlyTransaction
The transaction is in write-only mode.
MultiTableWriteTransaction
The transaction only supports single table writes
Implementations
Trait Implementations
sourceimpl Debug for CoordError
impl Debug for CoordError
sourceimpl Display for CoordError
impl Display for CoordError
sourceimpl Error for CoordError
impl Error for CoordError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl From<CatalogError> for CoordError
impl From<CatalogError> for CoordError
sourcefn from(e: CatalogError) -> CoordError
fn from(e: CatalogError) -> CoordError
Converts to this type from the input type.
sourceimpl From<Error> for CoordError
impl From<Error> for CoordError
sourcefn from(e: Error) -> CoordError
fn from(e: Error) -> CoordError
Converts to this type from the input type.
sourceimpl From<Error> for CoordError
impl From<Error> for CoordError
sourcefn from(e: Error) -> CoordError
fn from(e: Error) -> CoordError
Converts to this type from the input type.
sourceimpl From<EvalError> for CoordError
impl From<EvalError> for CoordError
sourcefn from(e: EvalError) -> CoordError
fn from(e: EvalError) -> CoordError
Converts to this type from the input type.
sourceimpl From<NotNullViolation> for CoordError
impl From<NotNullViolation> for CoordError
sourcefn from(e: NotNullViolation) -> CoordError
fn from(e: NotNullViolation) -> CoordError
Converts to this type from the input type.
sourceimpl From<PlanError> for CoordError
impl From<PlanError> for CoordError
sourcefn from(e: PlanError) -> CoordError
fn from(e: PlanError) -> CoordError
Converts to this type from the input type.
sourceimpl From<QGMError> for CoordError
impl From<QGMError> for CoordError
sourcefn from(e: QGMError) -> CoordError
fn from(e: QGMError) -> CoordError
Converts to this type from the input type.
sourceimpl From<RecursionLimitError> for CoordError
impl From<RecursionLimitError> for CoordError
sourcefn from(e: RecursionLimitError) -> CoordError
fn from(e: RecursionLimitError) -> CoordError
Converts to this type from the input type.
sourceimpl From<RecvError> for CoordError
impl From<RecvError> for CoordError
sourcefn from(e: RecvError) -> CoordError
fn from(e: RecvError) -> CoordError
Converts to this type from the input type.
sourceimpl From<TransformError> for CoordError
impl From<TransformError> for CoordError
sourcefn from(e: TransformError) -> CoordError
fn from(e: TransformError) -> CoordError
Converts to this type from the input type.
sourceimpl From<TryFromDecimalError> for CoordError
impl From<TryFromDecimalError> for CoordError
sourcefn from(e: TryFromDecimalError) -> CoordError
fn from(e: TryFromDecimalError) -> CoordError
Converts to this type from the input type.
sourceimpl From<TryFromIntError> for CoordError
impl From<TryFromIntError> for CoordError
sourcefn from(e: TryFromIntError) -> CoordError
fn from(e: TryFromIntError) -> CoordError
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for CoordError
impl Send for CoordError
impl Sync for CoordError
impl Unpin for CoordError
impl !UnwindSafe for CoordError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> DisplayExt for T where
T: Display,
impl<T> DisplayExt for T where
T: Display,
sourcefn to_string_alt(&self) -> String
fn to_string_alt(&self) -> String
Formats an object with the “alternative” format ({:#}
) and returns it.
sourceimpl<T> FutureExt for T
impl<T> FutureExt for T
sourcefn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
sourcefn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
sourcefn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message T
in a tonic::Request
sourceimpl<P, R> ProtoType<R> for P where
R: RustType<P>,
impl<P, R> ProtoType<R> for P where
R: RustType<P>,
sourcefn into_rust(self) -> Result<R, TryFromProtoError>
fn into_rust(self) -> Result<R, TryFromProtoError>
See RustType::from_proto
.
sourcefn from_rust(rust: &R) -> P
fn from_rust(rust: &R) -> P
See RustType::into_proto
.
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more