PokIsemaine commented on code in PR #2262:
URL: https://github.com/apache/kvrocks/pull/2262#discussion_r1581036870


##########
src/storage/redis_db.cc:
##########
@@ -937,7 +937,7 @@ rocksdb::Status Database::Sort(const RedisType &type, const 
std::string &key, co
     for (const std::string &pattern : args.getpatterns) {
       std::string val = lookupKeyByPattern(pattern, elem.obj);
       if (val.empty()) {
-        elems->emplace_back(redis::NilString(version));
+        elems->emplace_back("");

Review Comment:
   I agree with you, this also requires modifying `lookupKeyByPattern` and 
adding relevant tests



-- 
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]

Reply via email to