-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Open
Labels
bugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomers
Description
Describe the bug
In datafusion-cli:
> select (1+2)*3;
+--------------------------------+
| Int64(1) + Int64(2) * Int64(3) |
+--------------------------------+
| 9 |
+--------------------------------+
The expression displayed in the plan is misleading due to the missing parentheses.
To Reproduce
No response
Expected behavior
Always include parentheses for binary expressions
Additional context
Maybe we are also missing () for other expression types like unary expression
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomers