Skip to content

Commit

Permalink
Fix toConnectorSession conversion in BeginTableExecuteResult
Browse files Browse the repository at this point in the history
  • Loading branch information
jinyangli34 authored and ebyhr committed Sep 18, 2024
1 parent 4c0e301 commit 900d74f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ public BeginTableExecuteResult<TableExecuteHandle, TableHandle> beginTableExecut
CatalogHandle catalogHandle = tableExecuteHandle.catalogHandle();
CatalogMetadata catalogMetadata = getCatalogMetadataForWrite(session, catalogHandle);
ConnectorMetadata metadata = catalogMetadata.getMetadata(session);
BeginTableExecuteResult<ConnectorTableExecuteHandle, ConnectorTableHandle> connectorBeginResult = metadata.beginTableExecute(session.toConnectorSession(), tableExecuteHandle.connectorHandle(), sourceHandle.connectorHandle());
BeginTableExecuteResult<ConnectorTableExecuteHandle, ConnectorTableHandle> connectorBeginResult = metadata.beginTableExecute(session.toConnectorSession(catalogHandle), tableExecuteHandle.connectorHandle(), sourceHandle.connectorHandle());

return new BeginTableExecuteResult<>(
tableExecuteHandle.withConnectorHandle(connectorBeginResult.getTableExecuteHandle()),
Expand Down

0 comments on commit 900d74f

Please sign in to comment.