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

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

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

3、排序后合并记录
根据当中的字段sClassCode排序后,反而又少了3条。失败~
4、增加常数序列
增加常数序列后,无任何改变。
上述四种方法,单一很难有用,
结合两种或者多种就能够保持数据量不变。
具体原理我也不是很懂,求指教~~~(c243126035)
边栏推荐
- Summary of "performance test" of special test
- Leetcode brushes questions the next day
- v-if,v-else,v-for
- log4j. Properties log details
- Self control principle learning notes - system stability analysis (1) - BIBO stability and Routh criterion
- An article allows you to master threads and thread pools, and also solves thread safety problems. Are you sure you want to take a look?
- JMeter interface automation - how to solve the content type conflict of request headers
- 一个经验
- [wechat applet] project practice - lottery application
- web UI 自动化测试:Selenium 语法详解 史上最全
猜你喜欢

Unity显示Kinect捕获的镜头

Unity learning notes (realize the conveyor belt)

How to break the team with automated testing

Performance analysis of continuous time systems (2) - second order system performance improvement methods PID, PR

「测试新手百科」5 分钟快速上手Pytest 自动化测试框架

express

MongoDB学习笔记(1)——安装MongoDB及其相关配置

v-if,v-else,v-for

Nodejs template engine EJS

Unity-显示Kinect深度数据
随机推荐
Ruiji takeout SQL table
Code interview of Amazon
WSN journal indexed by SCI
log4j. Properties log details
X-shell remote connection virtual machine
"Testing novice encyclopedia" 5-minute quick start pytest automated testing framework
NPM, cnpm Taobao image
换行问题双保险
What if idea successfully connects to the database without displaying the table
express
An article allows you to master threads and thread pools, and also solves thread safety problems. Are you sure you want to take a look?
MongoDB
Express get/post/delete... Request
normal distribution, lognormal distribution,正态随机数的生成
Unity-显示Kinect深度数据
怎样产生标准分布或高斯分布的随机数
MySQL学习笔记(2)——存储过程与存储函数
win10小技巧(1)——转移桌面位置
汇编语言入门基础(1)
Unity display Kinect depth data