在 Mosaic Decisions 中管理自动递增列值
Manage auto increment column values in Mosaic Decisions
我有一个 table,其中为键列定义了自动增量序列。
问题陈述-
Source_table 有列 ID 和 values 101, 102, 103
依此类推,Destination_table 有列 ID 和 values 1201,1202,1203
..并且是增量形式。
Source_table
Destination_table
现在,在 Mosaic 中,我可以从 Source_table 中读取数据,但是在写入 目标 table,Destination_table.ID
的 值 被 Source_table.ID
值覆盖.
有什么方法可以保留 Destination_table 在Mosaic[ 中的序列?
是的,您可以使用 编写器节点 中提供的 Skip Insert
和 Skip Update
功能来 Upsert
write mode,其中它将跳过来自 input 的序列并保留 destination 列中的序列。
要实现这个,在Writer Node Configuration菜单中,select将Write Mode作为Upsert拖入您希望为 Skip Insert
和 Skip Update
保留 序列 的列,如下所示:
我有一个 table,其中为键列定义了自动增量序列。
问题陈述-
Source_table 有列 ID 和 values 101, 102, 103
依此类推,Destination_table 有列 ID 和 values 1201,1202,1203
..并且是增量形式。
Source_table
Destination_table
现在,在 Mosaic 中,我可以从 Source_table 中读取数据,但是在写入 目标 table,Destination_table.ID
的 值 被 Source_table.ID
值覆盖.
有什么方法可以保留 Destination_table 在Mosaic[ 中的序列?
是的,您可以使用 编写器节点 中提供的 Skip Insert
和 Skip Update
功能来 Upsert
write mode,其中它将跳过来自 input 的序列并保留 destination 列中的序列。
要实现这个,在Writer Node Configuration菜单中,select将Write Mode作为Upsert拖入您希望为 Skip Insert
和 Skip Update
保留 序列 的列,如下所示: