Transform only referenced elements in a sub query
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
Research direction
Start by tracing how NeoJoin handles subqueries when transforming elements in the example query, then inspect the related query and view type generation paths. Check how nested subqueries are represented and how selected parent elements reference subquery results. Done means only referenced elements are transformed, including for nested subqueries; the issue names no files or tests, so locate relevant coverage before making changes.
Written by the indexing model from the issue text.
Description
Problem
Currently, when a subquery is used on a feature of a transformed class, it is treated like a regular query, and all matching elements are transformed. In the example below, not only pizza elements are transformed (referenced by sells from pizzeria elements), but all other food elements are as well. This is usually not intended.
from Restaurant r
where r.type == "Pizzeria"
create {
r.sells create { name }
}
Proposal
While subqueries could be treated as regular queries for view type generation, we should transform elements with subqueries only if they are referenced by elements selected from the query in which the subquery is defined. Remember that we can have subqueries inside a subquery as well.
- Dominant language
- Java
- Stars
- 3
- Forks
- 6
- Avg merge
- 19h 10m
- Merged PRs (30d)
- 34
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from vitruv-tools/NeoJoin
-
area: cli
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
vitruv-tools/NeoJoin#415 ·
Maintainers usually reply within 1 day
-
area: language
Difficulty 5/5 Over a week Newbie friendliness 18/100
vitruv-tools/NeoJoin#416 ·
Maintainers usually reply within 1 day
-
area: language status: needs discussion
Difficulty 5/5 Over a week Newbie friendliness 25/100
vitruv-tools/NeoJoin#409 ·
Maintainers usually reply within 1 day
-
Complete JavaDocOpenarea: docs
Difficulty 5/5 Over a week Newbie friendliness 35/100
vitruv-tools/NeoJoin#395 ·
Maintainers usually reply within 1 day
-
area: language
Difficulty 5/5 Over a week Newbie friendliness 15/100
vitruv-tools/NeoJoin#357 ·
Maintainers usually reply within 1 day
All issues in vitruv-tools/NeoJoin
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
speakeasy-api/speakeasy#2159 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
jenkinsci/user-guide-ai-chatbot-plugin#132 ·
Maintainers usually reply within 6 days
-
account assessment course feature lecture
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
Maintainers usually reply within 1 day
-
bug db/dameng user-priority/P2
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
docs: document identity-provider types compatibility for Keycloak 26.5+Possibly taken @Motouom claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
adorsys/keycloak-config-cli#1766 ·
Maintainers usually reply within 12 days