zhannngchen commented on code in PR #13872:
URL: https://github.com/apache/doris/pull/13872#discussion_r1012676443


##########
fe/fe-core/src/test/java/org/apache/doris/catalog/CreateTableTest.java:
##########
@@ -208,6 +208,15 @@ public void testNormal() throws DdlException {
                         + "distributed by hash(k2) buckets 1\n"
                         + "properties('replication_num' = '1');"));
 
+        // table with sequence col
+        ExceptionChecker

Review Comment:
   We also need a ut for alter table?



##########
docs/zh-CN/docs/data-operate/update-delete/sequence-column-manual.md:
##########
@@ -64,15 +64,24 @@ Sequence列建表时在property中增加了一个属性,用来标识`__DORIS_S
 
 **建表**
 
-创建Uniq表时,可以指定sequence列类型
+方法一:创建Uniq表时,可以指定sequence列到其他column的映射。
+
+```text
+PROPERTIES (
+    "function_column.sequence_col" = 'column_name',
+);
+```
+sequence_col用来指定sequence列到其他column的映射,该列可以为整型和时间类型(DATE、DATETIME),创建后不能更改该列的类型。导入时不用再指定映射列。如果设置了`function_column.sequence_col`,
 `function_column.sequence_type`将被忽略。
+
+方法二:创建Uniq表时,可以指定sequence列类型。

Review Comment:
   We'd better hide the usage of method 2, it's only for compatibility to keep 
the old impl.



-- 
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: commits-unsubscr...@doris.apache.org

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