Skip to content

Commit

Permalink
Change arrays to maps for keeping the grouping keys in query expressions
Browse files Browse the repository at this point in the history
  • Loading branch information
gimantha committed Nov 28, 2024
1 parent 84f69f3 commit 0101abf
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 @@ -674,9 +674,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 0101abf

Please sign in to comment.