You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to the Ballerina language specification (2024R1), the limit clause evaluation states that:
Variable bindings from input frames are not in scope for this evaluation.
However, the limit clause allows variable bindings from input frames, which might give an impression that variable bindings from input frames could be referenced.
Steps to Reproduce
Consider the following queries:
Person[] outputPersonList=fromvar person in personList
letint newAge =34letint limitValue =2whereperson.age==33limitlimitValueselect {
firstName:person.firstName,
lastName:person.lastName,
age:newAge
};
Description
According to the Ballerina language specification (2024R1), the limit clause evaluation states that:
However, the
limit
clause allows variable bindings from input frames, which might give an impression that variable bindings from input frames could be referenced.Steps to Reproduce
Consider the following queries:
Expected Behavior
limit
must not depend on input frames.Actual Behavior
expression
, leading to ambiguity.Affected Version(s)
OS, DB, other environment details and versions
No response
Related area
-> Compilation
Related issue(s) (optional)
No response
Suggested label(s) (optional)
No response
Suggested assignee(s) (optional)
No response
The text was updated successfully, but these errors were encountered: