Skip to content

Commit

Permalink
[core] Fix merge schemas equal method issue
Browse files Browse the repository at this point in the history
  • Loading branch information
harveyyue committed Nov 8, 2024
1 parent 32d05f3 commit ffc62a8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public static TableSchema mergeSchemas(
AtomicInteger highestFieldId = new AtomicInteger(currentTableSchema.highestFieldId());
RowType newRowType =
mergeSchemas(currentType, targetType, highestFieldId, allowExplicitCast);
if (newRowType == currentType) {
if (newRowType.equals(currentType)) {
// It happens if the `targetType` only changes `nullability` but we always respect the
// current's.
return currentTableSchema;
Expand Down

0 comments on commit ffc62a8

Please sign in to comment.