Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -698,6 +698,10 @@ public Map<String, Object> getTableProperties(ConnectorSession session, JdbcTabl
}
}
}
catch (org.apache.phoenix.schema.TableNotFoundException e) {
// Rethrow as Trino TableNotFoundException to suppress the exception during listing information_schema
throw new io.trino.spi.connector.TableNotFoundException(new SchemaTableName(handle.getSchemaName(), handle.getTableName()));
}
catch (IOException | SQLException e) {
throw new TrinoException(PHOENIX_METADATA_ERROR, "Couldn't get Phoenix table properties", e);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -690,6 +690,10 @@ public Map<String, Object> getTableProperties(ConnectorSession session, JdbcTabl
}
}
}
catch (org.apache.phoenix.schema.TableNotFoundException e) {
// Rethrow as Trino TableNotFoundException to suppress the exception during listing information_schema
throw new io.trino.spi.connector.TableNotFoundException(new SchemaTableName(handle.getSchemaName(), handle.getTableName()));
}
catch (IOException | SQLException e) {
throw new TrinoException(PHOENIX_METADATA_ERROR, "Couldn't get Phoenix table properties", e);
}
Expand Down