pub enum LocyCompileError {
Show 26 variants
CyclicNegation {
rules: Vec<String>,
},
UndefinedRule {
name: String,
},
PrevInBaseCase {
rule: String,
field: String,
},
NonMonotonicInRecursion {
rule: String,
aggregate: String,
},
BestByWithMonotonicFold {
rule: String,
fold: String,
},
HavingWithoutFold {
rule: String,
},
WardednessViolation {
rule: String,
variable: String,
},
YieldSchemaMismatch {
rule: String,
detail: String,
},
MixedPriority {
rule: String,
},
ModuleNotFound {
name: String,
},
ImportNotFound {
module: String,
rule: String,
},
IsArityMismatch {
rule: String,
target: String,
expected: usize,
actual: usize,
},
PrevFieldNotInSchema {
rule: String,
field: String,
available: String,
},
MultipleProbColumns {
rule: String,
count: usize,
},
NeuralPreviewDisabled {
model_name: String,
},
ModelNameCollision {
name: String,
},
ModelArityMismatch {
name: String,
rule: String,
expected: usize,
actual: usize,
},
CalibrateUnknownModel {
name: String,
},
CalibrateOnNonProbModel {
name: String,
declared: String,
},
CalibrateInvalidHoldout {
model_name: String,
holdout: f64,
},
CalibratePreviewDisabled {
model_name: String,
},
ValidateUnknownRule {
name: String,
},
ValidateRuleHasNoProbColumn {
name: String,
},
ValidateNoMetrics {
name: String,
},
WhereModelInvocationNotYetSupported {
rule: String,
model: String,
},
UnsupportedFeatureExpression {
rule: String,
model: String,
expr: String,
},
}Variants§
CyclicNegation
UndefinedRule
PrevInBaseCase
NonMonotonicInRecursion
BestByWithMonotonicFold
HavingWithoutFold
WardednessViolation
YieldSchemaMismatch
MixedPriority
ModuleNotFound
ImportNotFound
IsArityMismatch
PrevFieldNotInSchema
MultipleProbColumns
NeuralPreviewDisabled
ModelNameCollision
ModelArityMismatch
CalibrateUnknownModel
CalibrateOnNonProbModel
CalibrateInvalidHoldout
CalibratePreviewDisabled
ValidateUnknownRule
ValidateRuleHasNoProbColumn
ValidateNoMetrics
WhereModelInvocationNotYetSupported
Phase B follow-up: a WHERE clause invokes a neural model.
The lift machinery would require splitting the rule’s
body_logical into pre-filter and post-filter halves so the
classifier can run between them — a planner refactor we’ve
scoped out of the current slice. Surface a clear error at
compile time directing the user to move the invocation into
a YIELD item, e.g. as a witness column they can filter on
downstream.
UnsupportedFeatureExpression
A neural-model invocation’s feature expression is not a plain
variable or a single node.property access. Today’s runtime
reads features either from match-bound variables (e.g.
scorer(s)) or from materialized property columns (e.g.
scorer(s.tier)); arithmetic (scorer(s.tier + 1)) and nested
calls (scorer(normalize(s.revenue))) are deferred to a
follow-up slice.
Trait Implementations§
Source§impl Clone for LocyCompileError
impl Clone for LocyCompileError
Source§fn clone(&self) -> LocyCompileError
fn clone(&self) -> LocyCompileError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for LocyCompileError
impl Debug for LocyCompileError
Source§impl Display for LocyCompileError
impl Display for LocyCompileError
Source§impl Error for LocyCompileError
impl Error for LocyCompileError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl PartialEq for LocyCompileError
impl PartialEq for LocyCompileError
Source§fn eq(&self, other: &LocyCompileError) -> bool
fn eq(&self, other: &LocyCompileError) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LocyCompileError
Auto Trait Implementations§
impl Freeze for LocyCompileError
impl RefUnwindSafe for LocyCompileError
impl Send for LocyCompileError
impl Sync for LocyCompileError
impl Unpin for LocyCompileError
impl UnsafeUnpin for LocyCompileError
impl UnwindSafe for LocyCompileError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
CompactString. Read more