@@ -22,11 +22,11 @@ void ScanNumpyColumn(py::array& npArray, uint64_t offset, ValueVector* outputVec
2222template <class T >
2323void scanNumpyMasked (PandasColumnBindData* bindData, uint64_t count, uint64_t offset,
2424 ValueVector* outputVector) {
25- LBUG_ASSERT (bindData->pandasCol ->getBackEnd () == PandasColumnBackend::NUMPY);
25+ DASSERT (bindData->pandasCol ->getBackEnd () == PandasColumnBackend::NUMPY);
2626 auto & npColumn = reinterpret_cast <PandasNumpyColumn&>(*bindData->pandasCol );
2727 ScanNumpyColumn<T>(npColumn.array , offset, outputVector, count);
2828 if (bindData->mask != nullptr ) {
29- LBUG_UNREACHABLE ;
29+ UNREACHABLE_CODE ;
3030 }
3131}
3232
@@ -52,7 +52,7 @@ static void appendPythonUnicode(T* codepoints, uint64_t codepointLength,
5252 uint64_t utf8StrLen = 0 ;
5353 for (auto i = 0u ; i < codepointLength; i++) {
5454 auto len = utf8proc::Utf8Proc::codepointLength (int (codepoints[i]));
55- LBUG_ASSERT (len >= 1 );
55+ DASSERT (len >= 1 );
5656 utf8StrLen += len;
5757 }
5858 auto & strToAppend = StringVector::reserveString (vectorToAppend, pos, utf8StrLen);
@@ -63,7 +63,7 @@ static void appendPythonUnicode(T* codepoints, uint64_t codepointLength,
6363 auto dataToWrite = (char *)strToAppend.getData ();
6464 for (auto i = 0u ; i < codepointLength; i++) {
6565 utf8proc::Utf8Proc::codepointToUtf8 (int (codepoints[i]), codePointLen, dataToWrite);
66- LBUG_ASSERT (codePointLen >= 1 );
66+ DASSERT (codePointLen >= 1 );
6767 dataToWrite += codePointLen;
6868 }
6969 if (!string_t::isShortString (utf8StrLen)) {
@@ -73,7 +73,7 @@ static void appendPythonUnicode(T* codepoints, uint64_t codepointLength,
7373
7474void NumpyScan::scan (PandasColumnBindData* bindData, uint64_t count, uint64_t offset,
7575 common::ValueVector* outputVector) {
76- LBUG_ASSERT (bindData->pandasCol ->getBackEnd () == PandasColumnBackend::NUMPY);
76+ DASSERT (bindData->pandasCol ->getBackEnd () == PandasColumnBackend::NUMPY);
7777 auto & npCol = reinterpret_cast <PandasNumpyColumn&>(*bindData->pandasCol );
7878 auto & array = npCol.array ;
7979
@@ -200,7 +200,7 @@ void NumpyScan::scan(PandasColumnBindData* bindData, uint64_t count, uint64_t of
200200 PyStrUtil::getUnicodeStrLen (strHandle), outputVector, i);
201201 break ;
202202 default :
203- LBUG_UNREACHABLE ;
203+ UNREACHABLE_CODE ;
204204 }
205205 } else {
206206 // LCOV_EXCL_START
@@ -212,7 +212,7 @@ void NumpyScan::scan(PandasColumnBindData* bindData, uint64_t count, uint64_t of
212212 break ;
213213 }
214214 default :
215- LBUG_UNREACHABLE ;
215+ UNREACHABLE_CODE ;
216216 }
217217}
218218
0 commit comments