[test](case) add test case to improve code coverage (#25516)

[test](case) add test case to improve code coverage (#25516)
This commit is contained in:
zhangstar333
2023-11-01 12:51:12 +08:00
committed by GitHub
parent b94e6d6c05
commit 8f15f9adf6
12 changed files with 202 additions and 11 deletions

View File

@ -200,14 +200,6 @@ Status UserFunctionCache::_load_cached_lib() {
return Status::OK();
}
std::string get_real_symbol(const std::string& symbol) {
static std::regex rx1("8palo_udf");
std::string str1 = std::regex_replace(symbol, rx1, "9doris_udf");
static std::regex rx2("4palo");
std::string str2 = std::regex_replace(str1, rx2, "5doris");
return str2;
}
Status UserFunctionCache::_get_cache_entry(int64_t fid, const std::string& url,
const std::string& checksum,
std::shared_ptr<UserFunctionCacheEntry>& output_entry,