nastra commented on code in PR #8948:
URL: https://github.com/apache/iceberg/pull/8948#discussion_r1376208503


##########
spark/v3.5/spark-extensions/src/test/java/org/apache/iceberg/spark/extensions/TestMerge.java:
##########
@@ -906,24 +905,23 @@ public void 
testMergeWithMultipleUpdatesForTargetRowSmallTargetLargeSource() {
     withSQLConf(
         ImmutableMap.of(SQLConf.PREFER_SORTMERGEJOIN().key(), "false"),
         () -> {
-          String errorMsg =
-              "a single row from the target table with multiple rows of the 
source table";
-          AssertHelpers.assertThrowsCause(
-              "Should complain about multiple matches",
-              SparkRuntimeException.class,
-              errorMsg,
-              () -> {
-                sql(
-                    "MERGE INTO %s AS t USING source AS s "
-                        + "ON t.id == s.value "
-                        + "WHEN MATCHED AND t.id = 1 THEN "
-                        + "  UPDATE SET id = 10 "
-                        + "WHEN MATCHED AND t.id = 6 THEN "
-                        + "  DELETE "
-                        + "WHEN NOT MATCHED AND s.value = 2 THEN "
-                        + "  INSERT (id, dep) VALUES (s.value, null)",
-                    commitTarget());
-              });
+          String errorMsg = "MERGE statement matched a single row from the 
target table with multiple rows of the source table.";
+          Assertions.assertThatThrownBy(
+                  () -> {

Review Comment:
   same here, please also check all other places that unnecessarily wrap {} 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]

Reply via email to