Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ClickBench query 29 #9

Closed
sstalin opened this issue Jul 22, 2022 · 2 comments · Fixed by ClickHouse/ClickHouse#39592 or #30
Closed

ClickBench query 29 #9

sstalin opened this issue Jul 22, 2022 · 2 comments · Fixed by ClickHouse/ClickHouse#39592 or #30
Assignees

Comments

@sstalin
Copy link

sstalin commented Jul 22, 2022

Running q29 produces results like

http://rihanner.ferio.ru/katalogOrigin	38	149869	http://rihanner.ferio.ru/katalogOrigin
http://irr.ru/jobs-educations/tehnik	36	123637	http://irr.ru/jobs-educations/tehnik
https://google.com/fee=меньше	35	2958167	https://google.com/fee=меньше
http://kirov.irr.ru/index.php%3Ftb	34	273645	http://kirov.irr.ru/index.php%3Ftb
http://video.yandsearch/price=от	34	268732	http://video.yandsearch/price=от
http://irr.ru/jobinmoscow.ru/Nike	33	260592	http://irr.ru/jobinmoscow.ru/Nike
http://bdsmpeople.ru/register2123	33	164925	http://bdsmpeople.ru/register2123
...

I would have expect to see host names return as a result

With Postgres I do receive correct result

postgres=# 
postgres=# SELECT REGEXP_REPLACE('http://irr.ru/jobs-educations/tehnik', '^https?://(?:www.)?([^/]+)/.*$', '\1');
 regexp_replace 
----------------
 irr.ru
(1 row)

postgres=# SELECT REGEXP_REPLACE('http://rihanner.ferio.ru/katalogOrigin', '^https?://(?:www.)?([^/]+)/.*$', '\1');
  regexp_replace   
-------------------
 rihanner.ferio.ru
(1 row)

postgres=# 

@alexey-milovidov
Copy link
Member

I confirm, it is a bug in ClickHouse.

@alexey-milovidov
Copy link
Member

The bug is fixed and the results are updated.

@alexey-milovidov alexey-milovidov self-assigned this Oct 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants