Skip to content

Commit

Permalink
Update to Tempto 186
Browse files Browse the repository at this point in the history
  • Loading branch information
findepi committed Sep 22, 2021
1 parent 010b713 commit 65b0dca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
<dep.drift.version>1.14</dep.drift.version>
<dep.scribejava.version>6.9.0</dep.scribejava.version>
<dep.selenium.version>3.141.59</dep.selenium.version>
<dep.tempto.version>185</dep.tempto.version>
<dep.tempto.version>186</dep.tempto.version>
<dep.gcs.version>2.0.0</dep.gcs.version>
<dep.errorprone.version>2.9.0</dep.errorprone.version>
<dep.testcontainers.version>1.16.0</dep.testcontainers.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
import com.google.common.collect.Streams;
import io.trino.tempto.ProductTest;
import io.trino.tempto.query.QueryResult;
import org.assertj.core.api.Assertions;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;

Expand Down Expand Up @@ -583,9 +582,8 @@ public void testIdBasedFieldMapping(StorageFormat storageFormat)
row("a_struct", "row(renamed bigint, keep bigint, CaseSensitive bigint, drop_and_add bigint, added bigint)"),
row("a_partition", "bigint"));

// TODO support Row (JAVA_OBJECT) in Tempto and switch to QueryAssert
Assertions.assertThat(onTrino().executeQuery(format("SELECT quite_renamed_col, keep_col, drop_and_add_col, add_col, casesensitivecol, a_struct, a_partition FROM %s", trinoTableName)).rows())
.containsOnly(asList(
assertThat(onTrino().executeQuery(format("SELECT quite_renamed_col, keep_col, drop_and_add_col, add_col, casesensitivecol, a_struct, a_partition FROM %s", trinoTableName)))
.containsOnly(row(
2L, // quite_renamed_col
3L, // keep_col
null, // drop_and_add_col; dropping and re-adding changes id
Expand Down

0 comments on commit 65b0dca

Please sign in to comment.