Doslin opened a new issue #8973: Why generated __subquery__ and use DruidOuterQueryRel URL: https://github.com/apache/incubator-druid/issues/8973 #### how to write this with json context ``` SELECT "Time", sum("<3"),sum("3~5"),sum("6~15") from ( SELECT "Time", case WHEN "Count1" < 3 then 1 ELSE 0 end as "<3", case WHEN "Count1" >= 3 and "Count1"<= 5 then 2 ELSE 0 end as "3~5", case WHEN "Count1" >= 6 and "Count1"<= 15 then 3 ELSE 0 end as "6~15" from ( SELECT TIME_FLOOR("__time", 'PT5M') AS "Time", "uuid", COUNT(*) AS "Count1" FROM "app_time" WHERE "__time" >= CURRENT_TIMESTAMP - INTERVAL '1' HOUR AND "__time" <= CURRENT_TIMESTAMP GROUP BY 1, 2 ORDER BY "Time" ASC )) GROUP BY 1 ORDER BY "Time" ``` When i use EXPLAIN PLAN FOR to see plan , I saw ``` DruidOuterQueryRel(query=[{"queryType":"groupBy","dataSource":{"type":"table","name":"__subquery__"}....... ``` But I don't have this data source,How can I do
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
