如何在Pentaho的插入/更新步骤中获取仅已插入/更新的行?

huangapple go评论51阅读模式
英文:

How to get rows which are inserted/updated only in Insert/Update step in Pentaho?

问题

我使用Pentaho来使用Insert/Update步骤插入/更新表中的行。问题是我想知道哪些行被插入或更新到我的表中。

但是当我尝试在Insert/Update步骤之后创建一个Log步骤时,它只是记录流中的所有行,无论它们在表中是否已经存在或是新插入/更新的。

有没有办法只获取在Insert/Update步骤中被插入/更新到表中的行

如何在Pentaho的插入/更新步骤中获取仅已插入/更新的行? 如何在Pentaho的插入/更新步骤中获取仅已插入/更新的行?

英文:

I'm using Pentaho to insert/update rows to a table with the Insert/Update step. The problem is I want to know which rows are inserted or updated into my table.

But when I try to create a Log step after the Insert/Update step, it just logs all the rows from the stream no matter if they've existed in the table or newly inserted/updated.

Is there any way to take the rows that are inserted/updated to a table only in the Insert/Update step?

如何在Pentaho的插入/更新步骤中获取仅已插入/更新的行? 如何在Pentaho的插入/更新步骤中获取仅已插入/更新的行?

答案1

得分: 1

Using Insert/Update step, its not possible to know "which rows are inserted or updated".
但是你可以使用另一种方法来执行插入和更新操作,并了解日志状态。
你可以在这里找到示例转换。

英文:

Using Insert/Update step, its not possible to know "which rows are inserted or updated".
But you can use an alternate way to perform insert and update action ; and also know the log status.
You can found sample transformation from Here

如何在Pentaho的插入/更新步骤中获取仅已插入/更新的行?

huangapple
  • 本文由 发表于 2023年3月9日 15:19:34
  • 转载请务必保留本文链接:https://go.coder-hub.com/75681486.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定