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

[Bug]: Crash in let-expr inside do-clause #40229

Closed
KavinduZoysa opened this issue Apr 17, 2023 · 0 comments · Fixed by #42068
Closed

[Bug]: Crash in let-expr inside do-clause #40229

KavinduZoysa opened this issue Apr 17, 2023 · 0 comments · Fixed by #42068
Assignees
Labels
Crash All issues caused by NPE, CCE, etc Lang/Actions/Query Priority/High Reason/EngineeringMistake The issue occurred due to a mistake made in the past. Team/CompilerFE All issues related to Language implementation and Compiler, this exclude run times. Type/Bug
Milestone

Comments

@KavinduZoysa
Copy link
Contributor

Description

If there is a let expression inside do-clause that uses query variables, then the compiler crashes.

Steps to Reproduce

public function main() {
    var input = [{name: "Saman", price1: 11, price2: 12}, 
                    {name: "Saman", price1: 13, price2: 14}, 
                    {name: "Kamal", price1: 15, price2: 16}, 
                    {name: "Kamal", price1: 17, price2: 18}, 
                    {name: "Saman", price1: 19, price2: 20}];    
    _ = from var {name, price1, price2} in input
            do {
                _ = let var p1 = price1 in p1;
            };
}

Affected Version(s)

2201.4.1

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

@KavinduZoysa KavinduZoysa added Type/Bug Priority/High Team/CompilerFE All issues related to Language implementation and Compiler, this exclude run times. Crash All issues caused by NPE, CCE, etc Lang/Actions/Query labels Apr 17, 2023
@KavinduZoysa KavinduZoysa added the Reason/EngineeringMistake The issue occurred due to a mistake made in the past. label Feb 8, 2024
@LakshanWeerasinghe LakshanWeerasinghe added this to the 2201.9.0 milestone Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Crash All issues caused by NPE, CCE, etc Lang/Actions/Query Priority/High Reason/EngineeringMistake The issue occurred due to a mistake made in the past. Team/CompilerFE All issues related to Language implementation and Compiler, this exclude run times. Type/Bug
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants