Refine filtering external files by pattern option

This commit is contained in:
wjhh2008
2023-12-07 04:46:33 +00:00
committed by ob-robot
parent 0e346eecdd
commit 0fe424c626
23 changed files with 282 additions and 208 deletions

View File

@ -37,6 +37,7 @@
#include "pl/sys_package/ob_dbms_sql.h"
#include "pl/ob_pl_package_state.h"
#include "rpc/obmysql/ob_sql_sock_session.h"
#include "sql/engine/expr/ob_expr_regexp_context.h"
using namespace oceanbase::common;
using namespace oceanbase::share;
@ -5380,6 +5381,14 @@ int ObBasicSessionInfo::get_regexp_time_limit(int64_t &v) const
return get_sys_variable(SYS_VAR_REGEXP_TIME_LIMIT, v);
}
int ObBasicSessionInfo::get_regexp_session_vars(ObExprRegexpSessionVariables &vars) const
{
int ret = OB_SUCCESS;
OZ (get_regexp_stack_limit(vars.regexp_stack_limit_));
OZ (get_regexp_time_limit(vars.regexp_time_limit_));
return ret;
}
void ObBasicSessionInfo::reset_tx_variable(bool reset_next_scope)
{
LOG_DEBUG("reset tx variable", K(lbt()));

View File

@ -55,6 +55,7 @@ class ObSMConnection;
using sql::FLTControlInfo;
namespace sql
{
class ObExprRegexpSessionVariables;
class ObPCMemPctConf;
class ObPartitionHitInfo
{
@ -645,6 +646,7 @@ public:
int get_sql_notes(bool &sql_notes) const;
int get_regexp_stack_limit(int64_t &v) const;
int get_regexp_time_limit(int64_t &v) const;
int get_regexp_session_vars(ObExprRegexpSessionVariables &vars) const;
int update_timezone_info();
const common::ObTimeZoneInfo *get_timezone_info() const { return tz_info_wrap_.get_time_zone_info(); }
const common::ObTimeZoneInfoWrap &get_tz_info_wrap() const { return tz_info_wrap_; }