Skip to content

Commit

Permalink
[Spark] [2182] [FOLLOWUP] Add UniForm examples (#2190)
Browse files Browse the repository at this point in the history
Add UniForm examples - Followup 2181
  • Loading branch information
harperjiang authored Feb 20, 2024
1 parent bd59026 commit 9be2d4d
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,11 @@ class ConvertToIcebergSuite extends QueryTest with Eventually {

def verifyReadWithIceberg(tableName: String, expectedAnswer: Seq[Row]): Unit = {
withIcebergSparkSession { icebergSparkSession =>
Thread.sleep(20000)
val icebergDf = icebergSparkSession.read.format("iceberg").load(tableName)
checkAnswer(icebergDf, expectedAnswer)
eventually(timeout(10.seconds)) {
icebergSparkSession.sql(s"REFRESH TABLE ${tableName}")
val icebergDf = icebergSparkSession.read.format("iceberg").load(tableName)
checkAnswer(icebergDf, expectedAnswer)
}
}
}

Expand Down

0 comments on commit 9be2d4d

Please sign in to comment.