Skip to content

Commit 79c0cc0

Browse files
lidavidmFokko
andauthored
Update src/iceberg/schema_field.cc
Co-authored-by: Fokko Driesprong <[email protected]>
1 parent 67c5e89 commit 79c0cc0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/iceberg/schema_field.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ const std::shared_ptr<Type>& SchemaField::type() const { return type_; }
5252
bool SchemaField::optional() const { return optional_; }
5353

5454
std::string SchemaField::ToString() const {
55-
return std::format("{} ({}): {} {}", name_, field_id_, *type_,
56-
optional_ ? "(optional)" : "(required)");
55+
return std::format("{} ({}): {} ({})", name_, field_id_, *type_,
56+
optional_ ? "optional" : "required");
5757
}
5858

5959
bool SchemaField::Equals(const SchemaField& other) const {

0 commit comments

Comments
 (0)