Skip to content

Commit

Permalink
Fix broken testDeletionVectors in Delta Lake
Browse files Browse the repository at this point in the history
ba18e5b starts allowing access of $history table even
when the table has unsupported features.
  • Loading branch information
ebyhr authored and findepi committed Jul 18, 2023
1 parent b4f0a33 commit 20e5779
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,12 @@ public void testDeletionVectors()

assertThat(onTrino().executeQuery("SHOW TABLES FROM delta.default"))
.contains(row(tableName));
assertThat(onTrino().executeQuery("SELECT version, operation FROM delta.default.\"" + tableName + "$history\""))
.containsOnly(row(0, "CREATE TABLE"), row(1, "WRITE"), row(2, "DELETE"));
assertThat(onTrino().executeQuery("SELECT comment FROM information_schema.columns WHERE table_schema = 'default' AND table_name = '" + tableName + "'"))
.hasNoRows();
assertQueryFailure(() -> onTrino().executeQuery("SELECT * FROM delta.default." + tableName))
.hasMessageMatching(".* Table .* does not exist");
assertQueryFailure(() -> onTrino().executeQuery("SELECT * FROM delta.default.\"" + tableName + "$history\""))
.hasMessageMatching(".* Table .* does not exist");
assertQueryFailure(() -> onTrino().executeQuery("SHOW COLUMNS FROM delta.default." + tableName))
.hasMessageMatching(".* Table .* does not exist");
assertQueryFailure(() -> onTrino().executeQuery("DESCRIBE delta.default." + tableName))
Expand Down

0 comments on commit 20e5779

Please sign in to comment.