We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 472fe6e commit be71cefCopy full SHA for be71cef
src/iceberg/avro/avro_schema_util.cc
@@ -792,6 +792,9 @@ Result<::avro::NodePtr> CreateRecordNodeWithFieldIds(const ::avro::NodePtr& orig
792
return InvalidSchema(...);
793
}
794
const std::string& field_name = original_node->nameAt(i);
795
+ if (i >= original_node->leaves()) {
796
+ return InvalidSchema(...);
797
+ }
798
::avro::NodePtr field_node = original_node->leafAt(i);
799
800
// TODO(liuxiaoyu): Add support for case sensitivity in name matching.
0 commit comments