当前位置:网站首页>kettle 合并记录 数据减少
kettle 合并记录 数据减少
2022-07-27 16:28:00 【黑暗料理界的扛把子】
今天进行数据合并操作遇到这样一个问题:合并记录为207条、输出为206条

参考了其他人的文章 提供的结局思路
1.在操作db时,控制顺序,先delete,后insert,这样数据不会少
2.我猜测,一个修改的数据可能在判断是新增、修改、删除时,在旧数据源没有最快找到记录,就标记成new,后面在旧数据源找到一条数据,在新数据源中(已经过去的数据不考虑)没有找到,就标记成deleted
所以解决方法很简单,将新旧数据源都排序,这样得到了我想要的结果。
我做了四种尝试
1、更改新旧数据源
将新、旧数据源更改即可,并未解决。

2、改变合并记录的字段设置(结合第一种成功)
新增其他过滤条件,结合第一种成功。

3、排序后合并记录
根据当中的字段sClassCode排序后,反而又少了3条。失败~
4、增加常数序列
增加常数序列后,无任何改变。
上述四种方法,单一很难有用,
结合两种或者多种就能够保持数据量不变。
具体原理我也不是很懂,求指教~~~(c243126035)
边栏推荐
猜你喜欢

`this.$ Emit ` the child component passes multiple parameters to the parent component

IDEA成功连接Database但不显示表怎么办

Kinect for Unity3d----KinectManager

Mongodb learning notes (1) - install mongodb and its related configurations

Selenium automated test interview questions family bucket

Ruiji takeout notes

阿里云视频点播服务的开通和使用

如何用自动化测试搞垮团队

MySQL learning notes (2) -- stored procedures and stored functions

How to break the team with automated testing
随机推荐
"Testing novice encyclopedia" 5-minute quick start pytest automated testing framework
Basic use of Nacos (1) - getting started
Code interview of Amazon
WSN Journal indexed by SCI(转)
The understanding of string in C.
Self control principle learning notes - system stability analysis (2) - loop analysis and Nyquist bode criterion
MicaZ+Tinyos学习笔记(1)
Kinect for unity3d - backgroundremovaldemo learning
Unity display Kinect depth data
Role authorization --- complete the addition and deletion of secondary menus by adding and deleting primary menus
Selenium automated test interview questions family bucket
Hash、Set、List、Zset、BitMap、Scan
The great idea of NS2
IDEA连接数据库时区问题,报红Server returns invalid timezone. Need to set ‘serverTimezone‘ property.
Useful resources for ns2
自控原理学习笔记-系统稳定性分析(2)-环路分析及Nyquist-Bode判据
[cloud picture theory] the first time to know Huawei cloud micro service engine CSE in issue 250
Kinect2 for Unity3D——AvatarDemo学习
[wechat applet] project practice - lottery application
log4j. Properties log details