Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

执行merge操作时,如何将过程中执行了多少次insert操作和update操作输出在日志中 #2184

Open
KunCheng-He opened this issue Aug 19, 2024 · 0 comments

Comments

@KunCheng-He
Copy link

背景

基于 Gaussdbwriter 插件,我自己加入了 merge 模式,具体代码如下:

图片

Gaussdb 原生支持 merge 模式,生成对应的 SQL 语句执行即可

问题

Gaussdb 原生的 merge 模式其本质还是执行的是 insert 和 update 操作,所以在通过 DataX 调用该模式时,只知道执行成功了,但是不知道其中执行了多少次 insert 操作,执行了多少次 update 操作,我想将该部分信息统计出来打印在日志中。(图中 LOG.info 使用的是 slf4j,图中只是将生成的 SQL 输出到日志中,获取不到执行的结果)

先谢谢各位大佬了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant