【问题标题】:Manage auto increment column values in Mosaic Decisions管理 Mosaic 决策中的自动递增列值
【发布时间】:2020-07-30 12:38:24
【问题描述】:

我有一个表,其中为键列定义了自动递增序列。

问题陈述-

Source_tableID 具有 101, 102, 103 依此类推,Destination_tableID 具有 1201,1202,1203.. 并且是增量形式。

Source_table

Destination_table

现在,在 Mosaic 中,我可以从 Source_table 读取数据,但是在写入 Destination 表 时, Destination_table.ID 的 >valuesSource_table.ID values 覆盖。

有什么方法可以保留我的 Destination_tableMosaic 中的序列?

【问题讨论】:

    标签: mosaic-decisions


    【解决方案1】:

    是的,您可以使用 writer 节点 中提供的Skip InsertSkip Update 功能用于Upsert 写入模式,在该模式下它将跳过序列来自 input 并保留 destination 列中的序列。

    为此,在 Writer Node Configuration 菜单中,选择 Write Mode 作为 Upsert 并拖入您希望保留 sequence 的列strong> 为Skip InsertSkip Update,如下图:

    【讨论】:

      猜你喜欢
      • 2023-03-24
      • 1970-01-01
      • 1970-01-01
      • 2017-03-22
      • 1970-01-01
      • 1970-01-01
      • 2016-03-07
      • 1970-01-01
      • 2018-10-14
      相关资源
      最近更新 更多