diff --git a/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/ResolvePartitionSpec.scala b/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/ResolvePartitionSpec.scala index 8eccd4b104c60..dcc4e863fe9c8 100644 --- a/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/ResolvePartitionSpec.scala +++ b/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/ResolvePartitionSpec.scala @@ -57,13 +57,13 @@ object ResolvePartitionSpec extends Rule[LogicalPlan] { tableName: String, partSpec: UnresolvedPartitionSpec, partSchema: StructType, - allowPartitionSpec: Boolean): ResolvedPartitionSpec = { + allowPartialPartitionSpec: Boolean): ResolvedPartitionSpec = { val normalizedSpec = normalizePartitionSpec( partSpec.spec, partSchema, tableName, conf.resolver) - if (!allowPartitionSpec) { + if (!allowPartialPartitionSpec) { requireExactMatchedPartitionSpec(tableName, normalizedSpec, partSchema.fieldNames.toImmutableArraySeq) }