mrhhsg commented on a change in pull request #8515:
URL: https://github.com/apache/incubator-doris/pull/8515#discussion_r829633754
##########
File path: be/src/olap/field.h
##########
@@ -247,7 +247,7 @@ class Field {
// used by init scan key stored in string format
// value_string should end with '\0'
inline OLAPStatus from_string(char* buf, const std::string& value_string)
const {
- if (type() == OLAP_FIELD_TYPE_STRING) {
+ if (type() == OLAP_FIELD_TYPE_STRING && !value_string.empty()) {
Review comment:
可能需要将 `slice->size` 设置为 0?
--
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]