gluesql_core/executor/query/
error.rs1use {serde::Serialize, std::fmt::Debug, thiserror::Error};
2
3#[derive(Error, Serialize, Debug, PartialEq, Eq)]
4pub enum QueryError {
5 #[error("VALUES lists must all be the same length")]
6 ValuesLengthMismatch,
7
8 #[error("ORDER BY column index must be within the SELECT list: {0}")]
9 OrderByColumnIndexOutOfRange(usize),
10
11 #[error("ORDER BY column index is too large: {0}")]
12 OrderByColumnIndexTooLarge(String),
13
14 #[error("table alias not found: {0}")]
15 TableAliasNotFound(String),
16
17 #[error("SERIES has invalid size: {0}")]
18 InvalidSeriesSize(i64),
19
20 #[error("table '{0}' has {1} columns available but {2} column aliases specified")]
21 TooManyColumnAliases(String, usize, usize),
22
23 #[error("table has no primary key column: {0}")]
24 PrimaryKeyColumnNotFound(String),
25
26 #[error("unreachable - table schema missing after source preparation: {0}")]
27 UnreachableTableSchemaMissingAfterPreparation(String),
28}