morningman opened a new pull request #3916:
URL: https://github.com/apache/incubator-doris/pull/3916


   The following statement will throw error:
   ```
   create table test.tbl2
   (k1 int, k2 int, k3 float)
   duplicate key(k1)
   partition by range(k2)
   (partition p1 values less than("10"))
   distributed by hash(k3) buckets 1
   properties('replication_num' = '1'); 
   ```
   Error: `Only key column can be partition column`
   
   But in duplicate key table, columns can be partition or distribution column
   even if they are not in duplicate keys.
   
   This bug is introduced by #3812 


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