Do not report ERROR when sample rate equals 100
This commit is contained in:
@ -33,11 +33,9 @@
|
||||
#include "sql/resolver/ddl/ob_alter_table_resolver.h"
|
||||
#include "sql/resolver/ddl/ob_drop_table_resolver.h"
|
||||
#include "sql/resolver/ddl/ob_create_index_resolver.h"
|
||||
#include "sql/resolver/ddl/ob_create_mlog_resolver.h"
|
||||
#include "sql/resolver/ddl/ob_create_synonym_resolver.h"
|
||||
#include "sql/resolver/ddl/ob_drop_synonym_resolver.h"
|
||||
#include "sql/resolver/ddl/ob_drop_index_resolver.h"
|
||||
#include "sql/resolver/ddl/ob_drop_mlog_resolver.h"
|
||||
#include "sql/resolver/ddl/ob_create_database_resolver.h"
|
||||
#include "sql/resolver/ddl/ob_alter_database_resolver.h"
|
||||
#include "sql/resolver/ddl/ob_use_database_resolver.h"
|
||||
@ -133,8 +131,6 @@
|
||||
#include "pl/ob_pl_package.h"
|
||||
#include "sql/resolver/ddl/ob_create_context_resolver.h"
|
||||
#include "sql/resolver/ddl/ob_drop_context_resolver.h"
|
||||
#include "sql/resolver/cmd/ob_tenant_snapshot_resolver.h"
|
||||
#include "sql/resolver/cmd/ob_tenant_clone_resolver.h"
|
||||
#ifdef OB_BUILD_TDE_SECURITY
|
||||
#include "sql/resolver/ddl/ob_create_tablespace_resolver.h"
|
||||
#include "sql/resolver/ddl/ob_alter_tablespace_resolver.h"
|
||||
@ -322,14 +318,6 @@ int ObResolver::resolve(IsPrepared if_prepared, const ParseNode &parse_tree, ObS
|
||||
REGISTER_STMT_RESOLVER(CreateIndex);
|
||||
break;
|
||||
}
|
||||
case T_CREATE_MLOG: {
|
||||
REGISTER_STMT_RESOLVER(CreateMLog);
|
||||
break;
|
||||
}
|
||||
case T_DROP_MLOG: {
|
||||
REGISTER_STMT_RESOLVER(DropMLog);
|
||||
break;
|
||||
}
|
||||
case T_CREATE_VIEW: {
|
||||
REGISTER_STMT_RESOLVER(CreateView);
|
||||
break;
|
||||
@ -908,8 +896,7 @@ int ObResolver::resolve(IsPrepared if_prepared, const ParseNode &parse_tree, ObS
|
||||
}
|
||||
case T_ANALYZE:
|
||||
case T_MYSQL_UPDATE_HISTOGRAM:
|
||||
case T_MYSQL_DROP_HISTOGRAM:
|
||||
case T_MYSQL_ANALYZE: {
|
||||
case T_MYSQL_DROP_HISTOGRAM: {
|
||||
REGISTER_STMT_RESOLVER(AnalyzeStmt);
|
||||
break;
|
||||
}
|
||||
@ -1161,18 +1148,6 @@ int ObResolver::resolve(IsPrepared if_prepared, const ParseNode &parse_tree, ObS
|
||||
REGISTER_STMT_RESOLVER(TableTTL);
|
||||
break;
|
||||
}
|
||||
case T_CREATE_TENANT_SNAPSHOT: {
|
||||
REGISTER_STMT_RESOLVER(CreateTenantSnapshot);
|
||||
break;
|
||||
}
|
||||
case T_DROP_TENANT_SNAPSHOT: {
|
||||
REGISTER_STMT_RESOLVER(DropTenantSnapshot);
|
||||
break;
|
||||
}
|
||||
case T_CLONE_TENANT: {
|
||||
REGISTER_STMT_RESOLVER(CloneTenant);
|
||||
break;
|
||||
}
|
||||
case T_ALTER_SYSTEM_RESET_PARAMETER: {
|
||||
REGISTER_STMT_RESOLVER(ResetConfig);
|
||||
break;
|
||||
@ -1181,10 +1156,6 @@ int ObResolver::resolve(IsPrepared if_prepared, const ParseNode &parse_tree, ObS
|
||||
REGISTER_STMT_RESOLVER(AlterSystemReset);
|
||||
break;
|
||||
}
|
||||
case T_CANCEL_CLONE: {
|
||||
REGISTER_STMT_RESOLVER(CancelClone);
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
ret = OB_NOT_SUPPORTED;
|
||||
const char *type_name = get_type_name(parse_tree.type_);
|
||||
@ -1198,11 +1169,6 @@ int ObResolver::resolve(IsPrepared if_prepared, const ParseNode &parse_tree, ObS
|
||||
OZ( (static_cast<ObDMLStmt*>(stmt)->disable_writing_external_table()) );
|
||||
}
|
||||
|
||||
if (OB_SUCC(ret) && stmt->is_dml_stmt()
|
||||
&& !params_.session_info_->is_inner()) {
|
||||
OZ( (static_cast<ObDMLStmt*>(stmt)->disable_writing_materialized_view()) );
|
||||
}
|
||||
|
||||
if (OB_SUCC(ret)) {
|
||||
if (ObStmt::is_write_stmt(stmt->get_stmt_type(), stmt->has_global_variable())
|
||||
&& !MTL_TENANT_ROLE_CACHE_IS_PRIMARY_OR_INVALID()) {
|
||||
@ -1248,21 +1214,6 @@ int ObResolver::resolve(IsPrepared if_prepared, const ParseNode &parse_tree, ObS
|
||||
params_.query_ctx_->is_contain_select_for_update_ = is_contain_select_for_update;
|
||||
params_.query_ctx_->has_dml_write_stmt_ = dml_stmt->is_dml_write_stmt();
|
||||
}
|
||||
|
||||
if (OB_SUCC(ret)) {
|
||||
bool has_rich_format_hint = false;
|
||||
bool enable_rich_format = false;
|
||||
ObOptParamHint &opt_hint = params_.query_ctx_->query_hint_.global_hint_.opt_params_;
|
||||
if (OB_FAIL(opt_hint.check_and_get_bool_opt_param(ObOptParamHint::ENABLE_RICH_VECTOR_FORMAT,
|
||||
has_rich_format_hint,
|
||||
enable_rich_format))) {
|
||||
LOG_WARN("check and get bool opt param failed", K(ret));
|
||||
} else if (has_rich_format_hint) {
|
||||
params_.session_info_->set_force_rich_format(
|
||||
enable_rich_format ? ObBasicSessionInfo::ForceRichFormatStatus::FORCE_ON :
|
||||
ObBasicSessionInfo::ForceRichFormatStatus::FORCE_OFF);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (OB_SUCC(ret)) {
|
||||
stmt::StmtType stmt_type = stmt->get_stmt_type();
|
||||
|
||||
Reference in New Issue
Block a user