Commit da76fce 1 parent c5ee025 commit da76fce Copy full SHA for da76fce
File tree 1 file changed +12
-1
lines changed
be/src/olap/rowset/segment_v2
1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -229,6 +229,17 @@ class InvertedIndexColumnWriterImpl : public InvertedIndexColumnWriter {
229
229
return Status::OK ();
230
230
}
231
231
232
+ Status add_null_document () {
233
+ try {
234
+ _index_writer->addNullDocument (_doc.get ());
235
+ } catch (const CLuceneError& e) {
236
+ _dir->deleteDirectory ();
237
+ return Status::Error<ErrorCode::INVERTED_INDEX_CLUCENE_ERROR>(
238
+ " CLuceneError add_null_document: {}" , e.what ());
239
+ }
240
+ return Status::OK ();
241
+ }
242
+
232
243
Status add_nulls (uint32_t count) override {
233
244
_null_bitmap.addRange (_rid, _rid + count);
234
245
_rid += count;
@@ -241,7 +252,7 @@ class InvertedIndexColumnWriterImpl : public InvertedIndexColumnWriter {
241
252
242
253
for (int i = 0 ; i < count; ++i) {
243
254
new_fulltext_field (empty_value.c_str (), 0 );
244
- RETURN_IF_ERROR (add_document ());
255
+ RETURN_IF_ERROR (add_null_document ());
245
256
}
246
257
}
247
258
return Status::OK ();
You can’t perform that action at this time.
0 commit comments