Improve to_bitmap parse int performance (#2223)

This commit is contained in:
kangkaisen
2019-11-19 18:00:19 +08:00
committed by ZHAO Chun
parent 42a4fff562
commit 14769b0beb
6 changed files with 146 additions and 25 deletions

View File

@ -90,7 +90,7 @@ TEST_F(BitmapFunctionsTest, to_bitmap_invalid_argument) {
ASSERT_EQ(expected, result);
ASSERT_TRUE(ctx->has_error());
std::string error_msg("The to_bitmap function argument: xxxxxx type isn't integer family");
std::string error_msg("The to_bitmap function argument: xxxxxx type isn't integer family or exceed unsigned integer max value 4294967295");
ASSERT_EQ(error_msg, ctx->error_msg());
}
@ -103,7 +103,7 @@ TEST_F(BitmapFunctionsTest, to_bitmap_out_of_range) {
ASSERT_TRUE(ctx->has_error());
std::string error_msg("The to_bitmap function argument: 4294967296 exceed unsigned integer max value 4294967295");
std::string error_msg("The to_bitmap function argument: 4294967296 type isn't integer family or exceed unsigned integer max value 4294967295");
ASSERT_EQ(error_msg, ctx->error_msg());
}