Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
sabir-akhadov committed May 21, 2024
1 parent cdd11f8 commit bd92170
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,11 @@ trait RemoveColumnMappingSuiteUtils extends QueryTest with DeltaColumnMappingSui
spark.table(tableName = testTableName).select(logicalColumnName),
originalData)
val newSnapshot = deltaLog.update()
// Drop feature adds 2 empty commits.
val versionsAddedByRewrite = if (droppedFeature) 3 else 1
val versionsAddedByRewrite = if (droppedFeature) {
2
} else {
1
}
assert(newSnapshot.version - startingVersion == versionsAddedByRewrite,
s"Should rewrite the table in $versionsAddedByRewrite commits.")

Expand Down

0 comments on commit bd92170

Please sign in to comment.