Skip to content

Commit

Permalink
[Spark] Add sleep 1s for compaction tests (lakesoul-io#435)
Browse files Browse the repository at this point in the history
Signed-off-by: chenxu <[email protected]>
Co-authored-by: chenxu <[email protected]>
  • Loading branch information
xuchen-plus and dmetasoul01 authored Jan 27, 2024
1 parent 2fb4701 commit 304ab09
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ class CompactionSuite extends QueryTest
assert(!rangeInfo.groupBy(_.file_bucket_id).forall(_._2.length == 1))

LakeSoulTable.forPath(tableName).compaction("range=1")
Thread.sleep(1000)

val allDataInfo = SparkUtil.allDataInfo(sm.updateSnapshot())
println(allDataInfo.mkString("Array(", ", ", ")"))
Expand Down Expand Up @@ -278,6 +279,7 @@ class CompactionSuite extends QueryTest
* call LakeSoulTable.compaction(tableName=>'lakesoul',cleanOld=>true)
*/
sql("call LakeSoulTable.compaction(condition=>map('range',1),tablePath=>'" + tableName + "')")
Thread.sleep(1000)

val allDataInfo = SparkUtil.allDataInfo(sm.updateSnapshot())
println(allDataInfo.mkString("Array(", ", ", ")"))
Expand Down

0 comments on commit 304ab09

Please sign in to comment.