-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from tomasko126/fix/fix-adding-multiple-fields
fix: Update value of expression column names key in the JSON object with new column names
- Loading branch information
Showing
4 changed files
with
79 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
...Unit/__snapshots__/QueryShould_MapToRightJson.ExpressionAggregationWithCombine_query.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"queryType": "groupBy", | ||
"dimensions": [ | ||
{ | ||
"type": "default", | ||
"outputName": "DomainID", | ||
"dimension": "DomainID" | ||
} | ||
], | ||
"aggregations": [ | ||
{ | ||
"type": "expression", | ||
"name": "UserIds", | ||
"initialValue": "ARRAY\u003CLONG\u003E[]", | ||
"accumulatorIdentifier": "__acc", | ||
"fold": "array_set_add(__acc, \u0022UserID\u0022)", | ||
"combine": "array_set_add_all(__acc, \u0022Duration\u0022)", | ||
"initialValueCombine": "ARRAY\u003CLONG\u003E[]", | ||
"fields": [ | ||
"\u0022UserID\u0022", | ||
"\u0022Duration\u0022" | ||
], | ||
"isNullUnlessAggregated": true, | ||
"shouldAggregateNullInputs": true, | ||
"shouldCombineAggregateNullInputs": false, | ||
"maxSizeBytes": 10240 | ||
}, | ||
{ | ||
"type": "longSum", | ||
"name": "Duration", | ||
"fieldName": "Duration" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters