Skip to content
Prev Previous commit
Next Next commit
Fix test with correct require condition.
  • Loading branch information
viirya committed Jul 26, 2016
commit cc953a3075675ecc97cf5342c6e29d940b1dfe3e
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ private[sql] trait SchemaMapping {
val catalogSchema: StructType

require(catalogSchema.length == 0 ||
dataSchema.length + partitionSchema.length == catalogSchema.length,
dataSchema.merge(partitionSchema).length == catalogSchema.length,
s"The data schema in files: $dataSchema plus the partition schema: $partitionSchema " +
s"should have the same number of fields with the schema in catalog: $catalogSchema.")

Expand Down