pub enum PlanError {
Show 48 variants
Unsupported {
feature: String,
issue_no: Option<usize>,
},
NeverSupported {
feature: String,
documentation_link: String,
},
UnknownColumn {
table: Option<PartialObjectName>,
column: ColumnName,
},
UngroupedColumn {
table: Option<PartialObjectName>,
column: ColumnName,
},
WrongJoinTypeForLateralColumn {
table: Option<PartialObjectName>,
column: ColumnName,
},
AmbiguousColumn(ColumnName),
AmbiguousTable(PartialObjectName),
UnknownColumnInUsingClause {
column: ColumnName,
join_side: JoinSide,
},
AmbiguousColumnInUsingClause {
column: ColumnName,
join_side: JoinSide,
},
MisqualifiedName(String),
OverqualifiedDatabaseName(String),
OverqualifiedSchemaName(String),
UnderqualifiedColumnName(String),
SubqueriesDisallowed {
context: String,
},
UnknownParameter(usize),
RecursionLimit(RecursionLimitError),
StrconvParse(ParseError),
Catalog(CatalogError),
UpsertSinkWithoutKey,
InvalidNumericMaxScale(InvalidNumericMaxScaleError),
InvalidCharLength(InvalidCharLengthError),
InvalidId(GlobalId),
InvalidObject(Box<ResolvedObjectName>),
InvalidVarCharMaxLength(InvalidVarCharMaxLengthError),
InvalidSecret(Box<ResolvedObjectName>),
InvalidTemporarySchema,
Parser(ParserError),
DropViewOnMaterializedView(String),
DropSubsource {
subsource: String,
source: String,
},
AlterViewOnMaterializedView(String),
ShowCreateViewOnMaterializedView(String),
ExplainViewOnMaterializedView(String),
UnacceptableTimelineName(String),
UnrecognizedTypeInPostgresSource {
cols: Vec<(String, Oid)>,
},
FetchingCsrSchemaFailed {
schema_lookup: String,
cause: Arc<dyn Error + Send + Sync>,
},
FetchingPostgresPublicationInfoFailed {
cause: Arc<PostgresError>,
},
InvalidProtobufSchema {
cause: OperationFailedError,
},
InvalidOptionValue {
option_name: String,
err: Box<PlanError>,
},
UnexpectedDuplicateReference {
name: UnresolvedObjectName,
},
RecursiveTypeMismatch(String, RelationType, RelationType),
UnknownFunction {
name: String,
arg_types: Vec<String>,
alternative_hint: Option<String>,
},
IndistinctFunction {
name: String,
arg_types: Vec<String>,
},
UnknownOperator {
name: String,
arg_types: Vec<String>,
},
IndistinctOperator {
name: String,
arg_types: Vec<String>,
},
InvalidPrivatelinkAvailabilityZone {
name: String,
supported_azs: BTreeSet<String>,
},
InvalidSchemaName,
ItemAlreadyExists {
name: String,
item_type: CatalogItemType,
},
Unstructured(String),
}
Variants§
Unsupported
This feature is not yet supported, but may be supported at some point in the future.
NeverSupported
This feature is not supported, and will likely never be supported.
UnknownColumn
UngroupedColumn
WrongJoinTypeForLateralColumn
AmbiguousColumn(ColumnName)
AmbiguousTable(PartialObjectName)
UnknownColumnInUsingClause
AmbiguousColumnInUsingClause
MisqualifiedName(String)
OverqualifiedDatabaseName(String)
OverqualifiedSchemaName(String)
UnderqualifiedColumnName(String)
SubqueriesDisallowed
UnknownParameter(usize)
RecursionLimit(RecursionLimitError)
StrconvParse(ParseError)
Catalog(CatalogError)
UpsertSinkWithoutKey
InvalidNumericMaxScale(InvalidNumericMaxScaleError)
InvalidCharLength(InvalidCharLengthError)
InvalidId(GlobalId)
InvalidObject(Box<ResolvedObjectName>)
InvalidVarCharMaxLength(InvalidVarCharMaxLengthError)
InvalidSecret(Box<ResolvedObjectName>)
InvalidTemporarySchema
Parser(ParserError)
DropViewOnMaterializedView(String)
DropSubsource
AlterViewOnMaterializedView(String)
ShowCreateViewOnMaterializedView(String)
ExplainViewOnMaterializedView(String)
UnacceptableTimelineName(String)
UnrecognizedTypeInPostgresSource
FetchingCsrSchemaFailed
FetchingPostgresPublicationInfoFailed
Fields
§
cause: Arc<PostgresError>
InvalidProtobufSchema
Fields
§
cause: OperationFailedError
InvalidOptionValue
UnexpectedDuplicateReference
Fields
§
name: UnresolvedObjectName
RecursiveTypeMismatch(String, RelationType, RelationType)
Declaration of a recursive type did not match the inferred type.
UnknownFunction
IndistinctFunction
UnknownOperator
IndistinctOperator
InvalidPrivatelinkAvailabilityZone
InvalidSchemaName
ItemAlreadyExists
Unstructured(String)
Implementations§
Trait Implementations§
source§impl Error for PlanError
impl Error for PlanError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<CatalogError> for PlanError
impl From<CatalogError> for PlanError
source§fn from(e: CatalogError) -> PlanError
fn from(e: CatalogError) -> PlanError
Converts to this type from the input type.
source§impl From<InvalidCharLengthError> for PlanError
impl From<InvalidCharLengthError> for PlanError
source§fn from(e: InvalidCharLengthError) -> PlanError
fn from(e: InvalidCharLengthError) -> PlanError
Converts to this type from the input type.
source§impl From<InvalidNumericMaxScaleError> for PlanError
impl From<InvalidNumericMaxScaleError> for PlanError
source§fn from(e: InvalidNumericMaxScaleError) -> PlanError
fn from(e: InvalidNumericMaxScaleError) -> PlanError
Converts to this type from the input type.
source§impl From<InvalidVarCharMaxLengthError> for PlanError
impl From<InvalidVarCharMaxLengthError> for PlanError
source§fn from(e: InvalidVarCharMaxLengthError) -> PlanError
fn from(e: InvalidVarCharMaxLengthError) -> PlanError
Converts to this type from the input type.
source§impl From<ParseError> for PlanError
impl From<ParseError> for PlanError
source§fn from(e: ParseError) -> PlanError
fn from(e: ParseError) -> PlanError
Converts to this type from the input type.
source§impl From<ParseIntError> for PlanError
impl From<ParseIntError> for PlanError
source§fn from(e: ParseIntError) -> PlanError
fn from(e: ParseIntError) -> PlanError
Converts to this type from the input type.
source§impl From<ParserError> for PlanError
impl From<ParserError> for PlanError
source§fn from(e: ParserError) -> PlanError
fn from(e: ParserError) -> PlanError
Converts to this type from the input type.
source§impl From<RecursionLimitError> for PlanError
impl From<RecursionLimitError> for PlanError
source§fn from(e: RecursionLimitError) -> PlanError
fn from(e: RecursionLimitError) -> PlanError
Converts to this type from the input type.
source§impl From<TryFromIntError> for PlanError
impl From<TryFromIntError> for PlanError
source§fn from(e: TryFromIntError) -> PlanError
fn from(e: TryFromIntError) -> PlanError
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for PlanError
impl Send for PlanError
impl Sync for PlanError
impl Unpin for PlanError
impl !UnwindSafe for PlanError
Blanket Implementations§
source§impl<T> DisplayExt for Twhere
T: Display,
impl<T> DisplayExt for Twhere
T: Display,
source§fn to_string_alt(&self) -> String
fn to_string_alt(&self) -> String
Formats an object with the “alternative” format (
{:#}
) and returns it.source§impl<T> FutureExt for T
impl<T> FutureExt for T
source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request
source§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<P, R> ProtoType<R> for Pwhere
R: RustType<P>,
impl<P, R> ProtoType<R> for Pwhere
R: RustType<P>,
source§fn into_rust(self) -> Result<R, TryFromProtoError>
fn into_rust(self) -> Result<R, TryFromProtoError>
See
RustType::from_proto
.source§fn from_rust(rust: &R) -> P
fn from_rust(rust: &R) -> P
See
RustType::into_proto
.