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
{{ message }}
Repository navigation
SQL: Methods called on expand() return values are ignored #1004
I have tried various methods on top of expand, none have effect. I am fine with that given expand's special function, but it should be documented (before I wanted to make sure this is no bug), or maybe an error should be raised?
@lvca the functions intersect and unionall seem to have the same problem, I assume for the same reason as expand - being special. If so I could add notes to the docs and the error could be raised for those too, or is this a bug?
Activity
lvca commentedon Apr 5, 2023
expand()is a special function different from all the others because able to change the return type. Have you tried with other functions as well?gramian commentedon Apr 5, 2023
I have tried various methods on top of
expand, none have effect. I am fine with that givenexpand's special function, but it should be documented (before I wanted to make sure this is no bug), or maybe an error should be raised?lvca commentedon Apr 5, 2023
I think the documentation lacks such information. An exception should be thrown so the user has feedback on this invalid operation.
gramian commentedon Apr 5, 2023
I will add to the documentation.
gramian commentedon Apr 5, 2023
BTW, this:
produces a weird result, but an effect. Maybe all modifiers (method calls, array indexing and suffix identifiers) should be prohibited?
fix: SQL expand() does not accept modifiers
lvca commentedon Apr 5, 2023
Fixed. Now any attempt to append something to the expand() projection (any modifier in the grammar) throws:
gramian commentedon Apr 15, 2023
@lvca the functions
intersectandunionallseem to have the same problem, I assume for the same reason asexpand- being special. If so I could add notes to the docs and the error could be raised for those too, or is this a bug?lvca commentedon Apr 17, 2023
expand()is the only function very "special". Do you have a query that is not working?gramian commentedon Apr 17, 2023
see #1037
build(deps-dev): bump @testcontainers/postgresql from 10.26.0 to 10.2…
chore(deps-dev): bump com.jayway.jsonpath:json-path from 2.9.0 to 2.1…
fix: SQL expand() does not accept modifiers
build(deps-dev): bump @testcontainers/postgresql from 10.26.0 to 10.2…
chore(deps-dev): bump com.jayway.jsonpath:json-path from 2.9.0 to 2.1…