morningman commented on a change in pull request #7225:
URL: https://github.com/apache/incubator-doris/pull/7225#discussion_r763065605



##########
File path: 
fe/fe-core/src/main/java/org/apache/doris/analysis/CreateTableStmt.java
##########
@@ -406,6 +406,12 @@ public void analyze(Analyzer analyzer) throws 
UserException {
                 throw new AnalysisException("Create olap table should contain 
distribution desc");
             }
             distributionDesc.analyze(columnSet);
+            List<String> distributionColNames = 
((HashDistributionDesc)distributionDesc).getDistributionColumnNames();
+            if (partitionDesc != null) {
+                if (checkIsDuplicate(partitionDesc.partitionColNames, 
distributionColNames)) {
+                    throw new AnalysisException("Partition column and bucket 
column should not have duplicates");

Review comment:
       I don't think we should restrict users from this kind of use.
   The problem you described in issue should be fixed by modifying the prune 
logic?




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