github-actions[bot] commented on code in PR #15925:
URL: https://github.com/apache/doris/pull/15925#discussion_r1071796441
##########
be/src/olap/rowset/segment_v2/inverted_index_reader.cpp:
##########
@@ -202,7 +202,7 @@
InvertedIndexQueryType query_type,
InvertedIndexParserType
analyser_type,
roaring::Roaring* bit_map) {
- const StringValue* search_query = reinterpret_cast<const
StringValue*>(query_value);
+ const StringRef* search_query = reinterpret_cast<const
StringRef*>(query_value);
auto act_len = strnlen(search_query->ptr, search_query->len);
Review Comment:
warning: no member named 'len' in 'doris::StringRef' [clang-diagnostic-error]
```cpp
auto act_len = strnlen(search_query->ptr, search_query->len);
^
```
##########
be/src/olap/rowset/segment_v2/inverted_index_reader.cpp:
##########
@@ -202,7 +202,7 @@ Status StringTypeInvertedIndexReader::query(const
std::string& column_name, cons
InvertedIndexQueryType query_type,
InvertedIndexParserType
analyser_type,
roaring::Roaring* bit_map) {
- const StringValue* search_query = reinterpret_cast<const
StringValue*>(query_value);
+ const StringRef* search_query = reinterpret_cast<const
StringRef*>(query_value);
auto act_len = strnlen(search_query->ptr, search_query->len);
Review Comment:
warning: no member named 'ptr' in 'doris::StringRef' [clang-diagnostic-error]
```cpp
auto act_len = strnlen(search_query->ptr, search_query->len);
^
```
##########
be/src/olap/rowset/segment_v2/inverted_index_reader.cpp:
##########
@@ -202,7 +202,7 @@
InvertedIndexQueryType query_type,
InvertedIndexParserType
analyser_type,
roaring::Roaring* bit_map) {
- const StringValue* search_query = reinterpret_cast<const
StringValue*>(query_value);
+ const StringRef* search_query = reinterpret_cast<const
StringRef*>(query_value);
auto act_len = strnlen(search_query->ptr, search_query->len);
std::string search_str(search_query->ptr, act_len);
Review Comment:
warning: no member named 'ptr' in 'doris::StringRef' [clang-diagnostic-error]
```cpp
std::string search_str(search_query->ptr, act_len);
^
```
--
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]