Skip to content

Commit

Permalink
Correct nullable comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
zeotuan committed Oct 17, 2024
1 parent f266435 commit 1622aa9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ object SchemaComparer {
} else {
val zipStruct = if (ignoreColumnOrder) s1.sortBy(_.name) zip s2.sortBy(_.name) else s1 zip s2
zipStruct.forall { case (f1, f2) =>
(f1.nullable == f1.nullable || ignoreNullable) &&
(f1.nullable == f2.nullable || ignoreNullable) &&
(f1.name == f2.name || ignoreColumnNames) &&
(f1.metadata == f2.metadata || ignoreMetadata) &&
equals(f1.dataType, f2.dataType, ignoreNullable, ignoreColumnNames, ignoreColumnOrder, ignoreMetadata)
Expand Down

0 comments on commit 1622aa9

Please sign in to comment.