Do not report ERROR when sample rate equals 100
This commit is contained in:
@ -26,10 +26,6 @@
|
||||
#include "share/datum/ob_datum_funcs.h"
|
||||
#include "common/expression/ob_expr_string_buf.h"
|
||||
#include "share/object/ob_obj_cast.h"
|
||||
#include "share/vector/ob_uniform_vector.h"
|
||||
#include "share/vector/ob_discrete_vector.h"
|
||||
#include "share/vector/ob_fixed_length_vector.h"
|
||||
#include "share/vector/ob_continuous_vector.h"
|
||||
#include "common/object/ob_obj_compare.h"
|
||||
#include "common/ob_accuracy.h"
|
||||
#include "rpc/obmysql/ob_mysql_global.h"
|
||||
@ -40,7 +36,6 @@
|
||||
#include "sql/engine/expr/ob_expr_extra_info_factory.h"
|
||||
#include "sql/engine/expr/ob_i_expr_extra_info.h"
|
||||
#include "lib/hash/ob_hashset.h"
|
||||
#include "share/schema/ob_schema_struct.h"
|
||||
|
||||
|
||||
#define GET_EXPR_CTX(ClassType, ctx, id) static_cast<ClassType *>((ctx).get_expr_op_ctx(id))
|
||||
@ -210,18 +205,6 @@ protected:
|
||||
ObExprOperatorType expr_type_;
|
||||
};
|
||||
|
||||
#define DECLARE_SET_LOCAL_SESSION_VARS \
|
||||
virtual int set_local_session_vars(ObRawExpr *raw_expr, \
|
||||
const share::schema::ObLocalSessionVar *local_session_vars, \
|
||||
const ObBasicSessionInfo *session, \
|
||||
share::schema::ObLocalSessionVar &local_vars)
|
||||
|
||||
#define DEF_SET_LOCAL_SESSION_VARS(TypeName, raw_expr) \
|
||||
int TypeName::set_local_session_vars(ObRawExpr *raw_expr, \
|
||||
const share::schema::ObLocalSessionVar *local_session_vars, \
|
||||
const ObBasicSessionInfo *session, \
|
||||
share::schema::ObLocalSessionVar &local_vars)
|
||||
|
||||
class ObExprOperator : public common::ObDLinkBase<ObExprOperator>
|
||||
{
|
||||
OB_UNIS_VERSION_V(1);
|
||||
@ -493,6 +476,7 @@ public:
|
||||
const common::ObCollationType conn_coll_type,
|
||||
bool is_oracle_mode,
|
||||
const common::ObLengthSemantics default_length_semantics,
|
||||
const sql::ObSQLSessionInfo *session,
|
||||
bool need_merge_type = TRUE,
|
||||
bool skip_null = FALSE,
|
||||
bool is_called_in_sql = TRUE);
|
||||
@ -503,6 +487,7 @@ public:
|
||||
const common::ObCollationType conn_coll_type,
|
||||
bool is_oracle_mode,
|
||||
const common::ObLengthSemantics default_length_semantics,
|
||||
const sql::ObSQLSessionInfo *session,
|
||||
bool need_merge_type = TRUE,
|
||||
bool skip_null = FALSE,
|
||||
bool is_called_in_sql = TRUE);
|
||||
@ -548,7 +533,7 @@ public:
|
||||
|
||||
static common::ObCollationType get_default_collation_type(
|
||||
common::ObObjType type,
|
||||
ObExprTypeCtx &type_ctx
|
||||
const ObBasicSessionInfo &session_info
|
||||
);
|
||||
|
||||
static int is_same_kind_type_for_case(const ObExprResType &type1, const ObExprResType &type2, bool &match);
|
||||
@ -597,9 +582,6 @@ public:
|
||||
virtual common::ObCastMode get_cast_mode() const;
|
||||
virtual int is_valid_for_generated_column(const ObRawExpr*expr, const common::ObIArray<ObRawExpr *> &exprs, bool &is_valid) const;
|
||||
static int check_first_param_not_time(const common::ObIArray<ObRawExpr *> &exprs, bool ¬_time);
|
||||
//Extract the info of sys vars which need to be used in resolving or excuting into local_sys_vars.
|
||||
DECLARE_SET_LOCAL_SESSION_VARS;
|
||||
static int add_local_var_to_expr(share::ObSysVarClassType var_type, const share::schema::ObLocalSessionVar *local_session_var, const ObBasicSessionInfo *session, share::schema::ObLocalSessionVar &local_vars);
|
||||
protected:
|
||||
ObExpr *get_rt_expr(const ObRawExpr &raw_expr) const;
|
||||
|
||||
@ -810,7 +792,7 @@ inline int ObExprOperator::calc_result_typeN(ObExprResType &type,
|
||||
UNUSED(param_num);
|
||||
UNUSED(type_ctx);
|
||||
UNUSED(arg_arrs);
|
||||
SQL_LOG_RET(WARN, common::OB_NOT_IMPLEMENT, "not implement", K(type_), K(get_type_name(type_)));
|
||||
SQL_LOG_RET(ERROR, common::OB_NOT_IMPLEMENT, "not implement", K(type_), K(get_type_name(type_)));
|
||||
return common::OB_NOT_IMPLEMENT;
|
||||
}
|
||||
|
||||
@ -1194,8 +1176,6 @@ public:
|
||||
// CAUTION: null safe equal row compare is not included.
|
||||
static int row_cmp(const ObExpr &expr, ObDatum &expr_datum,
|
||||
ObExpr **l_row, ObEvalCtx &l_ctx, ObExpr **r_row, ObEvalCtx &r_ctx);
|
||||
template <bool IS_LEFT>
|
||||
static int try_get_inner_row_cmp_ret(const int ret_code, int &cmp_ret);
|
||||
|
||||
OB_INLINE static int get_comparator_operands(
|
||||
const ObExpr &expr,
|
||||
@ -1875,7 +1855,6 @@ public:
|
||||
ObDatum &res_datum);
|
||||
static int calc_result2_mysql(const ObExpr &expr, ObEvalCtx &ctx,
|
||||
ObDatum &res_datum);
|
||||
DECLARE_SET_LOCAL_SESSION_VARS;
|
||||
protected:
|
||||
enum BitOperator
|
||||
{
|
||||
@ -2323,18 +2302,4 @@ private:
|
||||
#define GET_EXEC_ALLOCATOR(expr_ctx) \
|
||||
((nullptr == expr_ctx.exec_ctx_) ? nullptr : &(expr_ctx.exec_ctx_->get_allocator())); \
|
||||
|
||||
#define SET_LOCAL_SYSVAR_CAPACITY(sz) \
|
||||
if (OB_SUCC(ret)) { \
|
||||
if (OB_FAIL(local_vars.set_local_var_capacity(sz))) { \
|
||||
LOG_WARN("reserve failed", K(ret)); \
|
||||
} \
|
||||
}
|
||||
|
||||
#define EXPR_ADD_LOCAL_SYSVAR(var_type) \
|
||||
if (OB_SUCC(ret)) { \
|
||||
if (OB_FAIL(add_local_var_to_expr(var_type, local_session_vars, session, local_vars))) { \
|
||||
LOG_WARN("fail to add local sys var", K(ret), K(var_type)); \
|
||||
} \
|
||||
}
|
||||
|
||||
#endif //OCEANBASE_SQL_OB_EXPR_OPERATOR_H_
|
||||
|
||||
Reference in New Issue
Block a user