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

Support Nested Queries in Mongo #5645

Closed
Tracked by #28005
camsaul opened this issue Jul 31, 2017 · 1 comment · Fixed by #27615
Closed
Tracked by #28005

Support Nested Queries in Mongo #5645

camsaul opened this issue Jul 31, 2017 · 1 comment · Fixed by #27615
Assignees
Labels
Milestone

Comments

@camsaul
Copy link
Member

camsaul commented Jul 31, 2017

So far we only support Nested Queries for SQL databases but it seems like it would be possible to add Mongo support as well. Not sure how simple it would be. Opening this issue so we have a place to track it / don't forget about it.

⬇️ Please click the 👍 reaction instead of leaving a +1 or 👍 comment

@camsaul
Copy link
Member Author

camsaul commented Dec 12, 2022

Since MongoDB aggregation pipeline queries are just sequences of pipeline stages it seems like supporting nested queries for MongoDB would simply be a matter of recursively compiling the source query and then prepending its stages to the beginning of the query. We might have to do a little work to map the columns from the source query correctly but it should be easier than the SQL QP drivers because we don't need to worry about joins

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants