pvary commented on a change in pull request #1095:
URL: https://github.com/apache/hive/pull/1095#discussion_r444751029
##########
File path:
ql/src/java/org/apache/hadoop/hive/ql/ddl/table/partition/add/AbstractAddPartitionAnalyzer.java
##########
@@ -130,4 +131,20 @@ protected void analyzeCommand(TableName tableName,
Map<String, String> partition
protected abstract void postProcess(TableName tableName, Table table,
AlterTableAddPartitionDesc desc,
Task<DDLWork> ddlTask) throws SemanticException;
+
+// Equivalent to acidSinks, but for DDL operations that change data.
+private DDLDescWithWriteId ddlDescWithWriteId;
+
+protected void setAcidDdlDesc(DDLDescWithWriteId descWithWriteId) {
+ if( this.ddlDescWithWriteId != null ) {
+ throw new IllegalStateException("ddlDescWithWriteId is already set: " +
this.ddlDescWithWriteId);
+ }
+ this.ddlDescWithWriteId = descWithWriteId;
+}
+
+@Override
+public DDLDescWithWriteId getAcidDdlDesc() {
+ return ddlDescWithWriteId;
+}
+
Review comment:
Is the formatting correct here?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]