wuyunfeng commented on a change in pull request #2865: support escape characte URL: https://github.com/apache/incubator-doris/pull/2865#discussion_r376764423
########## File path: be/src/exec/es/es_query_builder.cpp ########## @@ -110,8 +110,17 @@ void WildCardQueryBuilder::to_json(rapidjson::Document* document, rapidjson::Val } WildCardQueryBuilder::WildCardQueryBuilder(const ExtLikePredicate& like_predicate) : _field(like_predicate.col.name) { _like_value = like_predicate.value.to_string(); - std::replace(_like_value.begin(), _like_value.end(), '_', '?'); - std::replace(_like_value.begin(), _like_value.end(), '%', '*'); + // example of translation : + // abc\_123 ===> abc?123 Review comment: How about abc_123 ? ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org