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

Add support for with clause #142

Open
artvandaly opened this issue Jan 22, 2023 · 1 comment
Open

Add support for with clause #142

artvandaly opened this issue Jan 22, 2023 · 1 comment

Comments

@artvandaly
Copy link

artvandaly commented Jan 22, 2023

Could not find support for WITH clause
such as:

/* this example would return TOP 10 of most huge tables */
WITH
    (
        SELECT sum(bytes)
        FROM system.parts
        WHERE active
    ) AS total_disk_usage
SELECT
    (sum(bytes) / total_disk_usage) * 100 AS table_disk_usage,
    table
FROM system.parts
GROUP BY table
ORDER BY table_disk_usage DESC
LIMIT 10;
@artvandaly artvandaly changed the title Add support for with statement Add support for with clause Jan 22, 2023
@sjoerdmulder
Copy link
Contributor

sjoerdmulder commented Feb 2, 2023 via email

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

No branches or pull requests

2 participants