Bhavok
06/26/2024, 3:34 PMQUERY:
{
"queryType": "groupBy",
"dataSource": {
"type": "join",
"left": "transactions",
"right": {
"type": "table",
"name": "prices"
},
"rightPrefix": "p.",
"condition": "ac_id == \"p.ac_id\"",
"joinType": "INNER"
},
"intervals": ["2024-04-01T00:00:00+00:00\/2024-06-26T23:59:59+00:00"],
"granularity": "all",
"dimensions": ["ac_id"],
"aggregations": [
{
"type": "count",
"name": "transaction_count"
}
]
}
ERROR:
{
"error": "Unknown exception",
"errorMessage": "Cannot handle subquery structure for dataSource: JoinDataSource{left=transactions, right=prices, rightPrefix='p.', condition=ac_id == \"p.ac_id\", joinType=INNER, leftFilter=null}",
"errorClass": "org.apache.druid.java.util.common.ISE",
"host": null
}JRob
06/26/2024, 4:03 PM"condition": "transactions.ac_id == prices.ac_id"JRob
06/26/2024, 4:08 PM"condition": "\"ac_id\" == \"p..ac_id\""Bhavok
06/26/2024, 5:35 PMBhavok
06/26/2024, 5:36 PMBenjamin Hopp
06/26/2024, 5:50 PMlookup , query, or inline. Could you convert the right hand to a subquery?
https://docs.imply.io/latest/druid/querying/datasource/#joins-in-native-queriesBhavok
06/27/2024, 4:21 AMBenjamin Hopp
06/27/2024, 1:10 PMJohn Kowtko
06/27/2024, 1:26 PMJRob
06/28/2024, 8:32 PMJRob
06/28/2024, 8:36 PMJRob
06/28/2024, 8:37 PM