Skip to content

Commit 6c74bb3

Browse files
format
1 parent 311401e commit 6c74bb3

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/iceberg/avro/avro_schema_util.cc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -890,7 +890,7 @@ Result<::avro::NodePtr> CreateArrayNodeWithFieldIds(const ::avro::NodePtr& origi
890890
auto new_element_node,
891891
MakeAvroNodeWithFieldIds(original_node->leafAt(0), *element_field));
892892
new_array_node->addLeaf(new_element_node);
893-
893+
894894
// Add element field ID as custom attribute
895895
::avro::CustomAttributes element_attributes;
896896
element_attributes.addAttribute(std::string(kFieldIdProp),
@@ -920,14 +920,14 @@ Result<::avro::NodePtr> CreateMapNodeWithFieldIds(const ::avro::NodePtr& origina
920920
// Find key and value field mappings by name
921921
std::optional<int32_t> key_id = field.nested_mapping->Id("key");
922922
std::optional<int32_t> value_id = field.nested_mapping->Id("value");
923-
923+
924924
if (!key_id || !value_id) {
925925
return InvalidSchema("Map type requires both 'key' and 'value' field mappings");
926926
}
927927

928928
std::optional<MappedFieldConstRef> key_field_ref = field.nested_mapping->Field(*key_id);
929929
std::optional<MappedFieldConstRef> value_field_ref = field.nested_mapping->Field(*value_id);
930-
930+
931931
if (!key_field_ref || !value_field_ref) {
932932
return InvalidSchema("Map type requires both key and value field mappings");
933933
}
@@ -970,13 +970,13 @@ Result<::avro::NodePtr> CreateMapNodeWithFieldIds(const ::avro::NodePtr& origina
970970
new_map_node->addCustomAttributesForField(attributes);
971971
}
972972
}
973-
973+
974974
// Add field ID attributes for key and value as separate custom attributes
975975
::avro::CustomAttributes key_attributes;
976976
key_attributes.addAttribute(std::string(kFieldIdProp),
977977
std::to_string(*key_mapped_field.field_id), false);
978978
new_map_node->addCustomAttributesForField(key_attributes);
979-
979+
980980
::avro::CustomAttributes value_attributes;
981981
value_attributes.addAttribute(std::string(kFieldIdProp),
982982
std::to_string(*value_mapped_field.field_id), false);

0 commit comments

Comments
 (0)