waratah_exec/error.rs
1//! Typed execution errors.
2
3use thiserror::Error;
4
5/// Failure in a vectorized kernel.
6#[derive(Debug, Error, Clone, PartialEq, Eq)]
7pub enum ExecError {
8 /// Column lengths disagree inside a batch or across join inputs.
9 #[error("column length mismatch: {0}")]
10 LengthMismatch(String),
11 /// Requested column index is out of range.
12 #[error("column index {index} out of range (width {width})")]
13 BadColumn {
14 /// Requested index.
15 index: usize,
16 /// Batch width.
17 width: usize,
18 },
19 /// More than `u32::MAX - 1` distinct interned terms in one query.
20 #[error("too many unique terms")]
21 TooManyTerms,
22 /// Join equality key wider than the 8-column fallback map.
23 #[error("join key arity {arity} exceeds 8")]
24 JoinKeyTooWide {
25 /// Number of equality columns.
26 arity: usize,
27 },
28 /// Left-join probe predicate failed (e.g. unsupported FILTER folded into OPTIONAL).
29 #[error("join probe filter: {0}")]
30 ProbeFilter(String),
31}