-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[REGRESSION] db-service
aggregation query throws error
#1112
Comments
db-service
TypeError: (transformedQuery.SELECT.from.ref || transformedQuery.SELECT.from.SELECT.from.ref) is not iterabledb-service
aggregation query throws error
@patricebender do we have a test for that use case? |
Hi @hakimio, Could you please help me reproduce the issue? I ran this query with the bookshop, which resembles the structure you suggested:
but that didn't do the trick. |
@patricebender I think you need to
EDIT: related issue which you fixed sometime ago and regressed now: #708 |
if a query selects from another query, we need to consider the case where the subquery has path expressions (and therefore joins). The best solution is then to drill down into the innermost query of the from clause, because we do not know the depth. It is also not a good idea to check for the `ref` of the innermost _untransformed_ query, as it is potentially a scoped query (as shown in one of the tests). fix #1112
@hakimio thanks for your help in analyzing this, my fix should cover your case (and even more;)) |
@patricebender Thank you for coming up with a fix for the issue so fast 🙂 |
Description of erroneous behaviour
Running the following query:
Results in an error:
This is a regression because the same query works fine with
db-service
v1.18.0
, but throws error withv1.19.1
.Detailed steps to reproduce
Details about your project
@danjoa
Might be releated to 0828c25
The text was updated successfully, but these errors were encountered: