[refactor](remove non vec code) remove json functions string functions match functions and some code (#16141)

remove json functions code
remove string functions code
remove math functions code
move MatchPredicate to olap since it is only used in storage predicate process
remove some code in tuple, Tuple structure should be removed in the future.
remove many code in collection value structure, they are useless
This commit is contained in:
yiguolei
2023-01-26 16:21:12 +08:00
committed by GitHub
parent 615a5e7b51
commit adb758dcac
55 changed files with 50 additions and 7952 deletions

View File

@ -25,7 +25,6 @@
#include "runtime/mem_pool.h"
#include "runtime/memory/mem_tracker.h"
#include "udf/udf_internal.h"
#include "util/array_parser.h"
namespace doris {
@ -38,19 +37,6 @@ void ArrayUtils::prepare_context(FunctionContext& context, MemPool& mem_pool,
context.impl()->_pool = new FreePool(&mem_pool);
}
Status ArrayUtils::create_collection_value(CollectionValue* collection_value,
FunctionContext* context,
const std::string& json_string) {
CollectionVal collection_val;
auto status = ArrayParser::parse(collection_val, context, StringVal(json_string.c_str()));
if (!status.ok()) {
return status;
}
new (collection_value) CollectionValue(collection_val.data, collection_val.length,
collection_val.has_null, collection_val.null_signs);
return Status::OK();
}
TypeDesc ArrayUtils::create_function_type_desc(const ColumnPB& column_pb) {
TypeDesc type_desc;
type_desc.len = column_pb.length();