Skip to content

Commit

Permalink
apacheGH-36451: [CI][C++] Fix compilation failure on Fedora 35
Browse files Browse the repository at this point in the history
  • Loading branch information
pitrou committed Jul 4, 2023
1 parent 7ecec6c commit 51e7606
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions cpp/src/arrow/scalar_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1075,10 +1075,8 @@ void CheckListCast(const ScalarType& scalar, const std::shared_ptr<DataType>& to
*checked_cast<const BaseListScalar&>(*cast_scalar).value);
}

template <typename ScalarType>
void CheckInvalidListCast(const ScalarType& scalar,
const std::shared_ptr<DataType>& to_type,
std::string_view expected_message) {
void CheckInvalidListCast(const Scalar& scalar, const std::shared_ptr<DataType>& to_type,
const std::string& expected_message) {
EXPECT_RAISES_WITH_CODE_AND_MESSAGE_THAT(StatusCode::Invalid,
::testing::HasSubstr(expected_message),
scalar.CastTo(to_type));
Expand Down

0 comments on commit 51e7606

Please sign in to comment.