Enum coord::CoordError[][src]

pub enum CoordError {
Show 34 variants AutomaticTimestampFailure { unmaterialized: Vec<String>, disabled_indexes: Vec<(String, Vec<String>)>, }, Catalog(Error), ChangedPlan, ConstrainedParameter(&'static (dyn Var + Send + Sync)), DuplicateCursor(String), Eval(EvalError), IdExhaustionError, Internal(String), IncompleteTimestamp(Vec<GlobalId>), InvalidAlterOnDisabledIndex(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, }, InvalidTableMutationSelection, ConstraintViolation(NotNullViolation), OperationProhibitsTransaction(String), OperationRequiresTransaction(String), Persistence(Error), PreparedStatementExists(String), ReadOnlyTransaction, ReadOnlyParameter(&'static (dyn Var + Send + Sync)), RecursionLimit(RecursionLimitError), RelationOutsideTimeDomain { relations: Vec<String>, names: Vec<String>, }, SafeModeViolation(String), SqlCatalog(CatalogError), TailOnlyTransaction, Transform(TransformError), UnknownCursor(String), UnknownLoginRole(String), UnknownParameter(String), UnknownPreparedStatement(String), Unstructured(Error), Unsupported(&'static str), WriteOnlyTransaction,
}
Expand description

Errors that can occur in the coordinator.

Variants

AutomaticTimestampFailure

Fields

unmaterialized: Vec<String>
disabled_indexes: Vec<(String, Vec<String>)>

Query needs AS OF

Catalog(Error)

Tuple Fields

0: Error

An error occurred in a catalog operation.

ChangedPlan

The cached plan or descriptor changed.

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

Tuple Fields

0: &'static (dyn Var + Send + Sync)

The specified session parameter is constrained to its current value.

DuplicateCursor(String)

Tuple Fields

0: String

The cursor already exists.

Eval(EvalError)

Tuple Fields

An error while evaluating an expression.

IdExhaustionError

The ID allocator exhausted all valid IDs.

Internal(String)

Tuple Fields

0: String

Unexpected internal state was encountered.

IncompleteTimestamp(Vec<GlobalId>)

Tuple Fields

At least one input has no complete timestamps yet

InvalidAlterOnDisabledIndex(String)

Tuple Fields

0: String

Specified index is disabled, but received non-enabling update request

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))

Tuple Fields

0: &'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

InvalidTableMutationSelection

The selection value for a table mutation operation refers to an invalid object.

ConstraintViolation(NotNullViolation)

Tuple Fields

Expression violated a column’s constraint

OperationProhibitsTransaction(String)

Tuple Fields

0: String

The named operation cannot be run in a transaction.

OperationRequiresTransaction(String)

Tuple Fields

0: String

The named operation requires an active transaction.

Persistence(Error)

Tuple Fields

0: Error

A persistence-related error.

PreparedStatementExists(String)

Tuple Fields

0: String

The named prepared statement already exists.

ReadOnlyTransaction

The transaction is in read-only mode.

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

Tuple Fields

0: &'static (dyn Var + Send + Sync)

The specified session parameter is read-only.

RecursionLimit(RecursionLimitError)

Tuple Fields

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)

Tuple Fields

0: String

The specified feature is not permitted in safe mode.

SqlCatalog(CatalogError)

Tuple Fields

An error occurred in a SQL catalog operation.

TailOnlyTransaction

The transaction is in single-tail mode.

Transform(TransformError)

Tuple Fields

An error occurred in the optimizer.

UnknownCursor(String)

Tuple Fields

0: String

The named cursor does not exist.

UnknownLoginRole(String)

Tuple Fields

0: String

The named role does not exist.

UnknownParameter(String)

Tuple Fields

0: String

The named parameter is unknown to the system.

UnknownPreparedStatement(String)

Tuple Fields

0: String

Unstructured(Error)

Tuple Fields

0: Error

A generic error occurred.

Unsupported(&'static str)

Tuple Fields

0: &'static str

The named feature is not supported and will (probably) not be.

WriteOnlyTransaction

The transaction is in write-only mode.

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

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

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.

Performs the conversion.

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

Performs the conversion.

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