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 <chenxu@dmetasoul.com>
Co-authored-by: chenxu <chenxu@dmetasoul.com>
  • Loading branch information
2 people authored and mag1c1an1 committed Jan 29, 2024
1 parent 83a5312 commit 124db9a
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 124db9a

Please sign in to comment.