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] implement REGEXP_REPLACE #1690

Closed
joocer opened this issue May 27, 2024 · 0 comments · Fixed by #1712
Closed

🧹 [ClickBench] implement REGEXP_REPLACE #1690

joocer opened this issue May 27, 2024 · 0 comments · Fixed by #1712

Comments

@joocer
Copy link
Contributor

joocer commented May 27, 2024

Query 29

SELECT REGEXP_REPLACE(Referer, '^https?://(?:www\.)?([^/]+)/.*$', '\1') AS k, 
    AVG(length(Referer)) AS l, 
    COUNT(*) AS c, 
    MIN(Referer) 
  FROM hits 
 WHERE Referer <> '' 
 GROUP BY k 
HAVING COUNT(*) > 100000 
 ORDER BY l DESC 
 LIMIT 25;
@joocer joocer mentioned this issue May 31, 2024
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant