@@ -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- KU_ASSERT (bindData->pandasCol ->getBackEnd () == PandasColumnBackend::NUMPY);
25+ LBUG_ASSERT (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- KU_UNREACHABLE ;
29+ LBUG_UNREACHABLE ;
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- KU_ASSERT (len >= 1 );
55+ LBUG_ASSERT (len >= 1 );
5656 utf8StrLen += len;
5757 }
5858 auto & strToAppend = StringVector::reserveString (vectorToAppend, pos, utf8StrLen);
@@ -63,17 +63,17 @@ 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- KU_ASSERT (codePointLen >= 1 );
66+ LBUG_ASSERT (codePointLen >= 1 );
6767 dataToWrite += codePointLen;
6868 }
69- if (!ku_string_t ::isShortString (utf8StrLen)) {
70- memcpy (strToAppend.prefix , strToAppend.getData (), ku_string_t ::PREFIX_LENGTH);
69+ if (!string_t ::isShortString (utf8StrLen)) {
70+ memcpy (strToAppend.prefix , strToAppend.getData (), string_t ::PREFIX_LENGTH);
7171 }
7272}
7373
7474void NumpyScan::scan (PandasColumnBindData* bindData, uint64_t count, uint64_t offset,
7575 common::ValueVector* outputVector) {
76- KU_ASSERT (bindData->pandasCol ->getBackEnd () == PandasColumnBackend::NUMPY);
76+ LBUG_ASSERT (bindData->pandasCol ->getBackEnd () == PandasColumnBackend::NUMPY);
7777 auto & npCol = reinterpret_cast <PandasNumpyColumn&>(*bindData->pandasCol );
7878 auto & array = npCol.array ;
7979
@@ -151,7 +151,7 @@ void NumpyScan::scan(PandasColumnBindData* bindData, uint64_t count, uint64_t of
151151 scanObjectColumn (sourceData, count, offset, outputVector);
152152 return ;
153153 }
154- auto dstData = reinterpret_cast <ku_string_t *>(outputVector->getData ());
154+ auto dstData = reinterpret_cast <string_t *>(outputVector->getData ());
155155 py::gil_scoped_acquire gil;
156156 for (auto i = 0u ; i < count; i++) {
157157 auto pos = i + offset;
@@ -176,12 +176,12 @@ void NumpyScan::scan(PandasColumnBindData* bindData, uint64_t count, uint64_t of
176176 }
177177 outputVector->setNull (i, false /* isNull */ );
178178 if (PyStrUtil::isPyUnicodeCompatibleAscii (strHandle)) {
179- dstData[i] = ku_string_t {PyStrUtil::getUnicodeStrData (strHandle),
179+ dstData[i] = string_t {PyStrUtil::getUnicodeStrData (strHandle),
180180 PyStrUtil::getUnicodeStrLen (strHandle)};
181181 } else {
182182 auto unicodeObj = reinterpret_cast <PyCompactUnicodeObject*>(val);
183183 if (unicodeObj->utf8 ) {
184- dstData[i] = ku_string_t (reinterpret_cast <const char *>(unicodeObj->utf8 ),
184+ dstData[i] = string_t (reinterpret_cast <const char *>(unicodeObj->utf8 ),
185185 unicodeObj->utf8_length );
186186 } else if (PyStrUtil::isPyUnicodeCompact (unicodeObj) &&
187187 !PyStrUtil::isPyUnicodeASCII (unicodeObj)) {
@@ -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- KU_UNREACHABLE ;
203+ LBUG_UNREACHABLE ;
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- KU_UNREACHABLE ;
215+ LBUG_UNREACHABLE ;
216216 }
217217}
218218
0 commit comments