You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In SQL expressions — filter salary > 0 and title = "Architect" — these can compile straight to SQL; there's no need for prql to do anything beyond forward them through.
In PRQL code, where we have to evaluate the expression in PRQL to decide what SQL to produce:
func foo x y =(x or y)? salary : total_comp # (assuming we have a tertiary operator, separate discussion!)from employees
derive [
salary: foo 10
also_salary: foo 01
total_comp: foo 00]
For the latter, the default would be to have and and or as infix operators, like they are in most languages.
But my sense is that having these in PRQL is not that important, and we probably don't need them in the first version. If there are example queries that do require them, feel free to post them here.
Activity