Skip to content

Commit

Permalink
Fix BaseConnectorSmokeTest#testDelete
Browse files Browse the repository at this point in the history
- Remove obsolete comment
- regionkey starts from 0, so fix expected results
  • Loading branch information
kokosing committed Jun 24, 2021
1 parent 8f8b3e5 commit 0b0e411
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -182,11 +182,10 @@ public void testDelete()
String tableName = "test_delete_" + randomTableSuffix();
assertUpdate("CREATE TABLE " + tableName + " AS SELECT * FROM region", 5);

// delete half the table, then delete the rest
assertUpdate("DELETE FROM " + tableName + " WHERE regionkey = 2", 1);
assertThat(query("SELECT regionkey FROM " + tableName))
.skippingTypesCheck()
.matches("VALUES 1, 3, 4, 5");
.matches("VALUES 0, 1, 3, 4");

assertUpdate("DROP TABLE " + tableName);
}
Expand Down

0 comments on commit 0b0e411

Please sign in to comment.