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 73e057a commit 2880299Copy full SHA for 2880299
src/iceberg/avro/avro_schema_util.cc
@@ -802,6 +802,9 @@ Result<::avro::NodePtr> CreateRecordNodeWithFieldIds(const ::avro::NodePtr& orig
802
return InvalidSchema(...);
803
}
804
const std::string& field_name = original_node->nameAt(i);
805
+ if (i >= original_node->leaves()) {
806
+ return InvalidSchema(...);
807
+ }
808
::avro::NodePtr field_node = original_node->leafAt(i);
809
810
// TODO(liuxiaoyu): Add support for case sensitivity in name matching.
0 commit comments