deniskuzZ commented on code in PR #5955:
URL: https://github.com/apache/hive/pull/5955#discussion_r2224531680
##########
standalone-metastore/metastore-client/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java:
##########
@@ -61,19 +61,24 @@ public HiveMetaStoreClient(Configuration conf,
HiveMetaHookLoader hookLoader) th
public HiveMetaStoreClient(Configuration conf, HiveMetaHookLoader
hookLoader, Boolean allowEmbedded)
throws MetaException {
- this(conf, hookLoader, new ThriftHiveMetaStoreClient(conf, allowEmbedded));
+ this(conf, hookLoader, HiveMetaStoreClientBuilder.createClient(conf,
allowEmbedded));
}
private HiveMetaStoreClient(Configuration conf, HiveMetaHookLoader
hookLoader,
- ThriftHiveMetaStoreClient thriftClient) {
- super(createUnderlyingClient(conf, hookLoader, thriftClient), conf);
- this.thriftClient = thriftClient;
+ IMetaStoreClient baseMetaStoreClient) {
+ super(createUnderlyingClient(conf, hookLoader, baseMetaStoreClient), conf);
+
+ if (baseMetaStoreClient instanceof ThriftHiveMetaStoreClient) {
Review Comment:
````
if (baseMetaStoreClient instanceof ThriftHiveMetaStoreClient
metaStoreClient) {
this.thriftClient = metaStoreClient;
}
````
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]