From 66fc2869fa898e4930e77549cb2f0949363dfe74 Mon Sep 17 00:00:00 2001 From: Yann Date: Wed, 22 Nov 2023 16:52:55 +0800 Subject: [PATCH] make param name more clear --- .../spark/sql/catalyst/analysis/ResolvePartitionSpec.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) }