[CP] not to print plain text of query sql which contains sensitive data

This commit is contained in:
yinyj17
2023-10-09 12:17:17 +00:00
committed by ob-robot
parent a81e6710b5
commit 86005edbcc
11 changed files with 96 additions and 51 deletions

View File

@ -84,6 +84,20 @@ int ObDDLArg::assign(const ObDDLArg &other)
return ret;
}
DEF_TO_STRING(ObDDLArg)
{
int64_t pos = 0;
J_KV("ddl_stmt_str", contain_sensitive_data() ? ObString(OB_MASKED_STR) : ddl_stmt_str_,
K_(exec_tenant_id),
K_(ddl_id_str),
K_(sync_from_primary),
K_(based_schema_object_infos),
K_(parallelism),
K_(task_id),
K_(consumer_group_id));
return pos;
}
DEF_TO_STRING(ObGetRootserverRoleResult)
{
int64_t pos = 0;