Skip to content

Commit

Permalink
Minor: improve error message when ARRAY literals can not be planned
Browse files Browse the repository at this point in the history
  • Loading branch information
alamb committed Dec 20, 2024
1 parent d7aeb1a commit 056c253
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions datafusion/sql/src/expr/value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ use arrow_schema::{DataType, DECIMAL256_MAX_PRECISION};
use bigdecimal::num_bigint::BigInt;
use bigdecimal::{BigDecimal, Signed, ToPrimitive};
use datafusion_common::{
internal_datafusion_err, internal_err, not_impl_err, plan_err, DFSchema,
internal_datafusion_err, not_impl_err, plan_err, DFSchema,
DataFusionError, Result, ScalarValue,
};
use datafusion_expr::expr::{BinaryExpr, Placeholder};
Expand Down Expand Up @@ -169,7 +169,7 @@ impl<S: ContextProvider> SqlToRel<'_, S> {
}
}

internal_err!("Expected a simplified result, but none was found")
not_impl_err!("Could not plan array literal. Hint: is `nested_expressions` DataFusion feature selected?")
}

/// Convert a SQL interval expression to a DataFusion logical plan
Expand Down

0 comments on commit 056c253

Please sign in to comment.