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

Fix compatibility with ClickHouse without allow_experimental_analyzer=1 #66

Merged
merged 1 commit into from
Jul 5, 2024

Commits on Jul 5, 2024

  1. Fix compatibility with ClickHouse without allow_experimental_analyzer=1

    ClickHouse without allow_experimental_analyzer returns name of the
    subquery with the key when you have > 2 subqueries (odd):
    
    This is for 21.2:
    
        select a.*, b.*, c.* from (select * from system.one) as a, (select dummy as x from system.one) as b, (select dummy as y from system.one) as c
        ┌─a.dummy─┬─b.x─┬─c.y─┐
        │       0 │   0 │   0 │
        └─────────┴─────┴─────┘
    
        select a.*, b.* from (select * from system.one) as a, (select dummy as x from system.one) as b
        ┌─dummy─┬─x─┐
        │     0 │ 0 │
        └───────┴───┘
    
    24.7 upstream:
    
        select a.*, b.*, c.* from (select * from system.one) as a, (select dummy as x from system.one) as b, (select dummy as y from system.one) as c
        ┌─a.dummy─┬─b.x─┬─c.y─┐
        │       0 │   0 │   0 │
        └─────────┴─────┴─────┘
    
        select a.*, b.*, c.* from (select * from system.one) as a, (select dummy as x from system.one) as b, (select dummy as y from system.one) as c settings allow_experimental_analyzer=0
        ┌─a.dummy─┬─b.x─┬─c.y─┐
        │       0 │   0 │   0 │
        └─────────┴─────┴─────┘
    
    Fixes: 5e0d54b ("Add Inserted/Selected rows into summary")
    azat committed Jul 5, 2024
    Configuration menu
    Copy the full SHA
    dea3135 View commit details
    Browse the repository at this point in the history