当前位置:网站首页>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
边栏推荐
- Take out system file upload
- CPU and memory usage are too high. How to modify RTSP round robin detection parameters to reduce server consumption?
- Redux basic syntax
- ADB environment configuration
- Can plastics comply with gb/t 2408 - Determination of flammability
- Look at the experience of n-year software testing summarized by people who came over the test
- What tools do software testers need to know?
- What is the core value of testing?
- (2.4) [service Trojan -slimftp] introduction and use
- np. The data returned from delete details is the data after deleting the specified dimension
猜你喜欢

Use and expansion of fault tolerance and fusing

【CPU占用高】software_reporter_tool.exe

Check box error

吉利AI面试题【杭州多测师】【杭州多测师_王sir】

Inspire domestic students to learn robot programming education for children
![[II. Mobile web page development] 2D & 3D conversion and animation, mobile terminal layout, responsive layout](/img/9a/a3b36aa2e5bf53d9f8355ea3c18f1e.png)
[II. Mobile web page development] 2D & 3D conversion and animation, mobile terminal layout, responsive layout

RT based_ Distributed wireless temperature monitoring system of thread (I)
![[每日一氵]上古年代的 Visual Studio2015 安装](/img/b1/066ed0b9e93b8f378c89ee974163e5.png)
[每日一氵]上古年代的 Visual Studio2015 安装

(克隆虚拟机步骤)

Testcafe provides automatic waiting mechanism and live operation mode
随机推荐
What tools do software testers need to know?
The difference between alter and confirm, prompt
动态sql和分页
Domain name (subdomain name) collection method of Web penetration
[函数文档] torch.histc 与 paddle.histogram 与 numpy.histogram
HDU 3585 maximum shortest distance
Activation functions sigmoid, tanh, relu in convolutional neural networks
POJ 1330 Nearest Common Ancestors (lca)
Take out system file upload
Redis configuration file explanation / parameter explanation and elimination strategy
Youxuan database participated in the compilation of the Research Report on database development (2022) of the China Academy of communications and communications
Evolution of ape counseling technology: helping teaching and learning conceive future schools
POJ 3417 network (lca+ differential on tree)
Improve the core quality of steam education among students
[每日一氵]上古年代的 Visual Studio2015 安装
字符串0123456789abcdef,子串(非空且非同串本身)的个数是多少【杭州多测师】【杭州多测师_王sir】...
[daily one] visual studio2015 installation in ancient times
Gan: generative advantageous nets -- paper analysis and the mathematical concepts behind it
alter和confirm,prompt的区别
POJ 2763 housewife wind (tree chain partition + edge weighting point weight)