taoshengyijiua opened a new issue, #9833:
URL: https://github.com/apache/incubator-doris/issues/9833

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/incubator-doris/issues?q=is%3Aissue) and 
found no similar issues.
   
   
   ### Version
   
   1.0.0
   
   ### What's Wrong?
   
   CREATE TABLE example_db.table_hash
   (
       k1 BIGINT,
       k2 LARGEINT,
       v1 VARCHAR(2048) REPLACE,
       v2 SMALLINT SUM DEFAULT "10"
   )
   UNIQUE KEY(k1, k2)
   DISTRIBUTED BY HASH (k1, k2) BUCKETS 32
   PROPERTIES(
       "storage_medium" = "SSD",
       "storage_cooldown_time" = "2015-06-04 00:00:00"
   );
   
文档地址:https://doris.apache.org/zh-CN/sql-manual/sql-reference/Data-Definition-Statements/Create/CREATE-TABLE.html#create-table
   该语句创建sql报错,UNIQUE_KEYS table should not specify aggregate type for non-key 
column
   value字段不能指定聚合类型
   
   ### What You Expected?
   
   修改建表语句,删除v1REPLACE
   并且删除V2的聚合字段
   CREATE TABLE table_hash
   (
       k1 BIGINT,
       k2 LARGEINT,
       v1 VARCHAR(2048) 
   )
   UNIQUE KEY(k1, k2)
   DISTRIBUTED BY HASH (k1, k2) BUCKETS 32
   ;
   
   ### How to Reproduce?
   
   在1.0.0版本执行以上语句
   
   ### Anything Else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


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