We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bdee89e commit 3383473Copy full SHA for 3383473
sql/core/src/main/scala/org/apache/spark/sql/sources/interfaces.scala
@@ -561,11 +561,6 @@ abstract class HadoopFsRelation private[sql](maybePartitionSpec: Option[Partitio
561
}: _*)
562
}
563
564
- assert(userProvidedSchema.length == spec.partitionColumns.length &&
565
- userProvidedSchema.fieldNames.sameElements(spec.partitionColumns.fieldNames),
566
- s"Actual partitioning column names did not match user-specified partitioning schema; " +
567
- s"expect $userProvidedSchema, but got ${spec.partitionColumns}}")
568
-
569
PartitionSpec(userProvidedSchema, spec.partitions.map { part =>
570
part.copy(values = castPartitionValuesToUserSchema(part.values))
571
})
0 commit comments