Skip to content

Commit

Permalink
Wrap JdbcConnector's ConnectorMetadata
Browse files Browse the repository at this point in the history
  • Loading branch information
Sunning Go authored and kokosing committed Nov 9, 2021
1 parent ffac206 commit 2dc0e91
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

import com.google.common.collect.ImmutableSet;
import io.airlift.bootstrap.LifeCycleManager;
import io.trino.plugin.base.classloader.ClassLoaderSafeConnectorMetadata;
import io.trino.plugin.base.session.SessionPropertiesProvider;
import io.trino.spi.connector.Connector;
import io.trino.spi.connector.ConnectorAccessControl;
Expand Down Expand Up @@ -100,7 +101,7 @@ public ConnectorMetadata getMetadata(ConnectorTransactionHandle transaction)
{
JdbcMetadata metadata = transactions.get(transaction);
checkArgument(metadata != null, "no such transaction: %s", transaction);
return metadata;
return new ClassLoaderSafeConnectorMetadata(metadata, getClass().getClassLoader());
}

@Override
Expand Down

0 comments on commit 2dc0e91

Please sign in to comment.