Skip to content

Commit fdec322

Browse files
Update src/iceberg/avro/avro_schema_util.cc
Co-authored-by: Gang Wu <ustcwg@gmail.com>
1 parent f7ef8f2 commit fdec322

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/iceberg/avro/avro_schema_util.cc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -837,9 +837,7 @@ Result<::avro::NodePtr> CreateRecordNodeWithFieldIds(const ::avro::NodePtr& orig
837837
attributes.addAttribute(std::string(kFieldIdProp),
838838
std::to_string(nested_field->field_id.value()), false);
839839

840-
if (!attributes.attributes().empty()) {
841-
new_record_node->addCustomAttributesForField(attributes);
842-
}
840+
new_record_node->addCustomAttributesForField(attributes);
843841

844842
// Recursively apply field IDs to nested fields
845843
ICEBERG_ASSIGN_OR_RAISE(auto new_nested_node,

0 commit comments

Comments
 (0)