deniskuzZ commented on code in PR #6292:
URL: https://github.com/apache/hive/pull/6292#discussion_r2781981107
##########
iceberg/iceberg-handler/src/test/java/org/apache/iceberg/mr/hive/HiveIcebergStorageHandlerWithEngineBase.java:
##########
@@ -327,6 +329,15 @@ protected void executeConcurrently(
HiveConf.setVar(shell.getHiveConf(),
HiveConf.ConfVars.HIVE_QUERY_REEXECUTION_STRATEGIES,
retryStrategies);
+ HMSHandlerContext.clear();
+ String metastoreConnectUrl = shell.metastore().getConnectionURL();
+ Configuration shellConf = shell.getHiveConf();
+
+ if (metastoreConnectUrl != null) {
+
shellConf.set(HiveConf.ConfVars.METASTORE_CONNECT_URL_KEY.varname,
metastoreConnectUrl);
Review Comment:
i am not convinced we should be doing this. can't we set globally
METASTORE_CONNECT_URL_KEY?
like
System.setProperty(HiveConf.ConfVars.METASTORE_CONNECT_URL_KEY.varname,
MetastoreConf.getVar(hiveConf,
MetastoreConf.ConfVars.CONNECT_URL_KEY));
--
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]