From 3da9ba67144643d5331aeda7accb5c5795aeb1df Mon Sep 17 00:00:00 2001 From: AlenkaF Date: Thu, 22 Jun 2023 11:19:37 +0200 Subject: [PATCH] One more missing error fix for AppVeyor --- python/pyarrow/src/arrow/python/inference.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/pyarrow/src/arrow/python/inference.cc b/python/pyarrow/src/arrow/python/inference.cc index bb9a65b194e2d..2474772c6b89e 100644 --- a/python/pyarrow/src/arrow/python/inference.cc +++ b/python/pyarrow/src/arrow/python/inference.cc @@ -576,7 +576,7 @@ class TypeInferrer { Status VisitArrowScalar(PyObject* obj, bool* keep_going) { ARROW_ASSIGN_OR_RAISE(auto scalar, arrow::py::unwrap_scalar(obj)); // Check that all the scalar types for the sequence are the same - if (arrow_scalar_count_ > 0 and *scalar->type != *scalar_type_) { + if (arrow_scalar_count_ > 0 && *scalar->type != *scalar_type_) { return internal::InvalidValue(obj, "cannot mix scalars with different types"); } scalar_type_ = scalar->type;