nastra commented on code in PR #9670:
URL: https://github.com/apache/iceberg/pull/9670#discussion_r1487316766
##########
spark/v3.5/spark-extensions/src/test/java/org/apache/iceberg/spark/extensions/TestDelete.java:
##########
@@ -1015,20 +998,21 @@ public void testDeleteThatRequiresGroupingBeforeWrite()
throws NoSuchTableExcept
spark.conf().set("spark.sql.shuffle.partitions", "1");
sql("DELETE FROM %s t WHERE id IN (SELECT * FROM deleted_id)",
commitTarget());
- Assert.assertEquals(
- "Should have expected num of rows", 8L,
spark.table(commitTarget()).count());
+ assertThat(spark.table(commitTarget()).count())
+ .as("Should have expected num of rows")
+ .isEqualTo(8L);
} finally {
spark.conf().set("spark.sql.shuffle.partitions",
originalNumOfShufflePartitions);
}
}
- @Test
+ @TestTemplate
public synchronized void testDeleteWithSerializableIsolation() throws
InterruptedException {
// cannot run tests with concurrency for Hadoop tables without atomic
renames
- Assume.assumeFalse(catalogName.equalsIgnoreCase("testhadoop"));
+ assumeThat(catalogName.equalsIgnoreCase("testhadoop")).isFalse();
Review Comment:
please also update all the other places in this PR
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]