diff --git a/datafusion/sql/src/expr/value.rs b/datafusion/sql/src/expr/value.rs index a70934b5cd5d..354653e63205 100644 --- a/datafusion/sql/src/expr/value.rs +++ b/datafusion/sql/src/expr/value.rs @@ -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}; @@ -169,7 +169,7 @@ impl 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