Skip to content

Commit

Permalink
One more missing error fix for AppVeyor
Browse files Browse the repository at this point in the history
  • Loading branch information
AlenkaF committed Jun 22, 2023
1 parent 7a40832 commit 3da9ba6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/pyarrow/src/arrow/python/inference.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3da9ba6

Please sign in to comment.