Skip to content

style: Parentheses added. - #1418

Closed
Rishav1707 wants to merge 1 commit into
PRQL:mainfrom
Rishav1707:table
Closed

Rishav1707 wants to merge 1 commit into
PRQL:mainfrom
Rishav1707:table

Conversation

@Rishav1707

Copy link
Copy Markdown

This PR closes the following issue:

closes #1414

Changes made:

  • Added parentheses to Table's Display trait output.

@Rishav1707 Rishav1707 changed the title Parentheses added. docs: Parentheses added. Jan 3, 2023
@Rishav1707 Rishav1707 changed the title docs: Parentheses added. style: Parentheses added. Jan 3, 2023
@aljazerzen

Copy link
Copy Markdown
Member

First of all, thank you for contribution.

The issue is not descriptive enough. It is about changing PRQL code generation, such that table definitions always emit parenthesis, even if the expression is not a pipeline.

The file you've changed is an auto generated from PL AST that has been parsed from an example in the book, which means that it will get overridden when someone runs cargo test.

I'll prepare better descriptions of what is to be done.

@max-sixty

Copy link
Copy Markdown
Member

@Rishav1707 this was my fault for not offering a better description. We'd love your contributions in another PR, check out the ones in good first issue Tasks suited for learning the compiler codebase and we'd be happy to help you.

I'll close this for now, given #1433

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.

table Display misses parentheses

3 participants