platoneko commented on code in PR #35473: URL: https://github.com/apache/doris/pull/35473#discussion_r1617161512
########## be/src/olap/rowset/segment_v2/inverted_index_writer.cpp: ########## @@ -566,15 +566,15 @@ class InvertedIndexColumnWriterImpl : public InvertedIndexColumnWriter { null_bitmap_out = std::unique_ptr<lucene::store::IndexOutput>(_dir->createOutput( InvertedIndexDescriptor::get_temporary_null_bitmap_file_name() - .c_str())); + .data())); data_out = std::unique_ptr<lucene::store::IndexOutput>(_dir->createOutput( InvertedIndexDescriptor::get_temporary_bkd_index_data_file_name() - .c_str())); + .data())); Review Comment: std::string_view 没有提供 c_str 函数,在这里 constexpr std::string_view 的 data() 返回值 和 const char* 是等价的 -- 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