deniskuzZ commented on code in PR #6986:
URL: https://github.com/apache/hive/pull/6986#discussion_r4774878782


##########
ql/src/java/org/apache/hadoop/hive/ql/ddl/view/materialized/alter/rebuild/MaterializedViewASTBuilder.java:
##########
@@ -33,10 +33,16 @@ public List<ASTNode> createAcidSortNodes(ASTNode inputNode) 
{
     return createAcidSortNodesInternal(inputNode.getText());
   }
 
+  public List<ASTNode> createAcidDistributeNodes(ASTNode inputNode) {
+    return createAcidDistributeNodesInternal(inputNode.getText());
+  }
+
   public abstract void appendDeleteSelectNodes(ASTNode selectNode, String 
tableName);
 
   protected abstract List<ASTNode> createAcidSortNodesInternal(String 
tableName);
 
+  protected abstract List<ASTNode> createAcidDistributeNodesInternal(String 
tableName);

Review Comment:
   nit: *Internal methods shouldn't be the protected override points. 
   The createAcidDistributeNodes(ASTNode) → 
createAcidDistributeNodesInternal(String) wrapper only calls getText(). 
   
   Could we drop it and have one createAcidDistributeNodes(String tableName) 
that returns emptyList() by default, with only the non-native builder 
overriding it? 
   createAcidSortNodes could get the same cleanup, here or in a follow-up.



-- 
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]

Reply via email to