当前位置:网站首页>Clickhouse pit filling note 2: the join condition does not support non equal judgments such as greater than and less than
Clickhouse pit filling note 2: the join condition does not support non equal judgments such as greater than and less than
2022-07-28 04:59:00 【It source brother】
I have a problem recently ,ClickHouse There is a table in , There is a user in it (f_user) Field , There are statistics every day , Now I want to get some new user data generated , Because I'm used to MySQL, I naturally want to make one with the same table Join operation , Then the date of the previous table is greater than that of the next table ,where In filter condition , The date in the following table is null, So you can get the data , But it turns out ClickHouse This operation is not supported , For a long time , Finally, this problem is solved , Here is a detailed description of the process .
- Problem description
stay MySQL in , It can often be written in a way similar to the following :
Select a.f_date,count(a.f_user) from t_table a
left join t_table b on a.f_date>b.f_date and a.f_user=b.f_user
Where b.f_date is null
Group by a.f_dateIt's written in MySQL useful , But in ClickHouse Inside , The following exceptions will be reported :
ClickHouse exception, code: 48, host: 128.0.0.1, port: 1166
边栏推荐
- Redis type
- Anaconda common instructions
- RT based_ Distributed wireless temperature monitoring system based on thread
- Youxuan database participated in the compilation of the Research Report on database development (2022) of the China Academy of communications and communications
- Activation functions sigmoid, tanh, relu in convolutional neural networks
- Table image extraction based on traditional intersection method and Tesseract OCR
- Simulink automatically generates STM32 code details
- Use animatedbuilder to separate components and animation, and realize dynamic reuse
- Know etcd
- Evolution of ape counseling technology: helping teaching and learning conceive future schools
猜你喜欢

Flink mind map

Mysql database -- first knowledge database

Method of converting UI file to py file

CPU and memory usage are too high. How to modify RTSP round robin detection parameters to reduce server consumption?

Redis类型

Evolution of ape counseling technology: helping teaching and learning conceive future schools

What is the reason why the easycvr national standard protocol access equipment is online but the channel is not online?
![[daily one] visual studio2015 installation in ancient times](/img/b1/066ed0b9e93b8f378c89ee974163e5.png)
[daily one] visual studio2015 installation in ancient times

FreeRTOS learning (I)

Leetcode 454. Adding four numbers II
随机推荐
What is the reason why the easycvr national standard protocol access equipment is online but the channel is not online?
Research on the design of robot education in stem course
The go zero singleton service uses generics to simplify the registration of handler routes
[idea] check out master invalid path problem
低代码是开发的未来吗?浅谈低代码平台
Testcafe's positioning, operation of page elements, and verification of execution results
[每日一氵]上古年代的 Visual Studio2015 安装
Look at the experience of n-year software testing summarized by people who came over the test
Design and development of C language ATM system project
np. The data returned from delete details is the data after deleting the specified dimension
Easycvr Video Square snapshot adding device channel offline reason display
解析智能扫地机器人中蕴含的情感元素
Redis配置文件详解/参数详解及淘汰策略
Do you know several assertion methods commonly used by JMeter?
Angr (XI) - official document (Part2)
外卖系统 文件上传
05.01 string
go-zero单体服务使用泛型简化注册Handler路由
字符串0123456789abcdef,子串(非空且非同串本身)的个数是多少【杭州多测师】【杭州多测师_王sir】...
What SaaS architecture design do you need to know?