建表的时候使用 agg 模型,然后把value 列都设置为 replae_if_not_null
如果是已经存在的unique 表是不能更改这个配置的。所以你只能重新建表然后将旧表数据 insert into 到新表中。

Use the agg model when building the table, and then set the value column to
replae_if_not_null
If it is an existing unique table, this configuration cannot be changed. So
you can only rebuild the table and insert the old table data into the new
table.



zhan...@eastcom-sw.com <zhan...@eastcom-sw.com> 于2022年7月13日周三 11:13写道:

>
>     hi,我尝试在UNIQUE模型表两次steamload 相同Key各一半的字段
> 每次未传值的字段都会被替换为NULL,是否有属性配置只更新不为空的字段值?
>
>     t1:  key, col1,col2
>     t2:  key, col3,col4   此次会把col1,col2的值更新为null
>
>    尝试新加属性  ALTER TABLE tbl  set ("replace_if_not_null" = "true");
>    返回异常:  errCode = 2, detailMessage = Unknown table property:
> [replace_if_not_null]
>
>
>
> 姓名 :张泽钦
> 公司 :杭州东方通信软件技术有限公司 广东项目部
> 地址 :广州市天河区珠江新城海安路13号越秀财富世纪广场A1栋1802
> 邮编 :510627
> 手机 :13414145631
> Email:zhan...@eastcom-sw.com
>


-- 
Ling Miao | Apache Doris

Reply via email to