Skip to content

Commit 3b61a04

Browse files
committed
Revert change on equals.
1 parent 80e487e commit 3b61a04

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

sql/core/src/main/scala/org/apache/spark/sql/parquet/newParquet.scala

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -185,17 +185,12 @@ private[sql] case class ParquetRelation2(
185185
val schemaEquality = if (shouldMergeSchemas) {
186186
shouldMergeSchemas == relation.shouldMergeSchemas
187187
} else {
188-
schema.sameType(relation.schema)
189-
}
190-
191-
val maybeSchemaEquality = (maybeMetastoreSchema, relation.maybeMetastoreSchema) match {
192-
case (Some(left), Some(right)) => left.sameType(right)
193-
case (left, right) => left == right
188+
schema == relation.schema
194189
}
195190

196191
paths.toSet == relation.paths.toSet &&
197192
schemaEquality &&
198-
maybeSchemaEquality &&
193+
maybeMetastoreSchema == relation.maybeMetastoreSchema &&
199194
maybePartitionSpec == relation.maybePartitionSpec
200195

201196
case _ => false

0 commit comments

Comments
 (0)