Skip to content

Commit

Permalink
fix handling stored schema uuid
Browse files Browse the repository at this point in the history
  • Loading branch information
zeroshade committed Oct 25, 2024
1 parent 5057471 commit 33a2b9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parquet/pqarrow/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -990,7 +990,7 @@ func applyOriginalStorageMetadata(origin arrow.Field, inferred *SchemaField) (mo
return
}

if modified || !arrow.TypeEqual(extType, inferred.Field.Type) {
if modified && !arrow.TypeEqual(extType, inferred.Field.Type) {
if !arrow.TypeEqual(extType.StorageType(), inferred.Field.Type) {
return modified, fmt.Errorf("%w: mismatch storage type '%s' for extension type '%s'",
arrow.ErrInvalid, inferred.Field.Type, extType)
Expand Down

0 comments on commit 33a2b9b

Please sign in to comment.