Skip to content
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

Bug fixes for CrossJoin scope visibility and disposing mem caches for IndexedInSubqueryFilter #1459

Merged
merged 6 commits into from
Dec 8, 2022

Conversation

fulghum
Copy link
Contributor

@fulghum fulghum commented Dec 7, 2022

crossJoinIter was the only join iterator that wasn't taking in a parentRow with outer scope values and passing that row prefix to its children. There's some low-hanging fruit to refactor the joinIters to reduce duplication, but it didn't seem high priority, so I stopped short of that. Fixes: dolthub/dolt#4926

While testing that, I also hit a bug with a mem cache not being released by IndexedInSubqueryFilter and included that fix here. There were also some dispose member and Dispose functions in the join iterators that I verified were not used anywhere, so I pulled those out to tidy up.

Dolt CI Tests: dolthub/dolt#4947

@fulghum fulghum marked this pull request as ready for review December 7, 2022 23:38
Copy link
Contributor

@max-hoffman max-hoffman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! i was originally confused because i forgot parentRow is a concatenation of outer-scope and inner-scope dependencies, so removeParentRow, which only old removes inner-scope dependencies, is kind of a misnomer preceding your additions. But this all looks good. Thanks for cleaning up the old dispose methods also.

@fulghum fulghum merged commit 9f3be8e into main Dec 8, 2022
@fulghum fulghum deleted the fulghum/dolt-4926 branch December 8, 2022 17:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GetField error for query with recursive CTE
2 participants