From 6d56bacee637ccfe5d3f7643c4bc8f83ef95b327 Mon Sep 17 00:00:00 2001 From: kalyanmysore Date: Thu, 21 Nov 2024 14:12:00 -0600 Subject: [PATCH 1/2] Fixed description of insert behavior on primary key table Signed-off-by: kalyanmysore --- docs/en/table_design/table_types/table_types.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/en/table_design/table_types/table_types.md b/docs/en/table_design/table_types/table_types.md index 62b3e1463d3de..2d5949924ca4c 100644 --- a/docs/en/table_design/table_types/table_types.md +++ b/docs/en/table_design/table_types/table_types.md @@ -41,4 +41,4 @@ For more descriptions of sort keys, see [Sort keys and prefix indexes](../indexe - Unique Key table and Primary Key table - StarRocks replaces each newly loaded record with the previously loaded record and retains only the most recently loaded record as a row in the table. After the loading is complete, the table does not contain rows that have the same primary key. The Unique Key table and the Primary Key table can be considered a special Aggregate table in which the REPLACE aggregate function is specified for metric columns to return the most recent record among a group of records that have the same primary key. + StarRocks replaces each previously loaded record with the newly loaded record and retains only the most recently loaded record as a row in the table. After the loading is complete, the table does not contain previous rows that have the same primary key. Only the latest record that contains the same primary key is retained. The Unique Key table and the Primary Key table can be considered a special Aggregate table in which the REPLACE aggregate function is specified for metric columns to return the most recent record among a group of records that have the same primary key. From c752bff7df3d24f7fcb498bdb8b3cacc4b9ce42c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=B5=B5=E7=A9=BA=E4=BA=8B=E3=82=B9=E3=83=94=E3=83=AA?= =?UTF-8?q?=E3=83=83=E3=83=88?= Date: Fri, 22 Nov 2024 10:20:13 +0800 Subject: [PATCH 2/2] Update table_types.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 絵空事スピリット --- docs/en/table_design/table_types/table_types.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/en/table_design/table_types/table_types.md b/docs/en/table_design/table_types/table_types.md index 2d5949924ca4c..ba8fc1c7eae66 100644 --- a/docs/en/table_design/table_types/table_types.md +++ b/docs/en/table_design/table_types/table_types.md @@ -41,4 +41,4 @@ For more descriptions of sort keys, see [Sort keys and prefix indexes](../indexe - Unique Key table and Primary Key table - StarRocks replaces each previously loaded record with the newly loaded record and retains only the most recently loaded record as a row in the table. After the loading is complete, the table does not contain previous rows that have the same primary key. Only the latest record that contains the same primary key is retained. The Unique Key table and the Primary Key table can be considered a special Aggregate table in which the REPLACE aggregate function is specified for metric columns to return the most recent record among a group of records that have the same primary key. + StarRocks replaces each previously loaded record with the newly loaded record and retains only the most recently loaded record as a row in the table. After the loading is complete, the table does not contain previous rows that have the same primary key. Only the latest record that contains the same unique key/primary key is retained. The Unique Key table and the Primary Key table can be considered a special Aggregate table in which the REPLACE aggregate function is specified for metric columns to return the most recent record among a group of records that have the same primary key.