EmmyMiao87 commented on a change in pull request #3916:
URL: https://github.com/apache/incubator-doris/pull/3916#discussion_r443190547



##########
File path: fe/src/main/java/org/apache/doris/analysis/RangePartitionDesc.java
##########
@@ -145,9 +149,14 @@ public PartitionInfo toPartitionInfo(List<Column> schema, 
Map<String, Long> part
             boolean find = false;
             for (Column column : schema) {
                 if (column.getName().equalsIgnoreCase(colName)) {
-                    if (!column.isKey()) {
+                    if (!column.isKey() && column.getAggregationType() != 
AggregateType.NONE) {
                         throw new DdlException("Partition column[" + colName + 
"] is not key column");

Review comment:
       ```suggestion
                           throw new DdlException("The partition column could 
not be aggregated column");
   ```




----------------------------------------------------------------
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:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to