Skip to content

Commit b19c712

Browse files
Update src/iceberg/avro/avro_schema_util.cc
Co-authored-by: Gang Wu <[email protected]>
1 parent 2880299 commit b19c712

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/iceberg/avro/avro_schema_util.cc

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -792,11 +792,6 @@ Result<::avro::NodePtr> CreateRecordNodeWithFieldIds(const ::avro::NodePtr& orig
792792
auto new_record_node = std::make_shared<::avro::NodeRecord>();
793793
new_record_node->setName(original_node->name());
794794

795-
if (original_node->leaves() > original_node->names()) {
796-
return InvalidSchema("Node has {} leaves but only {} names", original_node->leaves(),
797-
original_node->names());
798-
}
799-
800795
for (size_t i = 0; i < original_node->leaves(); ++i) {
801796
if (i >= original_node->names()) {
802797
return InvalidSchema(...);

0 commit comments

Comments
 (0)