This is an automated email from the ASF dual-hosted git repository.

gangwu pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/iceberg-cpp.git


The following commit(s) were added to refs/heads/main by this push:
     new fa2a3d52 fix(test): fix missing registering of avro map logical type 
(#547)
fa2a3d52 is described below

commit fa2a3d52849208dd743cb1ca03a337cac4836cdd
Author: Feiyang Li <[email protected]>
AuthorDate: Thu Jan 29 22:04:00 2026 +0800

    fix(test): fix missing registering of avro map logical type (#547)
---
 src/iceberg/test/avro_schema_test.cc | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/iceberg/test/avro_schema_test.cc 
b/src/iceberg/test/avro_schema_test.cc
index 8fcc9567..2c1ee8a9 100644
--- a/src/iceberg/test/avro_schema_test.cc
+++ b/src/iceberg/test/avro_schema_test.cc
@@ -24,6 +24,7 @@
 #include <avro/Types.hh>
 #include <gtest/gtest.h>
 
+#include "iceberg/avro/avro_register.h"
 #include "iceberg/avro/avro_schema_util_internal.h"
 #include "iceberg/metadata_columns.h"
 #include "iceberg/name_mapping.h"
@@ -605,6 +606,7 @@ TEST(HasIdVisitorTest, ComplexNestedSchema) {
 }
 
 TEST(HasIdVisitorTest, ArrayBackedMapWithIds) {
+  ::iceberg::avro::RegisterLogicalTypes();
   const std::string schema_json = R"({
     "type": "array",
     "items": {
@@ -1022,6 +1024,8 @@ TEST(AvroSchemaProjectionTest, ProjectMapType) {
 }
 
 TEST(AvroSchemaProjectionTest, ProjectMapTypeWithNonStringKey) {
+  ::iceberg::avro::RegisterLogicalTypes();
+
   // Create iceberg schema with an int->string map
   Schema expected_schema({
       SchemaField::MakeOptional(

Reply via email to