You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2022/05/11 16:01:30 UTC

[GitHub] [incubator-doris] morningman commented on a diff in pull request #9244: [Fix][doc] Improved sequence function description doc-Zh

morningman commented on code in PR #9244:
URL: https://github.com/apache/incubator-doris/pull/9244#discussion_r870497783


##########
new-docs/zh-CN/data-operate/update-delete/sequence-column-manual.md:
##########
@@ -28,7 +29,7 @@ under the License.
 
 sequence列目前只支持Uniq模型,Uniq模型主要针对需要唯一主键的场景,可以保证主键唯一性约束,但是由于使用REPLACE聚合方式,在同一批次中导入的数据,替换顺序不做保证,详细介绍可以参考[数据模型](../../data-table/data-model.md)。替换顺序无法保证则无法确定最终导入到表中的具体数据,存在了不确定性。
 
-为了解决这个问题,Doris支持了sequence列,通过用户在导入时指定sequence列,相同key列下,REPLACE聚合类型的列将按照sequence列的值进行替换,较大值可以替换较小值,反之则无法替换。该方法将顺序的确定交给了用户,由用户控制替换顺序。
+为了解决这个问题,Doris支持了sequence列,通过用户在导入时指定sequence列,对于该批次导入数据中相同key列的数据,REPLACE聚合类型的列将按照sequence列的值选取一个最大值所在的数据,从而替换Doris中对应key的数据。

Review Comment:
   @icchux , we have just refactor the document. You need to modify the new doc here:
   `docs//zh-CN/data-operate/update-delete/sequence-column-manual.md`



-- 
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-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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