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 b79cef4 commit a9f9710Copy full SHA for a9f9710
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/DataSourceStrategy.scala
@@ -217,7 +217,7 @@ case class DataSourceAnalysis(conf: CatalystConf) extends Rule[LogicalPlan] {
217
if (deletedPartitions.nonEmpty) {
218
AlterTableDropPartitionCommand(
219
l.catalogTable.get.identifier, deletedPartitions.toSeq,
220
- ifExists = true, purge = true,
+ ifExists = true, purge = false,
221
retainData = true /* already deleted */).run(t.sparkSession)
222
}
223
0 commit comments