Skip to content
This repository was archived by the owner on May 10, 2024. It is now read-only.

Commit 5c9292b

Browse files
committed
Proper dcheck call
1 parent 1782da0 commit 5c9292b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/parquet/encoding-internal.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -595,15 +595,15 @@ inline int DictEncoder<DType>::Hash(const typename DType::c_type& value) const {
595595
template <>
596596
inline int DictEncoder<ByteArrayType>::Hash(const ByteArray& value) const {
597597
if (value.len > 0) {
598-
DCHECK(nullptr != value.ptr) << "Value ptr cannot be NULL";
598+
DCHECK_NE(nullptr, value.ptr) << "Value ptr cannot be NULL";
599599
}
600600
return HashUtil::Hash(value.ptr, value.len, 0);
601601
}
602602

603603
template <>
604604
inline int DictEncoder<FLBAType>::Hash(const FixedLenByteArray& value) const {
605605
if (type_length_ > 0) {
606-
DCHECK(nullptr != value.ptr) << "Value ptr cannot be NULL";
606+
DCHECK_NE(nullptr, value.ptr) << "Value ptr cannot be NULL";
607607
}
608608
return HashUtil::Hash(value.ptr, type_length_, 0);
609609
}

0 commit comments

Comments
 (0)