Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
clettieri committed Sep 20, 2023
1 parent a886a6a commit 0b9c76e
Showing 1 changed file with 6 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@
import org.apache.spark.sql.connector.catalog.CatalogManager;
import org.apache.spark.sql.connector.catalog.Identifier;
import org.apache.spark.sql.connector.catalog.TableCatalog;
import org.assertj.core.api.Assertions;
import org.junit.After;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runners.Parameterized;
import org.assertj.core.api.Assertions;

public class TestAlterTablePartitionFields extends SparkExtensionsTestBase {

Expand Down Expand Up @@ -180,7 +180,7 @@ public void testAddHoursPartition() {
Assert.assertEquals("Should have new spec field", expected, table.spec());
}

@Test
@Test
public void testAddYearPartition() {
createTable("id bigint NOT NULL, category string, ts timestamp, data string");
Table table = validationCatalog.loadTable(tableIdent);
Expand All @@ -196,9 +196,7 @@ public void testAddYearPartition() {
PartitionSpec expected =
PartitionSpec.builderFor(table.schema()).withSpecId(1).year("ts").build();

Assertions.assertThat(table.spec())
.as("Should have new spec field")
.isEqualTo(expected);
Assertions.assertThat(table.spec()).as("Should have new spec field").isEqualTo(expected);
}

@Test
Expand All @@ -217,9 +215,7 @@ public void testAddMonthPartition() {
PartitionSpec expected =
PartitionSpec.builderFor(table.schema()).withSpecId(1).month("ts").build();

Assertions.assertThat(table.spec())
.as("Should have new spec field")
.isEqualTo(expected);
Assertions.assertThat(table.spec()).as("Should have new spec field").isEqualTo(expected);
}

@Test
Expand All @@ -238,9 +234,7 @@ public void testAddDayPartition() {
PartitionSpec expected =
PartitionSpec.builderFor(table.schema()).withSpecId(1).day("ts").build();

Assertions.assertThat(table.spec())
.as("Should have new spec field")
.isEqualTo(expected);
Assertions.assertThat(table.spec()).as("Should have new spec field").isEqualTo(expected);
}

@Test
Expand All @@ -259,9 +253,7 @@ public void testAddHourPartition() {
PartitionSpec expected =
PartitionSpec.builderFor(table.schema()).withSpecId(1).hour("ts").build();

Assertions.assertThat(table.spec())
.as("Should have new spec field")
.isEqualTo(expected);
Assertions.assertThat(table.spec()).as("Should have new spec field").isEqualTo(expected);
}

@Test
Expand Down

0 comments on commit 0b9c76e

Please sign in to comment.