Skip to content

Commit 530918e

Browse files
committed
add more comments
1 parent 35c0f87 commit 530918e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/iceberg/schema_util.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ namespace {
3636

3737
Status ValidateSchemaEvolution(const Type& expected_type, const Type& source_type) {
3838
if (expected_type.is_nested()) {
39-
// Nested type requires identical type ids.
39+
// Nested type requires identical type ids but their sub-fields are checked
40+
// recursively and individually.
4041
if (source_type.type_id() != expected_type.type_id()) {
4142
return NotSupported("Cannot read {} from {}", expected_type, source_type);
4243
}

0 commit comments

Comments
 (0)