Skip to content

Commit

Permalink
Merge pull request #43660 from gimantha/fix#43409-master
Browse files Browse the repository at this point in the history
[master] Change arrays to maps for keeping the grouping keys in query expressions
  • Loading branch information
gimantha authored Nov 29, 2024
2 parents f1c60dc + b0c3210 commit 8b43eba
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 8b43eba

Please sign in to comment.