amorynan commented on code in PR #34501: URL: https://github.com/apache/doris/pull/34501#discussion_r1593336817
########## be/src/olap/rowset/segment_v2/inverted_index_writer.cpp: ########## @@ -394,9 +394,11 @@ class InvertedIndexColumnWriterImpl : public InvertedIndexColumnWriter { _parser_type != InvertedIndexParserType::PARSER_NONE) { // in this case stream need to delete after add_document, because the // stream can not reuse for different field - _char_string_reader->init(v->get_data(), v->get_size(), false); + std::unique_ptr<lucene::util::Reader> char_string_reader = nullptr; Review Comment: because if we reuse the iobuffer in TokenStream will be replaced with last element in current array which make fields in current doc has same value (the last element). -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org