当前位置:网站首页>Clickhouse Filling the Pit 3: Left Join changed to Right Join, resulting in incorrect statistical results
Clickhouse Filling the Pit 3: Left Join changed to Right Join, resulting in incorrect statistical results
2022-08-03 14:45:00 【IT source brother】
Recently encountered a big pit, because the ClickHouse large table is associated with a small table, if the large table is placed on the right, the performance will drop rapidly, and it will not even be executed.What I reported here is "Over 16G abnormal", so I naturally thought of putting the big table on the left, and then changing the Left Join to Right Join. This logic is correct in MySQL, but I didn't expect that the results calculated by ClickHouse are actually quite different., stepped on a big pit.I will explain the problem in detail below.
Please see the issue on gitbub: Why LEFT JOIN RIGHT JOIN return different result? How to resolve it? · Issue #14160 · ClickHouse/ClickHouse ·GitHub
The description of this encounter is basically the same as my situation. I use a distributed table and count statistical conditions, and it turns out that the amount of data is allDoubled the number, and carefully checked the reason. I found the association of distributed tables. ClickHouse actually went to each local table to check the association.
边栏推荐
猜你喜欢
随机推荐
《深度学习》-学习笔记-1-机器学习基础
兆骑科创创业大赛,双创服务平台,线上直播路演
使用Jetty服务器和Axis2框架技术发布Webservice接口
项目管理:PMP和IPMP哪个更值得考?两个证书的区别在于哪里?
个人秋招记录——欢迎交流
[web penetration] detailed explanation of CSRF vulnerability
CVPR 2022 | Predicting Skeletons from Human Meshes, True Physiological Skeletons!
网络中的交换机和路由器
GBase 8c数据库集群中,怎么替换节点呢?比如设置A节点为gtm,换到B节点上。
选择合适的 DevOps 工具,从理解 DevOps 开始
图形学-粒子系统 (Particle System)
LeetCode169:多数元素
第二讲 软件生命周期
What are the visual database design software _ database visual programming
工作流自动化,低代码是解决关键
System learning Shell regular expressions
SQL 不新增表 把一张表定义成两张
MSF编码与upx加壳过杀软
基于ModelArts的动漫头像自动生成丨【华为云至简致远】
C语言中操作符的详细介绍