dengzhhu653 commented on code in PR #4565:
URL: https://github.com/apache/hive/pull/4565#discussion_r1290055493
##########
ql/src/java/org/apache/hadoop/hive/ql/exec/FetchOperator.java:
##########
@@ -227,7 +227,11 @@ public static InputFormat getInputFormatFromCache(
if (format == null) {
try {
format = ReflectionUtil.newInstance(inputFormatClass, conf);
- inputFormats.put(inputFormatClass.getName(), format);
+ // HBase input formats are not thread safe today. See HIVE-8808.
+ String inputFormatName = inputFormatClass.getName().toLowerCase();
+ if (!inputFormatName.contains("hbase")) {
Review Comment:
Looks like the JdbcInputFormat is stateful, but we can make it stateless, we
can fix it in the follow-up jira.
https://github.com/apache/hive/blob/a406d6d4417277e45b93f1733bed5201afdee29b/jdbc-handler/src/main/java/org/apache/hive/storage/jdbc/JdbcInputFormat.java#L46
--
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]