Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,14 @@ class DeltaRetentionSuite extends QueryTest
getDeltaFiles(dir) ++ getUnbackfilledDeltaFiles(dir) ++ getCheckpointFiles(dir)++
getCrcFiles(dir)

test("startTxnWithManualLogCleanup") {
withTempDir { tempDir =>
val log = DeltaLog.forTable(spark, new Path(tempDir.getCanonicalPath))
startTxnWithManualLogCleanup(log).commit(Nil, testOp)
assert(!log.enableExpiredLogCleanup())
}
}

test("delete expired logs") {
withTempDir { tempDir =>
val startTime = getStartTimeForRetentionTest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -298,12 +298,4 @@ trait DeltaRetentionSuiteBase extends QueryTest
txn.updateMetadata(Metadata())
txn
}

test("startTxnWithManualLogCleanup") {
withTempDir { tempDir =>
val log = DeltaLog.forTable(spark, new Path(tempDir.getCanonicalPath))
startTxnWithManualLogCleanup(log).commit(Nil, testOp)
assert(!log.enableExpiredLogCleanup())
}
}
}
Loading