Accelerate the compile process

This commit is contained in:
obdev
2024-08-08 07:47:37 +00:00
committed by ob-robot
parent f2641039cf
commit 5ef4a2d36c
2 changed files with 12 additions and 21 deletions

View File

@ -1,14 +1,18 @@
ob_set_subtarget(ob_share ALONE
ob_rpc_struct.cpp
ob_tenant_mgr.cpp
datum/ob_datum_funcs.cpp
schema/ob_schema_service_sql_impl.cpp
parameter/ob_parameter_attr.cpp
vector/expr_cmp_func.cpp
aggregate/sum.cpp
aggregate/approx_count_distinct.cpp
aggregate/count.cpp
aggregate/iaggregate.cpp
aggregate/min_max.cpp
aggregate/processor.cpp
aggregate/single_row.cpp
aggregate/approx_count_distinct.cpp
aggregate/sum.cpp
aggregate/sys_bit.cpp
datum/ob_datum_funcs.cpp
ob_rpc_struct.cpp
ob_tenant_mgr.cpp
parameter/ob_parameter_attr.cpp
schema/ob_schema_service_sql_impl.cpp
vector/expr_cmp_func.cpp
)
file(GLOB SCHEMA_CPPS "inner_table/ob_inner_table_schema.*.cpp")
@ -567,13 +571,6 @@ ob_set_subtarget(ob_share vector
vector/ob_continuous_base.cpp
)
ob_set_subtarget(ob_share aggregate
aggregate/iaggregate.cpp
aggregate/count.cpp
aggregate/min_max.cpp
aggregate/sys_bit.cpp
)
ob_add_new_object_target(ob_share ob_share)
target_compile_options(ob_share PRIVATE)

View File

@ -281,20 +281,14 @@ struct EvalVectorCmp
K(right_format), K(res_format));
if (is_valid_format(left_format) && is_valid_format(right_format) && is_valid_format(res_format)) {
switch (CALC_FORMAT(left_format, right_format, res_format)) {
VECTOR_CMP_CASE(VEC_FIXED, VEC_FIXED, VEC_FIXED);
VECTOR_CMP_CASE(VEC_FIXED, VEC_UNIFORM, VEC_FIXED);
VECTOR_CMP_CASE(VEC_FIXED, VEC_UNIFORM_CONST, VEC_FIXED);
VECTOR_CMP_CASE(VEC_DISCRETE, VEC_DISCRETE, VEC_FIXED);
VECTOR_CMP_CASE(VEC_DISCRETE, VEC_UNIFORM, VEC_FIXED);
VECTOR_CMP_CASE(VEC_DISCRETE, VEC_UNIFORM_CONST, VEC_FIXED);
VECTOR_CMP_CASE(VEC_UNIFORM, VEC_FIXED, VEC_FIXED);
VECTOR_CMP_CASE(VEC_UNIFORM, VEC_DISCRETE, VEC_FIXED);
VECTOR_CMP_CASE(VEC_UNIFORM, VEC_UNIFORM, VEC_FIXED);
VECTOR_CMP_CASE(VEC_UNIFORM, VEC_UNIFORM_CONST, VEC_FIXED);
VECTOR_CMP_CASE(VEC_UNIFORM_CONST, VEC_FIXED, VEC_FIXED);
VECTOR_CMP_CASE(VEC_UNIFORM_CONST, VEC_DISCRETE, VEC_FIXED);
VECTOR_CMP_CASE(VEC_UNIFORM_CONST, VEC_UNIFORM, VEC_FIXED);
default: {