Skip to main content

QueryError

Enum QueryError 

Source
pub enum QueryError {
Show 23 variants EmptyRecordKey, DuplicateRecordKey, ZeroLimit, ResultLimitExceeded { requested: usize, maximum: usize, }, FilterNodesExceeded { actual: usize, maximum: usize, }, FilterDepthExceeded { actual: usize, maximum: usize, }, SortFieldsExceeded { actual: usize, maximum: usize, }, CursorShape { actual: usize, expected: usize, }, EmptyCursorKey, NoncanonicalCursorNull, InvalidPrefixType, InvalidFieldPath, GroupFieldsExceeded { actual: usize, maximum: usize, }, MetricsExceeded { actual: usize, maximum: usize, }, EmptyMetricName, DuplicateMetricName { name: String, }, ScannedBudgetExceeded { maximum: u64, }, MatchedBudgetExceeded { maximum: u64, }, GroupBudgetExceeded { maximum: usize, }, TimedOut, MetricTypeMismatch { name: String, }, ArithmeticOverflow { name: String, }, MetricStateMismatch,
}
Expand description

Failure to validate or completely execute one structured query.

Variants§

§

EmptyRecordKey

Record keys must be nonempty.

§

DuplicateRecordKey

Keys must be globally unique across shards.

§

ZeroLimit

A page must request at least one row.

§

ResultLimitExceeded

Requested page size exceeds policy.

Fields

§requested: usize

Requested page size.

§maximum: usize

Configured maximum.

§

FilterNodesExceeded

Filter expression is too large.

Fields

§actual: usize

Observed filter nodes.

§maximum: usize

Configured maximum.

§

FilterDepthExceeded

Filter recursion is too deep.

Fields

§actual: usize

Observed recursive depth, counting the root as one.

§maximum: usize

Configured maximum.

§

SortFieldsExceeded

Too many explicit sort fields were requested.

Fields

§actual: usize

Requested fields.

§maximum: usize

Configured maximum.

§

CursorShape

Cursor shape does not match the sort plan.

Fields

§actual: usize

Cursor values.

§expected: usize

Query sort fields.

§

EmptyCursorKey

Cursor keys must be nonempty.

§

NoncanonicalCursorNull

Explicit null must use the canonical None cursor representation.

§

InvalidPrefixType

A prefix filter literal is not a string or bytes value.

§

InvalidFieldPath

Field-path segments must be nonempty UTF-8 strings.

§

GroupFieldsExceeded

Too many group fields were requested.

Fields

§actual: usize

Requested group fields.

§maximum: usize

Configured maximum.

§

MetricsExceeded

Too many metrics were requested.

Fields

§actual: usize

Requested metrics.

§maximum: usize

Configured maximum.

§

EmptyMetricName

Metric names must be nonempty.

§

DuplicateMetricName

Metric names must be unique within a plan.

Fields

§name: String

Duplicated name.

§

ScannedBudgetExceeded

Global scan budget was exhausted.

Fields

§maximum: u64

Configured maximum.

§

MatchedBudgetExceeded

Filtered-result memory budget was exhausted.

Fields

§maximum: u64

Configured maximum.

§

GroupBudgetExceeded

Aggregation group budget was exhausted.

Fields

§maximum: usize

Configured maximum.

§

TimedOut

Cooperative monotonic deadline expired.

§

MetricTypeMismatch

Sum encountered a non-integer value.

Fields

§name: String

Metric name.

§

ArithmeticOverflow

Checked aggregate arithmetic overflowed.

Fields

§name: String

Metric name.

§

MetricStateMismatch

Internal aggregate state did not match its validated metric plan.

Trait Implementations§

Source§

impl Clone for QueryError

Source§

fn clone(&self) -> QueryError

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for QueryError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for QueryError

Source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for QueryError

Source§

impl Error for QueryError

1.30.0 · Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0:

use the Display impl or to_string()

1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl PartialEq for QueryError

Source§

fn eq(&self, other: &QueryError) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for QueryError

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.