zhannngchen commented on code in PR #25356: URL: https://github.com/apache/doris/pull/25356#discussion_r1356529323
########## docs/zh-CN/docs/advanced/variables.md: ########## @@ -682,7 +682,7 @@ try (Connection conn = DriverManager.getConnection("jdbc:mysql://127.0.0.1:9030/ * `enable_unique_key_partial_update` <version since="2.0.2"> - 是否在对insert into语句启用部分列更新的语义,默认为 false + 是否在对insert into语句启用部分列更新的语义,默认为 false。需要注意的是,控制insert语句是否开启严格模式的会话变量`enable_insert_strict`的默认值为true,即insert语句默认开启严格模式,而在严格模式下进行部分列更新时如果插入的数据中存在key列在原表中不存在的行数据,则整个导入会失败。所以,在使用insert语句进行部分列更新的时候如果要允许插入key列在原表中不存在的行数据,需要在`enable_unique_key_partial_update`设置为true的基础上同时将`enable_insert_strict`也设置为true。 Review Comment: 而在严格模式下进行部分列更新不允许更新不存在的key。所以如果希望进行列更新时能插入不存在的key,需要。。。 ########## docs/zh-CN/docs/advanced/variables.md: ########## @@ -682,7 +682,7 @@ try (Connection conn = DriverManager.getConnection("jdbc:mysql://127.0.0.1:9030/ * `enable_unique_key_partial_update` <version since="2.0.2"> - 是否在对insert into语句启用部分列更新的语义,默认为 false + 是否在对insert into语句启用部分列更新的语义,默认为 false。需要注意的是,控制insert语句是否开启严格模式的会话变量`enable_insert_strict`的默认值为true,即insert语句默认开启严格模式,而在严格模式下进行部分列更新时如果插入的数据中存在key列在原表中不存在的行数据,则整个导入会失败。所以,在使用insert语句进行部分列更新的时候如果要允许插入key列在原表中不存在的行数据,需要在`enable_unique_key_partial_update`设置为true的基础上同时将`enable_insert_strict`也设置为true。 Review Comment: 而在严格模式下进行部分列更新不允许更新不存在的key。所以如果希望进行列更新时能插入不存在的key,需要。。。 -- 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