Skip to content

Commit

Permalink
Merge pull request #43661 from gimantha/2201.11.0-stage
Browse files Browse the repository at this point in the history
[2201.11.0-stage] Change arrays to maps for keeping the grouping keys in query expressions
  • Loading branch information
gimantha authored Nov 30, 2024
2 parents fcbcfda + d239379 commit c775dba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions langlib/lang.query/src/main/ballerina/types.bal
Original file line number Diff line number Diff line change
Expand Up @@ -680,9 +680,9 @@ class _GroupByFunction {
}

private function getKey(_Frame f) returns anydata|error {
anydata[] keys = [];
record{} keys = {};
foreach var key in self.keys {
keys.push(<anydata> check f[key]);
keys[key] = <anydata> check f[key];
}
return keys;
}
Expand Down

0 comments on commit c775dba

Please sign in to comment.