Slackbot
03/13/2023, 8:21 AMkhajjiar trip
03/13/2023, 9:33 AMYou need to include it in the list of "aggregations" for the outer query to make sure it is retained in the final result.
So the following works:
{
"queryType": "groupBy",
"dataSource": {
"type": "join",
"left": "table1",
"right": {
"type": "query",
"query": {
"queryType": "topN",
"aggregations": [{
"type": "HLLSketchBuild",
"name": "tmp_hash",
"fieldName": "hash_field"
}]}}
},
"filter": {},
"aggregations": [
{
"type": "doubleSum",
"name": "tmp_hash",
"fieldName": "b.tmp_hash"
}
],
...
}khajjiar trip
03/13/2023, 11:57 AMBen Krug
03/13/2023, 4:49 PMGian Merlino
03/13/2023, 11:06 PM