Do not report ERROR when sample rate equals 100
This commit is contained in:
@ -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();
|
||||
|
||||
Reference in New Issue
Block a user