pub enum PlannerError {
Show 17 variants
AnalyzeError {
source: AnalyzeError,
},
DecimalError {
source: DecimalError,
},
SqlParserError {
source: ParserError,
},
DataFusionError {
source: DataFusionError,
},
ColumnNotFound,
TableNotFound {
table_name: String,
},
InvalidPlaceholderId {
id: String,
},
UntypedPlaceholder {
placeholder: Placeholder,
},
UnsupportedDataType {
data_type: DataType,
},
UnsupportedBinaryOperator {
op: Operator,
},
UnsupportedAggregateOperation {
op: AggregateFunction,
},
UnsupportedAggregateFunction {
function: AggregateFunction,
},
UnsupportedLogicalExpression {
expr: Box<Expr>,
},
UnsupportedLogicalPlan {
plan: Box<LogicalPlan>,
},
UnresolvedLogicalPlan,
CatalogNotSupported,
PostprocessingError {
source: PostprocessingError,
},
}
Expand description
Proof of SQL Planner error
Variants§
AnalyzeError
Returned when the internal analyze process fails
Fields
source: AnalyzeError
Underlying analyze error
DecimalError
Returned when a decimal error occurs
Fields
source: DecimalError
Underlying decimal error
SqlParserError
Returned when sqlparser fails to parse a query
Fields
source: ParserError
Underlying sqlparser error
DataFusionError
Returned when datafusion fails to plan a query
Fields
source: DataFusionError
Underlying datafusion error
ColumnNotFound
Returned if a column is not found
TableNotFound
Returned if a table is not found
InvalidPlaceholderId
Returned when a placeholder id is invalid
UntypedPlaceholder
Returned when a placeholder is untyped
Fields
placeholder: Placeholder
Untyped placeholder
UnsupportedDataType
Returned when a datatype is not supported
UnsupportedBinaryOperator
Returned when a binary operator is not supported
UnsupportedAggregateOperation
Returned when the aggregate opetation is not supported
Fields
op: AggregateFunction
Unsupported aggregate operation
UnsupportedAggregateFunction
Returned when the AggregateFunction
is not supported
Fields
function: AggregateFunction
Unsupported AggregateFunction
UnsupportedLogicalExpression
Returned when a logical expression is not resolved
UnsupportedLogicalPlan
Returned when a LogicalPlan
is not supported
Fields
plan: Box<LogicalPlan>
Unsupported LogicalPlan
UnresolvedLogicalPlan
Returned when the LogicalPlan
is not resolved
CatalogNotSupported
Returned when catalog is provided since it is not supported
PostprocessingError
Returned when error occurs in postprocessing
Fields
source: PostprocessingError
Underlying postprocessing error
Trait Implementations§
Source§impl Debug for PlannerError
impl Debug for PlannerError
Source§impl Display for PlannerError
impl Display for PlannerError
Source§impl Error for PlannerError
impl Error for PlannerError
Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
Source§impl ErrorCompat for PlannerError
impl ErrorCompat for PlannerError
Source§fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
Error::source
. Read moreSource§impl From<AnalyzeError> for PlannerError
impl From<AnalyzeError> for PlannerError
Source§fn from(error: AnalyzeError) -> Self
fn from(error: AnalyzeError) -> Self
Source§impl From<DataFusionError> for PlannerError
impl From<DataFusionError> for PlannerError
Source§fn from(error: DataFusionError) -> Self
fn from(error: DataFusionError) -> Self
Source§impl From<DecimalError> for PlannerError
impl From<DecimalError> for PlannerError
Source§fn from(error: DecimalError) -> Self
fn from(error: DecimalError) -> Self
Source§impl From<ParserError> for PlannerError
impl From<ParserError> for PlannerError
Source§fn from(error: ParserError) -> Self
fn from(error: ParserError) -> Self
Source§impl From<PostprocessingError> for PlannerError
impl From<PostprocessingError> for PlannerError
Source§fn from(error: PostprocessingError) -> Self
fn from(error: PostprocessingError) -> Self
Auto Trait Implementations§
impl Freeze for PlannerError
impl !RefUnwindSafe for PlannerError
impl Send for PlannerError
impl Sync for PlannerError
impl Unpin for PlannerError
impl !UnwindSafe for PlannerError
Blanket Implementations§
Source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
Source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
Source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
Source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
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
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 more