diff --git a/be/src/exec/schema_scan_node.cpp b/be/src/exec/schema_scan_node.cpp index 69feae25fd..b689154274 100644 --- a/be/src/exec/schema_scan_node.cpp +++ b/be/src/exec/schema_scan_node.cpp @@ -17,8 +17,6 @@ #include "schema_scan_node.h" -#include - #include "exec/schema_scanner/schema_helper.h" #include "exec/text_converter.hpp" #include "gen_cpp/PlanNodes_types.h" @@ -28,6 +26,7 @@ #include "runtime/string_value.h" #include "runtime/tuple_row.h" #include "util/runtime_profile.h" +#include "util/string_util.h" namespace doris { @@ -158,8 +157,8 @@ Status SchemaScanNode::prepare(RuntimeState* state) { // TODO(zhaochun): Is this slow? int j = 0; for (; j < _src_tuple_desc->slots().size(); ++j) { - if (boost::iequals(_dest_tuple_desc->slots()[i]->col_name(), - _src_tuple_desc->slots()[j]->col_name())) { + if (iequal(_dest_tuple_desc->slots()[i]->col_name(), + _src_tuple_desc->slots()[j]->col_name())) { break; } } diff --git a/be/src/http/action/mini_load.cpp b/be/src/http/action/mini_load.cpp index b841b21add..53c1464471 100644 --- a/be/src/http/action/mini_load.cpp +++ b/be/src/http/action/mini_load.cpp @@ -270,15 +270,15 @@ Status MiniLoadAction::_merge_header(HttpRequest* http_req, } } if (!http_req->header(HTTP_NEGATIVE).empty() && - boost::iequals(http_req->header(HTTP_NEGATIVE), "true")) { + iequal(http_req->header(HTTP_NEGATIVE), "true")) { (*params)[HTTP_NEGATIVE] = "true"; } else { (*params)[HTTP_NEGATIVE] = "false"; } if (!http_req->header(HTTP_STRICT_MODE).empty()) { - if (boost::iequals(http_req->header(HTTP_STRICT_MODE), "false")) { + if (iequal(http_req->header(HTTP_STRICT_MODE), "false")) { (*params)[HTTP_STRICT_MODE] = "false"; - } else if (boost::iequals(http_req->header(HTTP_STRICT_MODE), "true")) { + } else if (iequal(http_req->header(HTTP_STRICT_MODE), "true")) { (*params)[HTTP_STRICT_MODE] = "true"; } else { return Status::InvalidArgument("Invalid strict mode format. Must be bool type"); @@ -297,7 +297,7 @@ Status MiniLoadAction::_merge_header(HttpRequest* http_req, (*params)[HTTP_JSONROOT] = http_req->header(HTTP_JSONROOT); } if (!http_req->header(HTTP_STRIP_OUTER_ARRAY).empty()) { - if (boost::iequals(http_req->header(HTTP_STRIP_OUTER_ARRAY), "true")) { + if (iequal(http_req->header(HTTP_STRIP_OUTER_ARRAY), "true")) { (*params)[HTTP_STRIP_OUTER_ARRAY] = "true"; } else { (*params)[HTTP_STRIP_OUTER_ARRAY] = "false"; @@ -306,7 +306,7 @@ Status MiniLoadAction::_merge_header(HttpRequest* http_req, (*params)[HTTP_STRIP_OUTER_ARRAY] = "false"; } if (!http_req->header(HTTP_FUZZY_PARSE).empty()) { - if (boost::iequals(http_req->header(HTTP_FUZZY_PARSE), "true")) { + if (iequal(http_req->header(HTTP_FUZZY_PARSE), "true")) { (*params)[HTTP_FUZZY_PARSE] = "true"; } else { (*params)[HTTP_FUZZY_PARSE] = "false"; @@ -315,7 +315,7 @@ Status MiniLoadAction::_merge_header(HttpRequest* http_req, (*params)[HTTP_FUZZY_PARSE] = "false"; } if (!http_req->header(HTTP_READ_JSON_BY_LINE).empty()) { - if (boost::iequals(http_req->header(HTTP_READ_JSON_BY_LINE), "true")) { + if (iequal(http_req->header(HTTP_READ_JSON_BY_LINE), "true")) { (*params)[HTTP_READ_JSON_BY_LINE] = "true"; } else { (*params)[HTTP_READ_JSON_BY_LINE] = "false"; @@ -817,9 +817,9 @@ Status MiniLoadAction::_process_put(HttpRequest* req, StreamLoadContext* ctx) { auto strict_mode_it = params.find(STRICT_MODE_KEY); if (strict_mode_it != params.end()) { std::string strict_mode_value = strict_mode_it->second; - if (boost::iequals(strict_mode_value, "false")) { + if (iequal(strict_mode_value, "false")) { put_request.__set_strictMode(false); - } else if (boost::iequals(strict_mode_value, "true")) { + } else if (iequal(strict_mode_value, "true")) { put_request.__set_strictMode(true); } else { return Status::InvalidArgument("Invalid strict mode format. Must be bool type"); diff --git a/be/src/olap/tablet_meta.cpp b/be/src/olap/tablet_meta.cpp index 6dfaa2c54d..ffaef7b2d1 100644 --- a/be/src/olap/tablet_meta.cpp +++ b/be/src/olap/tablet_meta.cpp @@ -17,7 +17,6 @@ #include "olap/tablet_meta.h" -#include #include #include "olap/file_helper.h" @@ -25,6 +24,7 @@ #include "olap/olap_define.h" #include "olap/rowset/alpha_rowset_meta.h" #include "olap/tablet_meta_manager.h" +#include "util/string_util.h" #include "util/uid_util.h" #include "util/url_coding.h" @@ -151,7 +151,7 @@ TabletMeta::TabletMeta(int64_t table_id, int64_t partition_id, int64_t tablet_id for (auto& index : tablet_schema.indexes) { if (index.index_type == TIndexType::type::BITMAP) { DCHECK_EQ(index.columns.size(), 1); - if (boost::iequals(tcolumn.column_name, index.columns[0])) { + if (iequal(tcolumn.column_name, index.columns[0])) { column->set_has_bitmap_index(true); break; } diff --git a/be/src/runtime/small_file_mgr.cpp b/be/src/runtime/small_file_mgr.cpp index 6f88cacd70..aa9d65ab01 100644 --- a/be/src/runtime/small_file_mgr.cpp +++ b/be/src/runtime/small_file_mgr.cpp @@ -20,7 +20,6 @@ #include #include -#include // boost::algorithm::starts_with #include #include "common/status.h" @@ -32,6 +31,7 @@ #include "util/doris_metrics.h" #include "util/file_utils.h" #include "util/md5.h" +#include "util/string_util.h" namespace doris { @@ -134,7 +134,7 @@ Status SmallFileMgr::_check_file(const CacheEntry& entry, const std::string& md5 if (!FileUtils::check_exist(entry.path)) { return Status::InternalError("file not exist"); } - if (!boost::iequals(md5, entry.md5)) { + if (!iequal(md5, entry.md5)) { return Status::InternalError("invalid MD5"); } return Status::OK(); @@ -187,7 +187,7 @@ Status SmallFileMgr::_download_file(int64_t file_id, const std::string& md5, RETURN_IF_ERROR(status); digest.digest(); - if (!boost::iequals(digest.hex(), md5)) { + if (!iequal(digest.hex(), md5)) { LOG(WARNING) << "file's checksum is not equal, download: " << digest.hex() << ", expected: " << md5 << ", file: " << file_id; return Status::InternalError("download with invalid md5");