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

Subqueries #10

Open
kit-ty-kate opened this issue Dec 21, 2013 · 2 comments
Open

Subqueries #10

kit-ty-kate opened this issue Dec 21, 2013 · 2 comments
Assignees

Comments

@kit-ty-kate
Copy link
Member

As discussed earlier, we heavily need subqueries (or EXTERNAL JOIN) like:

let sub l = <:view< group { tags = array_agg[t.name] } | t in $tags$; something with l and t >> in
Query.view db <:view< { tags = one ($sub$ l); l.id } | l in $links$ >>

So I'm making this issue to discuss and have feedbacks. I'll be glad to help if you need.

@ghost ghost assigned gasche Dec 21, 2013
@kit-ty-kate
Copy link
Member Author

I'll try with unions for the moment. I'll see if it fills my needs.

@gasche
Copy link
Contributor

gasche commented Dec 24, 2013

I've been working on this, but it is rather hard to implement, because of the interaction with flattening in particular (go have a look at sql_flatten.ml for one of the most complex parts of Macaque), so I will need a few more days.

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

No branches or pull requests

2 participants