deniskuzZ commented on code in PR #6986:
URL: https://github.com/apache/hive/pull/6986#discussion_r4774779722
##########
ql/src/java/org/apache/hadoop/hive/ql/ddl/view/materialized/alter/rebuild/NonNativeAcidMaterializedViewASTBuilder.java:
##########
@@ -79,4 +79,11 @@ protected List<ASTNode> createAcidSortNodesInternal(String
tableName) {
.map(fieldSchema -> createQualifiedColumnNode(tableName,
fieldSchema.getName()))
.collect(Collectors.toList());
}
+
+ @Override
+ protected List<ASTNode> createAcidDistributeNodesInternal(String tableName) {
+ return mvTable.getStorageHandler().acidDistributeColumns(mvTable,
Context.Operation.DELETE).stream()
+ .map(fieldSchema -> createQualifiedColumnNode(tableName,
fieldSchema.getName()))
+ .collect(Collectors.toList());
Review Comment:
nit: collect is redundant. line 46 moved to .toList(), but this method and
createAcidSortNodesInternal (line 80) still use Collectors.toList()
--
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]