Skip to content

Commit

Permalink
Fix cleanup after test
Browse files Browse the repository at this point in the history
  • Loading branch information
kaklakariada committed Feb 8, 2024
1 parent 4afb2a5 commit a8fb294
Showing 1 changed file with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -892,15 +892,13 @@ void testGroupByWithColumnNumber() throws SQLException {
void joinHashtypeTables() throws java.sql.SQLException {
final Table virtualTable = sourceSchema.createTableBuilder("VIRTUAL").column("VHASH", "HASHTYPE(16 BYTE)")
.build();
final Table realTable = objectFactory.createSchema("OTHER").createTableBuilder("REAL")
.column("RHASH", "HASHTYPE(16 BYTE)").build();
final VirtualSchema virtualSchema = createVirtualSchema(this.sourceSchema);
try {
try (final ExasolSchema otherSchema = objectFactory.createSchema("OTHER");
final Table otherTable = otherSchema.createTableBuilder("REAL").column("RHASH", "HASHTYPE(16 BYTE)")
.build();
final VirtualSchema virtualSchema = createVirtualSchema(this.sourceSchema)) {
final String sql = "select * from " + virtualSchema.getFullyQualifiedName() + "." + virtualTable.getName()
+ " INNER JOIN " + realTable.getFullyQualifiedName() + " ON VHASH = RHASH";
+ " INNER JOIN " + otherTable.getFullyQualifiedName() + " ON VHASH = RHASH";
assertThat(query(sql), table("HASHTYPE", "HASHTYPE").matches());
} finally {
virtualSchema.drop();
}
}

Expand Down

0 comments on commit a8fb294

Please sign in to comment.