deniskuzZ commented on code in PR #3281:
URL: https://github.com/apache/hive/pull/3281#discussion_r879110909
##########
ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java:
##########
@@ -7601,13 +7619,14 @@ protected Operator genFileSinkPlan(String dest, QB qb,
Operator input)
} catch (LockException ex) {
throw new SemanticException("Failed to allocate write Id", ex);
}
- if (AcidUtils.isInsertOnlyTable(tblProps, true)) {
- isMmTable = isMmCreate = true;
+ if (isMmTable) {
if (tblDesc != null) {
- tblDesc.setInitialMmWriteId(writeId);
+ tblDesc.setInitialWriteId(writeId);
} else {
viewDesc.setInitialMmWriteId(writeId);
}
+ } else if (isDirectInsert) {
+ tblDesc.setInitialWriteId(writeId);
Review Comment:
can we enter here when creating a view?
--
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]