prql: Variable replacement doesn't respect precedence
In this example, the resulting code for diff should be c - a - b or c - (a + b)
from foo
select [
sum = (a+b),
diff = c-sum # actually outputs "c - a + b AS diff"
]
(Tested with current VScode plugin and Playground)
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 21 (21 by maintainers)
Opened a new issue with the most recent comment, since this is now smaller is scope now that the associativity issue is fixed
Update: Even simpler test case
Playground yields (21Nov2022)
SQL output shows: