Skip to content

Commit a7cf19b

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

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
@@ -827,9 +827,7 @@ Result<::avro::NodePtr> CreateRecordNodeWithFieldIds(const ::avro::NodePtr& orig
827827
attributes.addAttribute(std::string(kFieldIdProp),
828828
std::to_string(nested_field->field_id.value()), false);
829829

830-
if (!attributes.attributes().empty()) {
831-
new_record_node->addCustomAttributesForField(attributes);
832-
}
830+
new_record_node->addCustomAttributesForField(attributes);
833831

834832
// Recursively apply field IDs to nested fields
835833
ICEBERG_ASSIGN_OR_RAISE(auto new_nested_node,

0 commit comments

Comments
 (0)