[COMPASS-6159] Export to Language (Java) has incorrect class name Created: 26/Sep/22 Updated: 29/Oct/23 Resolved: 22/Dec/22 |
|
| Status: | Closed |
| Project: | Compass |
| Component/s: | Export to Language |
| Affects Version/s: | None |
| Fix Version/s: | 1.35.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Jeffrey Yemin | Assignee: | Alena Khineika |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Story Points: | 2 |
| Documentation Changes: | Not Needed |
| Sprint: | Iteration Quahog, Iteration Ragfish |
| Description |
Problem Statement/RationaleThe code generated when exporting an aggregation to a pipeline is incorrect for the Java driver, when selecting "Include Driver Syntax". Steps to ReproduceCreate any aggregation pipeline in the UI. Export to Language. JAVA. Check both Include Driver Syntax and Include Import Statements.
Actual ResultsThe generated code includes:
but this won't compile, because the aggregate method returns an AggregateIterable not a FindIterable. It's also not strictly speaking a "result", because after executing that line of code no commands have yet to be sent to the server. It's not until you call a terminal operation on the Iterable (cursor, into, first) that anything actually happens. Additional NotesFrom this community post: https://www.mongodb.com/community/forums/t/java-code-generated-by-compass-does-not-work/189723/3 |
| Comments |
| Comment by Githook User [ 03/Jan/23 ] |
|
Author: {'name': 'Alena Khineika', 'email': 'alena.khineika@gmail.com', 'username': 'alenakhineika'}Message: fix: export to Language (Java) has incorrect class name
|
| Comment by Githook User [ 03/Jan/23 ] |
|
Author: {'name': 'Alena Khineika', 'email': 'alena.khineika@gmail.com', 'username': 'alenakhineika'}Message: fix: export to Language (Java) has incorrect class name
|
| Comment by Githook User [ 22/Dec/22 ] |
|
Author: {'name': 'Alena Khineika', 'email': 'alena.khineika@gmail.com', 'username': 'alenakhineika'}Message: fix: export to Language (Java) has incorrect class name
|
| Comment by Githook User [ 22/Dec/22 ] |
|
Author: {'name': 'Alena Khineika', 'email': 'alena.khineika@gmail.com', 'username': 'alenakhineika'}Message: Merge remote-tracking branch 'origin/main' into |
| Comment by Githook User [ 22/Dec/22 ] |
|
Author: {'name': 'Alena Khineika', 'email': 'alena.khineika@gmail.com', 'username': 'alenakhineika'}Message: Merge remote-tracking branch 'origin/main' into |
| Comment by Githook User [ 21/Dec/22 ] |
|
Author: {'name': 'Alena Khineika', 'email': 'alena.khineika@gmail.com', 'username': 'alenakhineika'}Message: fix: export to Language (Java) has incorrect class name |