airborne12 commented on code in PR #48965:
URL: https://github.com/apache/doris/pull/48965#discussion_r2002524734
##########
be/src/olap/rowset/segment_v2/inverted_index_writer.cpp:
##########
@@ -277,7 +277,16 @@ class InvertedIndexColumnWriterImpl : public
InvertedIndexColumnWriter {
}
auto ignore_above_value =
get_parser_ignore_above_value_from_properties(_index_meta->properties());
- _ignore_above = std::stoi(ignore_above_value);
+ try {
+ _ignore_above = std::stoi(ignore_above_value);
+ } catch (const std::invalid_argument& e) {
+ LOG(WARNING) << "Invalid ignore_above_value format: " <<
ignore_above_value
+ << ", using default, error: " << e.what();
Review Comment:
need to return
Status::Error<ErrorCode::INVERTED_INDEX_CLUCENE_ERROR>()
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]