This is an automated email from the ASF dual-hosted git repository.

zongwen pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-seatunnel.git


The following commit(s) were added to refs/heads/dev by this push:
     new a55f74172 [Doc] [Connector-V2] Improve StarRocks Sink Doc With 
Template Feature. (#4290)
a55f74172 is described below

commit a55f74172d7d9551243cc4ba441d6885a0b9e9fa
Author: Hisoka <[email protected]>
AuthorDate: Mon Mar 6 18:16:26 2023 +0800

    [Doc] [Connector-V2] Improve StarRocks Sink Doc With Template Feature. 
(#4290)
---
 docs/en/connector-v2/sink/StarRocks.md | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/docs/en/connector-v2/sink/StarRocks.md 
b/docs/en/connector-v2/sink/StarRocks.md
index c13c0649f..68f33497d 100644
--- a/docs/en/connector-v2/sink/StarRocks.md
+++ b/docs/en/connector-v2/sink/StarRocks.md
@@ -106,6 +106,23 @@ CREATE TABLE IF NOT EXISTS `${database}`.`${table_name}`
 );
 ```
 
+If a custom field is filled in the template, such as adding an `id` field
+
+```sql
+CREATE TABLE IF NOT EXISTS `${database}`.`${table_name}`
+(   
+    id,
+    ${rowtype_fields}
+) ENGINE = OLAP DISTRIBUTED BY HASH (${rowtype_primary_key})
+    PROPERTIES
+(
+    "replication_num" = "1"
+);
+```
+
+The connector will automatically obtain the corresponding type from the 
upstream to complete the filling,
+and remove the id field from `rowtype_fields`. This method can be used to 
customize the modification of field types and attributes.
+
 You can use the following placeholders
 
 - database: Used to get the database in the upstream schema

Reply via email to