We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2de649b commit 73e057aCopy full SHA for 73e057a
src/iceberg/avro/avro_schema_util.cc
@@ -798,6 +798,9 @@ Result<::avro::NodePtr> CreateRecordNodeWithFieldIds(const ::avro::NodePtr& orig
798
}
799
800
for (size_t i = 0; i < original_node->leaves(); ++i) {
801
+ if (i >= original_node->names()) {
802
+ return InvalidSchema(...);
803
+ }
804
const std::string& field_name = original_node->nameAt(i);
805
::avro::NodePtr field_node = original_node->leafAt(i);
806
0 commit comments