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

Format even short queries #834

Open
xianyulli opened this issue Jun 25, 2021 · 1 comment
Open

Format even short queries #834

xianyulli opened this issue Jun 25, 2021 · 1 comment
Labels
feature request New issue opened using "Feature request" template formatting

Comments

@xianyulli
Copy link

xianyulli commented Jun 25, 2021

Format does not take effect if there are few fields or conditions
less case:
image
many case:
image

@gjsjohnmurray
Copy link
Collaborator

Probably not related to number of fields:

CREATE TEMP TABLE T (long_field_name_ABC INT, long_field_name_XYZ INT);

unchanged when formatted.

CREATE TEMP TABLE T (long_field_name_ABCD INT, long_field_name_XYZ INT);

becomes

CREATE TEMP TABLE T (
    long_field_name_ABCD INT,
    long_field_name_XYZ INT
);

@gjsjohnmurray gjsjohnmurray added feature request New issue opened using "Feature request" template and removed triage labels Sep 28, 2022
@gjsjohnmurray gjsjohnmurray changed the title Do not format with fewer fields Format even short queries Sep 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New issue opened using "Feature request" template formatting
Projects
None yet
Development

No branches or pull requests

2 participants