Skip to content

Commit

Permalink
[fix](TrinoConnector) fix the error message when querying a not-exist…
Browse files Browse the repository at this point in the history
…ent table with TrinoConnector (#45799)

Problem Summary:
fix the error message when querying a not-existent table with
TrinoConnector
  • Loading branch information
BePPPower authored Dec 24, 2024
1 parent cd42ec1 commit a16b682
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ public Optional<SchemaCacheValue> initSchema() {
qualifiedTable.asSchemaTableName(), Optional.empty(), Optional.empty()));
}
if (!connectorTableHandle.isPresent()) {
throw new RuntimeException(String.format("Table does not exist: %s.%s.%s", qualifiedTable));
throw new RuntimeException(String.format("Table does not exist: %s.%s.%s", trinoConnectorCatalog.getName(),
dbName, name));
}

// 4. Get ColumnHandle
Expand Down

0 comments on commit a16b682

Please sign in to comment.