|
77 | 77 | import io.trino.spi.connector.JoinCondition; |
78 | 78 | import io.trino.spi.connector.JoinStatistics; |
79 | 79 | import io.trino.spi.connector.JoinType; |
| 80 | +import io.trino.spi.connector.RelationColumnsMetadata; |
| 81 | +import io.trino.spi.connector.RelationCommentMetadata; |
80 | 82 | import io.trino.spi.connector.SchemaTableName; |
81 | 83 | import io.trino.spi.connector.TableNotFoundException; |
82 | 84 | import io.trino.spi.expression.ConnectorExpression; |
|
121 | 123 | import java.time.format.DateTimeFormatterBuilder; |
122 | 124 | import java.util.Collection; |
123 | 125 | import java.util.HashMap; |
| 126 | +import java.util.Iterator; |
124 | 127 | import java.util.List; |
125 | 128 | import java.util.Map; |
126 | 129 | import java.util.Optional; |
@@ -428,6 +431,24 @@ protected boolean isTableLockNeeded(ConnectorSession session) |
428 | 431 | return isBulkCopyForWrite(session) && isBulkCopyForWriteLockDestinationTable(session); |
429 | 432 | } |
430 | 433 |
|
| 434 | + @Override |
| 435 | + public List<RelationCommentMetadata> getAllTableComments(ConnectorSession session, Optional<String> schema) |
| 436 | + { |
| 437 | + return retryOnDeadlock(() -> super.getAllTableComments(session, schema), "error when getting all table comments for '%s'".formatted(schema)); |
| 438 | + } |
| 439 | + |
| 440 | + @Override |
| 441 | + public Iterator<RelationColumnsMetadata> getAllTableColumns(ConnectorSession session, Optional<String> schema) |
| 442 | + { |
| 443 | + return retryOnDeadlock(() -> super.getAllTableColumns(session, schema), "error when getting all table columns for '%s'".formatted(schema)); |
| 444 | + } |
| 445 | + |
| 446 | + @Override |
| 447 | + public List<JdbcColumnHandle> getColumns(ConnectorSession session, SchemaTableName schemaTableName, RemoteTableName remoteTableName) |
| 448 | + { |
| 449 | + return retryOnDeadlock(() -> super.getColumns(session, schemaTableName, remoteTableName), "error when getting columns for table '%s'".formatted(remoteTableName)); |
| 450 | + } |
| 451 | + |
431 | 452 | @Override |
432 | 453 | protected void verifyTableName(DatabaseMetaData databaseMetadata, String tableName) |
433 | 454 | throws SQLException |
|
0 commit comments