diff --git a/ibis/expr/types/arrays.py b/ibis/expr/types/arrays.py index 1b467582f1f52..18dfe13b1b6eb 100644 --- a/ibis/expr/types/arrays.py +++ b/ibis/expr/types/arrays.py @@ -1070,14 +1070,4 @@ def array(values: Iterable[V], type: str | dt.DataType | None = None) -> ArrayVa │ [3, 42] │ └──────────────────────┘ """ - if any(isinstance(value, Value) for value in values): - return ops.Array(values).to_expr() - else: - try: - return literal(list(values), type=type) - except com.IbisTypeError as e: - raise com.IbisTypeError( - "Could not create an array scalar from the values provided " - "to `array`. Ensure that all input values have the same " - "Python type, or can be casted to a single Python type." - ) from e + return ops.Array(values).to_expr()