This is an automated email from the ASF dual-hosted git repository.

szehon pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/iceberg.git


The following commit(s) were added to refs/heads/main by this push:
     new afc30818b7 Spark 3.4, 3.5: Follow-up for #10442, Remove static test 
import (#10451)
afc30818b7 is described below

commit afc30818b734879e53a24f90f034685cf8fc56bc
Author: Huaxin Gao <[email protected]>
AuthorDate: Wed Jun 5 18:32:45 2024 -0700

    Spark 3.4, 3.5: Follow-up for #10442, Remove static test import (#10451)
---
 .../src/integration/java/org/apache/iceberg/spark/SmokeTest.java     | 5 ++---
 .../src/integration/java/org/apache/iceberg/spark/SmokeTest.java     | 4 +---
 2 files changed, 3 insertions(+), 6 deletions(-)

diff --git 
a/spark/v3.4/spark-runtime/src/integration/java/org/apache/iceberg/spark/SmokeTest.java
 
b/spark/v3.4/spark-runtime/src/integration/java/org/apache/iceberg/spark/SmokeTest.java
index 59bc70854c..4704bcbbda 100644
--- 
a/spark/v3.4/spark-runtime/src/integration/java/org/apache/iceberg/spark/SmokeTest.java
+++ 
b/spark/v3.4/spark-runtime/src/integration/java/org/apache/iceberg/spark/SmokeTest.java
@@ -18,14 +18,13 @@
  */
 package org.apache.iceberg.spark;
 
-import static org.assertj.core.api.Assertions.assertThat;
-
 import java.io.IOException;
 import java.util.Map;
 import org.apache.iceberg.Table;
 import org.apache.iceberg.catalog.TableIdentifier;
 import org.apache.iceberg.spark.extensions.SparkExtensionsTestBase;
 import org.apache.spark.sql.catalyst.analysis.NoSuchTableException;
+import org.assertj.core.api.Assertions;
 import org.junit.Assert;
 import org.junit.Before;
 import org.junit.Test;
@@ -171,7 +170,7 @@ public class SmokeTest extends SparkExtensionsTestBase {
   public void showView() {
     sql("DROP VIEW IF EXISTS %s", "test");
     sql("CREATE VIEW %s AS SELECT 1 AS id", "test");
-    assertThat(sql("SHOW VIEWS")).contains(row("default", "test", false));
+    Assertions.assertThat(sql("SHOW VIEWS")).contains(row("default", "test", 
false));
   }
 
   private Table getTable(String name) {
diff --git 
a/spark/v3.5/spark-runtime/src/integration/java/org/apache/iceberg/spark/SmokeTest.java
 
b/spark/v3.5/spark-runtime/src/integration/java/org/apache/iceberg/spark/SmokeTest.java
index 4fb1a8ad06..ee735a4f84 100644
--- 
a/spark/v3.5/spark-runtime/src/integration/java/org/apache/iceberg/spark/SmokeTest.java
+++ 
b/spark/v3.5/spark-runtime/src/integration/java/org/apache/iceberg/spark/SmokeTest.java
@@ -18,8 +18,6 @@
  */
 package org.apache.iceberg.spark;
 
-import static org.assertj.core.api.Assertions.assertThat;
-
 import java.io.IOException;
 import java.nio.file.Files;
 import org.apache.iceberg.ParameterizedTestExtension;
@@ -180,7 +178,7 @@ public class SmokeTest extends ExtensionsTestBase {
   public void showView() {
     sql("DROP VIEW IF EXISTS %s", "test");
     sql("CREATE VIEW %s AS SELECT 1 AS id", "test");
-    assertThat(sql("SHOW VIEWS")).contains(row("default", "test", false));
+    Assertions.assertThat(sql("SHOW VIEWS")).contains(row("default", "test", 
false));
   }
 
   private Table getTable(String name) {

Reply via email to