Skip to content

Commit b3cdc04

Browse files
committed
fix windows build
1 parent 70294f9 commit b3cdc04

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/iceberg/avro/avro_schema_util_internal.cc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
#include <avro/Types.hh>
3333
#include <avro/ValidSchema.hh>
3434

35+
#include "iceberg/iceberg_bundle_export.h"
3536
#include "iceberg/metadata_columns.h"
3637
#include "iceberg/schema.h"
3738
#include "iceberg/schema_util_internal.h"
@@ -568,7 +569,9 @@ Status ValidateAvroSchemaEvolution(const Type& expected_type,
568569
ToString(avro_node));
569570
}
570571

571-
Result<::avro::NodePtr> UnwrapUnion(const ::avro::NodePtr& node) {
572+
} // namespace
573+
574+
ICEBERG_BUNDLE_EXPORT Result<::avro::NodePtr> UnwrapUnion(const ::avro::NodePtr& node) {
572575
if (node->type() != ::avro::AVRO_UNION) {
573576
return node;
574577
}
@@ -587,6 +590,7 @@ Result<::avro::NodePtr> UnwrapUnion(const ::avro::NodePtr& node) {
587590
ToString(node));
588591
}
589592

593+
namespace {
590594
Result<FieldProjection> ProjectStruct(const StructType& struct_type,
591595
const ::avro::NodePtr& avro_node,
592596
bool prune_source) {

0 commit comments

Comments
 (0)