Do not report ERROR when sample rate equals 100

This commit is contained in:
ZenoWang
2024-02-06 14:49:31 +00:00
committed by ob-robot
parent 1f1d5c08ae
commit c8ef409bf3
3710 changed files with 486984 additions and 3083329 deletions

View File

@ -54,9 +54,9 @@ TEST_F(TestJsonPath, test_is_mysql_terminator_mysql)
for(int i = 0; i < sizeof(ch); ++i)
{
if (i <= 3) {
ASSERT_EQ(true, ObJsonPathUtil::is_key_name_terminator(ch[i]));
ASSERT_EQ(true, ObJsonPathUtil::is_mysql_terminator(ch[i]));
} else {
ASSERT_EQ(false, ObJsonPathUtil::is_key_name_terminator(ch[i]));
ASSERT_EQ(false, ObJsonPathUtil::is_mysql_terminator(ch[i]));
}
}
}
@ -685,7 +685,6 @@ TEST_F(TestJsonPath, test_member_node)
TEST_F(TestJsonPath, test_ellipsis_node)
{
int ret = OB_SUCCESS;
set_compat_mode(oceanbase::lib::Worker::CompatMode::MYSQL);
ObArenaAllocator allocator(ObModIds::TEST);
ObJsonPath test_path("$**[10]", &allocator);
ret = test_path.parse_path();