diff --git a/src/objit/include/objit/common/ob_item_type.h b/src/objit/include/objit/common/ob_item_type.h index e8ee7b545..2d50df43f 100755 --- a/src/objit/include/objit/common/ob_item_type.h +++ b/src/objit/include/objit/common/ob_item_type.h @@ -861,6 +861,7 @@ typedef enum ObItemType T_FUN_SYS_COSINE_DISTANCE = 1741, T_FUN_SYS_VECTOR_DIMS = 1742, T_FUN_SYS_VECTOR_NORM = 1743, + T_FUN_SYS_VECTOR_DISTANCE = 1744, ///< @note add new oracle only function type before this line T_FUN_SYS_TABLET_AUTOINC_NEXTVAL = 1801, // add only for heap table diff --git a/src/sql/engine/expr/ob_expr_eval_functions.cpp b/src/sql/engine/expr/ob_expr_eval_functions.cpp index 3d5d5000d..bc39ec638 100644 --- a/src/sql/engine/expr/ob_expr_eval_functions.cpp +++ b/src/sql/engine/expr/ob_expr_eval_functions.cpp @@ -1206,6 +1206,7 @@ static ObExpr::EvalFunc g_expr_eval_functions[] = { NULL, // ObExprVectorIPDistance::calc_inner_product, /* 724 */ NULL, // ObExprVectorDims::calc_dims, /* 725 */ NULL, // ObExprVectorNorm::calc_norm, /* 726 */ + NULL, // ObExprVectorDistance::calc_distance, /* 727 */ }; static ObExpr::EvalBatchFunc g_expr_eval_batch_functions[] = {