-
-
Notifications
You must be signed in to change notification settings - Fork 401
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
Accessing a Query with a Subquery will break it for subsequent use #780
Comments
@long2ice |
@long2ice |
Issue is still there with 0.17.8 |
@abondar Can you reproduce this issue? |
Hi! Yes, it reproduces Issue is that materializing query changes state of query, and it seems like some data could be lost if we call it several times Simple adhoc fix for
After that your example gives identical queries
But not sure if it the way we should band-aid like this, or should investigate deeper what exactly breaks Unfortunately I am mostly not available for coming several days, so don't have opportunity to investigate it, may be will find time next week |
I think I found the issue - ValuesQuery and ValuesListQuery do not reset Should be not hard fix, but still can't do it earlier than next week |
@abondar: Do you already have an idea for a robust immutable approach or a fix? |
Sorry, I got distracted and didn't release fix for it in time I now released 0.21.4 that includes fix for this issue |
Filtering relationships with sub queries does not work.
To Reproduce
Result from snippet.
count
andall
is not working. Note that the SQL statement changed from SQL1 to SQL2.Result with SQL1 commented out. Note that
count
is working now, butall
still isn't!Result with SQL1 + count commented out. Note that
all
is working now!PS: The Generated SQL1 seems strange with the two left outer joins:
The text was updated successfully, but these errors were encountered: