-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Closed
Description
Looking at the code involves something like the following:
- use getPageSourceProvider instead of getRecordSetProvider in JdbcConnector and return an UpdatablePageSource (probably a class that extends RecordPageSource and wraps the existing ResultSet)
- Implement the UpdatablePageSource methods (updateRows, deleteRows, etc)
- Figure out the RowId column handle - for JDBC just the PK columns
- Add getUpdateRowIdColumnHandle and getDeleteRowIdColumnHandle to JdbcMetadata
- Add buildDeleteSql and buildUpdateSql to JdbcClient and use those from the UpdatablePageSource to perform the writes.
- (And probably a bunch of more stuff...)
Once it's added to trino-base-jdbc it can be add the the Postgres, MySQL, Phoenix, etc, connectors.
Note sure I'll find time to do this, filing in case someones else is interested. :)
Relates to #5275
naushadh
Metadata
Metadata
Assignees
Labels
No labels