Skip to content

Commit

Permalink
Fix matching exception message
Browse files Browse the repository at this point in the history
Exception message contains catalog and schema name,
for example:
line 1:15: Table 'singlestore.tpch.tmp_trino_141fe118_3e367852' does not exist
  • Loading branch information
Pawel Palucha authored and findepi committed Apr 12, 2023
1 parent 89b7d9e commit 55a857d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ protected void checkTemporaryTables(Set<String> queryIds)
String temporaryTableName = (String) temporaryTableRow.getField(0);
try {
assertThatThrownBy(() -> getQueryRunner().execute("SELECT 1 FROM %s WHERE 1 = 0".formatted(temporaryTableName)))
.hasMessageContaining("Table '%s' does not exist", temporaryTableName);
.hasMessageContaining(".%s' does not exist", temporaryTableName);
}
catch (AssertionError e) {
remainingTemporaryTables.computeIfAbsent(queryId, ignored -> new HashSet<>()).add(temporaryTableName);
Expand Down

0 comments on commit 55a857d

Please sign in to comment.