I was able to get the query working in druid-native. I don't know how to do the same in druid-sql. Any help to get this working in druid-sql would be appreciated.
{
"queryType": "groupBy",
"dataSource": {
"type": "table",
"name": "ciJournals"
},
"intervals": {
"type": "intervals",
"intervals": [
"-146136543-09-08T08:23:32.096Z/146140482-04-24T15:36:27.903Z"
]
},
"filter": {
"type": "in",
"dimension": "rx",
"values": [
"Niraparib",
"GSK-3985771",
"JNJ-64091742",
"MK-4827",
"niraparib hydrochloride",
"Zejula",
"ZL 2306",
"C19H20N4O",
"2-{4-[(3S)-piperidin-3-yl]phenyl}-2H-indazole-7-carboxamide",
"Rucaparib",
"AG-014699",
"AG-14699",
"CO-338",
"PF-01367338",
"PF-1367338",
"Rubraca",
"Rucaparib phosphate",
"AG-14361",
"AG-14447",
"HYDAMTIQ",
"Rucaparib - Pfizer",
"TBI-361",
"C19H18FN3O",
"6-fluoro-2-{4-[(methylamino)methyl]phenyl}-3,10-diazatricyclo[6.4.1.0^{4,13}]trideca-1,4,6,8(13)-tetraen-9-one",
"Olaparib",
"AZD 221",
"AZD-2281",
"KU-0059436",
"KU-59436",
"Lynparza",
"MK 7339",
"C24H23FN4O3",
"4-(3-{[4-(cyclopropylcarbonyl)piperazin-1-yl]carbonyl}-4-fluorobenzyl)phthalazin-1(2H)-one"
]
},
"granularity": {
"type": "all"
},
"dimensions": [
{
"type": "listFiltered",
"delegate": {
"type": "default",
"dimension": "rx",
"outputName": "Drug"
},
"values": [
"Niraparib",
"GSK-3985771",
"JNJ-64091742",
"MK-4827",
"niraparib hydrochloride",
"Zejula",
"ZL 2306",
"C19H20N4O",
"2-{4-[(3S)-piperidin-3-yl]phenyl}-2H-indazole-7-carboxamide",
"Rucaparib",
"AG-014699",
"AG-14699",
"CO-338",
"PF-01367338",
"PF-1367338",
"Rubraca",
"Rucaparib phosphate",
"AG-14361",
"AG-14447",
"HYDAMTIQ",
"Rucaparib - Pfizer",
"TBI-361",
"C19H18FN3O",
"6-fluoro-2-{4-[(methylamino)methyl]phenyl}-3,10-diazatricyclo[6.4.1.0^{4,13}]trideca-1,4,6,8(13)-tetraen-9-one",
"Olaparib",
"AZD 221",
"AZD-2281",
"KU-0059436",
"KU-59436",
"Lynparza",
"MK 7339",
"C24H23FN4O3",
"4-(3-{[4-(cyclopropylcarbonyl)piperazin-1-yl]carbonyl}-4-fluorobenzyl)phthalazin-1(2H)-one"
]
}
],
"aggregations": [
{
"type": "count",
"name": "Count"
}
],
"limitSpec": {
"type": "default",
"columns": [
{
"dimension": "Count",
"direction": "descending",
"dimensionOrder": {
"type": "numeric"
}
}
],
},
}