Skip to content

Commit fa2a3d5

Browse files
authored
fix(test): fix missing registering of avro map logical type (#547)
1 parent 911494a commit fa2a3d5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/iceberg/test/avro_schema_test.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
#include <avro/Types.hh>
2525
#include <gtest/gtest.h>
2626

27+
#include "iceberg/avro/avro_register.h"
2728
#include "iceberg/avro/avro_schema_util_internal.h"
2829
#include "iceberg/metadata_columns.h"
2930
#include "iceberg/name_mapping.h"
@@ -605,6 +606,7 @@ TEST(HasIdVisitorTest, ComplexNestedSchema) {
605606
}
606607

607608
TEST(HasIdVisitorTest, ArrayBackedMapWithIds) {
609+
::iceberg::avro::RegisterLogicalTypes();
608610
const std::string schema_json = R"({
609611
"type": "array",
610612
"items": {
@@ -1022,6 +1024,8 @@ TEST(AvroSchemaProjectionTest, ProjectMapType) {
10221024
}
10231025

10241026
TEST(AvroSchemaProjectionTest, ProjectMapTypeWithNonStringKey) {
1027+
::iceberg::avro::RegisterLogicalTypes();
1028+
10251029
// Create iceberg schema with an int->string map
10261030
Schema expected_schema({
10271031
SchemaField::MakeOptional(

0 commit comments

Comments
 (0)