hmangla98 commented on code in PR #3298:
URL: https://github.com/apache/hive/pull/3298#discussion_r875771882
##########
ql/src/java/org/apache/hadoop/hive/ql/ddl/DDLOperationContext.java:
##########
@@ -51,8 +51,8 @@ public DDLOperationContext(HiveConf conf, Context context,
DDLTask task, DDLWork
this.console = console;
}
- public Hive getDb() {
- return db;
+ public Hive getDb() throws HiveException {
+ return Hive.getCurrHiveDb(db, conf);
Review Comment:
Yes, there is a situation where hive connections is closed and it still
returns reference of the closed hive object.
##########
ql/src/java/org/apache/hadoop/hive/ql/ddl/DDLOperationContext.java:
##########
@@ -51,8 +51,8 @@ public DDLOperationContext(HiveConf conf, Context context,
DDLTask task, DDLWork
this.console = console;
}
- public Hive getDb() {
- return db;
+ public Hive getDb() throws HiveException {
+ return Hive.getCurrHiveDb(db, conf);
Review Comment:
Yes, there is a situation where hive connection is closed and it still
returns reference of the closed hive object.
--
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]