This is an automated email from the ASF dual-hosted git repository.
gabriellee pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new 56659ecf398 [fix](ut) Fix BE UT (#59898)
56659ecf398 is described below
commit 56659ecf398f20cc72a6cdc96aa724fce94ada82
Author: Gabriel <[email protected]>
AuthorDate: Thu Jan 15 10:45:53 2026 +0800
[fix](ut) Fix BE UT (#59898)
---
be/test/vec/jsonb/json_parser_test.cpp | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/be/test/vec/jsonb/json_parser_test.cpp
b/be/test/vec/jsonb/json_parser_test.cpp
index 1924bd90cb7..b878cc165f9 100644
--- a/be/test/vec/jsonb/json_parser_test.cpp
+++ b/be/test/vec/jsonb/json_parser_test.cpp
@@ -105,7 +105,7 @@ TEST(JsonParserTest, ParseObjectAndArray) {
auto& parse_result_array_2 = result.value();
EXPECT_EQ(parse_result_array_2.paths[0].get_path(), "");
EXPECT_EQ(parse_result_array_2.values[0].get_type(),
doris::PrimitiveType::TYPE_ARRAY);
- auto& array_field =
parse_result_array_2.values[0].get<doris::vectorized::Array>();
+ auto& array_field =
parse_result_array_2.values[0].get<doris::PrimitiveType::TYPE_ARRAY>();
EXPECT_EQ(array_field.size(), 6);
EXPECT_EQ(array_field[0].get_type(), doris::PrimitiveType::TYPE_BIGINT);
@@ -404,7 +404,8 @@ TEST(JsonParserTest, ParseUInt64) {
EXPECT_EQ(result->paths.size(), 1);
EXPECT_EQ(result->paths[0].get_path(), "a");
EXPECT_EQ(result->values[0].get_type(),
doris::PrimitiveType::TYPE_LARGEINT);
- EXPECT_EQ(result->values[0].get<doris::vectorized::Int128>(),
18446744073709551615ULL);
+ EXPECT_EQ(result->values[0].get<doris::PrimitiveType::TYPE_LARGEINT>(),
+ 18446744073709551615ULL);
std::string array_json = R"({"a": [18446744073709551615]})";
result = parser.parse(array_json.c_str(), array_json.size(), config);
@@ -413,10 +414,10 @@ TEST(JsonParserTest, ParseUInt64) {
EXPECT_EQ(result->paths.size(), 1);
EXPECT_EQ(result->paths[0].get_path(), "a");
EXPECT_EQ(result->values[0].get_type(), doris::PrimitiveType::TYPE_ARRAY);
- auto& array_field = result->values[0].get<doris::vectorized::Array>();
+ auto& array_field =
result->values[0].get<doris::PrimitiveType::TYPE_ARRAY>();
EXPECT_EQ(array_field.size(), 1);
EXPECT_EQ(array_field[0].get_type(), doris::PrimitiveType::TYPE_LARGEINT);
- EXPECT_EQ(array_field[0].get<doris::vectorized::Int128>(),
18446744073709551615ULL);
+ EXPECT_EQ(array_field[0].get<doris::PrimitiveType::TYPE_LARGEINT>(),
18446744073709551615ULL);
std::string nested_json = R"({"a": [{"b": 18446744073709551615}]})";
config.enable_flatten_nested = true;
@@ -425,8 +426,8 @@ TEST(JsonParserTest, ParseUInt64) {
EXPECT_EQ(result->values.size(), 1);
EXPECT_EQ(result->paths.size(), 1);
EXPECT_EQ(result->values[0].get_type(), doris::PrimitiveType::TYPE_ARRAY);
- auto& array_field_2 = result->values[0].get<doris::vectorized::Array>();
+ auto& array_field_2 =
result->values[0].get<doris::PrimitiveType::TYPE_ARRAY>();
EXPECT_EQ(array_field_2.size(), 1);
EXPECT_EQ(array_field_2[0].get_type(),
doris::PrimitiveType::TYPE_LARGEINT);
- EXPECT_EQ(array_field_2[0].get<doris::vectorized::Int128>(),
18446744073709551615ULL);
+ EXPECT_EQ(array_field_2[0].get<doris::PrimitiveType::TYPE_LARGEINT>(),
18446744073709551615ULL);
}
\ No newline at end of file
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]