We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b4d110f commit 472fe6eCopy full SHA for 472fe6e
src/iceberg/avro/avro_schema_util.cc
@@ -788,6 +788,9 @@ Result<::avro::NodePtr> CreateRecordNodeWithFieldIds(const ::avro::NodePtr& orig
788
}
789
790
for (size_t i = 0; i < original_node->leaves(); ++i) {
791
+ if (i >= original_node->names()) {
792
+ return InvalidSchema(...);
793
+ }
794
const std::string& field_name = original_node->nameAt(i);
795
::avro::NodePtr field_node = original_node->leafAt(i);
796
0 commit comments