ClickHouse / ClickHouse/pastila

Query Formatting Option

Open
#34 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
HTML
Stars
85
Forks
5
PR merge metrics
No merged PRs in 30d

Description

It would be great to have a **Format Query** option to automatically format pasted SQL queries for better readability.

For example, when I paste a query like:
```
select avg(price),
toStartOfMonth(date) as month_
from uk_price_paid
WHERE toYear(date) > 2004 AND toYear(date) < 2011
GROUP BY month_;
```
it should automatically format into a more readable structure with proper indentation to something like this

```
select
avg(price),
toStartOfMonth(date) as month_
from
uk_price_paid
WHERE
toYear(date) > 2004
AND toYear(date) < 2011
GROUP BY
month_;
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.