Enum mz_sql::query_model::error::QGMError
source · pub enum QGMError {
UnsupportedHirRelationExpr(UnsupportedHirRelationExpr),
UnsupportedHirScalarExpr(UnsupportedHirScalarExpr),
UnsupportedBoxType(UnsupportedBoxType),
UnsupportedBoxScalarExpr(UnsupportedBoxScalarExpr),
UnsupportedQuantifierType(UnsupportedQuantifierType),
UnsupportedDecorrelation(UnsupportedDecorrelation),
Internal(Internal),
}
Expand description
Errors that can occur while handling a QGM model.
A bunch of the error types exist because our support for HIR ⇒ QGM conversion and QGM ⇒ MIR conversion is currently incomplete. They will be removed once these limitations are addressed.
Variants§
UnsupportedHirRelationExpr(UnsupportedHirRelationExpr)
Indicates HIR ⇒ QGM conversion failure due to unsupported HirRelationExpr
.
UnsupportedHirScalarExpr(UnsupportedHirScalarExpr)
Indicates HIR ⇒ QGM conversion failure due to unsupported HirScalarExpr
.
UnsupportedBoxType(UnsupportedBoxType)
Indicates QGM ⇒ MIR conversion failure due to unsupported box type.
UnsupportedBoxScalarExpr(UnsupportedBoxScalarExpr)
Indicates QGM ⇒ MIR conversion failure due to unsupported scalar expression.
UnsupportedQuantifierType(UnsupportedQuantifierType)
Indicates QGM ⇒ MIR conversion failure due to unsupported quantifier type.
UnsupportedDecorrelation(UnsupportedDecorrelation)
Indicates QGM ⇒ MIR conversion failure due to lack of support for decorrelation.
Internal(Internal)
An unstructured error.
Trait Implementations§
source§impl Error for QGMError
impl Error for QGMError
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<UnsupportedBoxScalarExpr> for QGMError
impl From<UnsupportedBoxScalarExpr> for QGMError
source§fn from(inner: UnsupportedBoxScalarExpr) -> Self
fn from(inner: UnsupportedBoxScalarExpr) -> Self
Converts to this type from the input type.
source§impl From<UnsupportedBoxType> for QGMError
impl From<UnsupportedBoxType> for QGMError
source§fn from(inner: UnsupportedBoxType) -> Self
fn from(inner: UnsupportedBoxType) -> Self
Converts to this type from the input type.
source§impl From<UnsupportedDecorrelation> for QGMError
impl From<UnsupportedDecorrelation> for QGMError
source§fn from(inner: UnsupportedDecorrelation) -> Self
fn from(inner: UnsupportedDecorrelation) -> Self
Converts to this type from the input type.
source§impl From<UnsupportedHirRelationExpr> for QGMError
impl From<UnsupportedHirRelationExpr> for QGMError
source§fn from(inner: UnsupportedHirRelationExpr) -> Self
fn from(inner: UnsupportedHirRelationExpr) -> Self
Converts to this type from the input type.
source§impl From<UnsupportedHirScalarExpr> for QGMError
impl From<UnsupportedHirScalarExpr> for QGMError
source§fn from(inner: UnsupportedHirScalarExpr) -> Self
fn from(inner: UnsupportedHirScalarExpr) -> Self
Converts to this type from the input type.
source§impl From<UnsupportedQuantifierType> for QGMError
impl From<UnsupportedQuantifierType> for QGMError
source§fn from(inner: UnsupportedQuantifierType) -> Self
fn from(inner: UnsupportedQuantifierType) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for QGMError
impl Send for QGMError
impl Sync for QGMError
impl Unpin for QGMError
impl UnwindSafe for QGMError
Blanket Implementations§
source§impl<T> CloneDebuggableStorage for Twhere
T: DebuggableStorage + Clone,
impl<T> CloneDebuggableStorage for Twhere
T: DebuggableStorage + Clone,
fn clone_storage(&self) -> Box<dyn CloneDebuggableStorage + 'static, Global>
source§impl<T> CloneableStorage for Twhere
T: Any + Send + Sync + Clone,
impl<T> CloneableStorage for Twhere
T: Any + Send + Sync + Clone,
fn clone_storage(&self) -> Box<dyn CloneableStorage + 'static, Global>
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
.