Skip to content

Commit dbef2ae

Browse files
committed
style(predicate): satisfy clang-tidy type deduction checks
1 parent da745da commit dbef2ae

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/paimon/common/predicate/equal.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,14 @@ std::vector<char> TestEqualValues(const arrow::Array& array, Matches matches) {
4747
template <typename ArrayType, typename ValueType>
4848
std::vector<char> TestEqualPrimitive(const arrow::Array& array, const Literal& literal) {
4949
const auto& values = checked_cast<const ArrayType&>(array);
50-
const ValueType expected = literal.GetValue<ValueType>();
50+
const auto expected = literal.GetValue<ValueType>();
5151
return TestEqualValues(array, [&](int64_t i) { return values.Value(i) == expected; });
5252
}
5353

5454
template <typename ArrayType>
5555
std::vector<char> TestEqualBinary(const arrow::Array& array, const Literal& literal) {
5656
const auto& values = checked_cast<const ArrayType&>(array);
57-
const std::string expected = literal.GetValue<std::string>();
57+
const auto expected = literal.GetValue<std::string>();
5858
return TestEqualValues(array, [&](int64_t i) {
5959
const auto value = values.GetView(i);
6060
return std::string_view(value.data(), value.size()) == expected;

0 commit comments

Comments
 (0)