Closed
Description
Description
- Currently in the
main
andv1
branches, the ast's modeling ofset_op.s_f_w
does not allow for defining left associative set operations (UNION, EXCEPT, INTERSECT).
Current modeling on main
/v1
:
partiql-lang-kotlin/partiql-ast/src/main/resources/partiql_ast.ion
Lines 494 to 510 in edef7fb
Assuming SFW_1, SFW_2, SFW_3 represent 3 different SFW queries. Then the following cannot be modeled in the current AST using set_op.s_f_w
:
(SFW_1 EXCEPT SFW_2) EXCEPT SFW_3
Set operations are by default left-associative, so SFW_1 <set_op> SFW_2 <set_op> SFW_3
is also not representable.
To Reproduce
Steps to reproduce the behavior:
- Attempt to create the above query using the AST
Expected Behavior
- Allow users + library owner to create a left associative set operation
Additional Context
- Java version: 17
- PartiQL version: 0.14.5 and later +
v1
branch - Add any other context about the problem here.