pub enum CoordError {
Show 43 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>, }, InvalidRematerialization { base_source: String, existing_indexes: Vec<String>, source_type: RematerializedSourceType, }, 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

parameter: &'static (dyn Var + Send + Sync)
value: String
valid_values: Option<Vec<&'static str>>

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

Fields

log_names: Vec<String>

Attempted to read from log sources on a cluster with disabled introspection.

InvalidRematerialization

Fields

base_source: String
existing_indexes: Vec<String>

Attempted to build a materialization on a source that does not allow multiple materializations

InvalidParameterType(&'static (dyn Var + Send + Sync))

The value for the specified parameter does not have the right type.

InvalidParameterValue

Fields

parameter: &'static (dyn Var + Send + Sync)
value: String
reason: String

The value of the specified parameter is incorrect

InvalidClusterReplicaAz

Fields

az: String
expected: Vec<String>

No such cluster replica size has been configured.

InvalidClusterReplicaSize

Fields

size: String
expected: Vec<String>

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

Fields

relations: Vec<String>
names: Vec<String>

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

Fields

context: &'static str

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

Fields

cluster_name: String
replica_name: String

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

Fields

log_names: Vec<String>

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

Reports additional details about the error, if any are available.

Reports a hint for the user about how the error could be fixed.

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Formats an object with the “alternative” format ({:#}) and returns it.

Returns the argument unchanged.

Attaches the provided Context to this type, returning a WithContext wrapper. Read more

Attaches the current Context to this type, returning a WithContext wrapper. Read more

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Wrap the input message T in a tonic::Request

Should always be Self

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more