[COMPASS-4341] export to Java doesn't like $size expression inside other expressions Created: 29/Jun/20  Updated: 28/Oct/22

Status: Waiting (Blocked)
Project: Compass
Component/s: Export to Language
Affects Version/s: 1.21.2
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Asya Kamsky Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on COMPASS-4695 Bring back builders in export to lang... Needs Triage
Related
related to COMPASS-4475 Aggregation tool generating Java code... Closed

 Description   

When I have a valid pipeline with $size expression that works fine, it can export to Java but not if "Use Builders" is checked then it only works if $size is top level expression. Multiple attempts to export with builders other places where numbers would work give different errors:

Using inside $slice or $range - "$size cannot be top-level"

Using in $toString - "Cannot read property 'push' of undefined"


Generated at Wed Feb 07 22:36:02 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.