Slackbot
07/20/2023, 5:30 PMSergio Ferragut
07/20/2023, 5:54 PM"queryType": "view". What is your expectation?José Ambrosio Hernández Molina
07/20/2023, 6:28 PMSergio Ferragut
07/20/2023, 6:36 PM"queryType":"view"? then maybe loading more data into the base table and re-query to see the effect of the RUNNING supervisor?José Ambrosio Hernández Molina
07/20/2023, 6:38 PMJosé Ambrosio Hernández Molina
07/20/2023, 6:48 PMcurl -H 'Content-Type:application/json' -d @my_view_query_sql.json http://<host>:<port>/druid/v2
where my query.json is:
{
"queryType": "view",
"query": {
"queryType": "sql",
"dataSource": "sales",
"intervals": [
"2022-09-12/2023-09-13"
],
"query": "SELECT country, SUM(sales) AS total FROM sales GROUP BY country ORDER BY total DESC LIMIT 10"
}
}
I'm having this error:
`{"error":"Unknown exception","errorMessage":"Please make sure to load all the necessary extensions and jars with type 'view' on 'druid/router' service. Could not resolve type id 'view' as a subtype of org.apache.druid.query.Query known type ids = [dataSourceMetadata, groupBy, scan, search, segmentMetadata, select, timeBoundary, timeseries, topN, windowOperator]\n at [Source:`
and verify that I have the extensions loaded correctly, I don't know what other configuration I am missing.Sergio Ferragut
07/20/2023, 7:04 PMJosé Ambrosio Hernández Molina
07/20/2023, 7:15 PM{
"queryType": "view",
"query": {
"queryType": "groupBy",
"dataSource": "ventas",
"granularity": "all",
"dimensions": [
"AREA"
],
"limitSpec": {
"type": "default",
"limit": 1,
"columns": [
{
"dimension": "tickets",
"direction": "descending",
"dimensionOrder": "numeric"
}
]
},
"aggregations": [
{
"type": "longSum",
"name": "tickets",
"fieldName": "tickets"
}
],
"intervals": [
"2020-09-12/2023-09-13"
]
}
}
and I have the same error:
`{"error":"Unknown exception","errorMessage":"Please make sure to load all the necessary extensions and jars with type 'view' on 'druid/router' service. Could not resolve type id 'view' as a subtype of org.apache.druid.query.Query known type ids = [dataSourceMetadata, groupBy, scan, search, segmentMetadata, select, timeBoundary, timeseries, topN, windowOperator]\n at [Source: (org.eclipse.jetty.server.HttpInputOverHTTP); line: 1, column: 25]","errorClass":"com.fasterxml.jackson.databind.exc.InvalidTypeIdException","host":null}`Sergio Ferragut
07/20/2023, 8:05 PM