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 show query action (shortcut - 'S') #61

Merged
merged 3 commits into from
Apr 17, 2024
Merged

Add show query action (shortcut - 'S') #61

merged 3 commits into from
Apr 17, 2024

Conversation

azat
Copy link
Owner

@azat azat commented Apr 17, 2024

Useful when you don't have editor installed, since EXPLAIN SYNTAX expand
some part of the queries, and sometimes the different is significant,
i.e. (see 1 for expanded result, it is too big to post it here, since
it expand all the columns lists at least):

explain syntax select * from system.parts p left join system.tables t on (p.database = t.database and p.table = t.name) left join system.databases d on (t.database = d.name);

Fixes: #56

Useful when you don't have editor installed, since EXPLAIN SYNTAX expand
some part of the queries, and sometimes the different is significant,
i.e. (see [1] for expanded result, it is too big to post it here, since
it expand all the columns lists at least):

    explain syntax select * from system.parts p left join system.tables t on (p.database = t.database and p.table = t.name) left join system.databases d on (t.database = d.name);

  [1]: https://fiddle.clickhouse.com/bcfa3c50-051e-4c7c-abc3-f4a022418b24
@azat azat merged commit 3fa6b89 into main Apr 17, 2024
5 checks passed
@azat azat deleted the actions/show-query branch April 17, 2024 07:42
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 this pull request may close these issues.

show the query without editor installed
1 participant