I’m tring to run a query on dremio with multiple Case condition but it works only with the first condition.
This is my query:
SELECT
COALESCE(SUM(count_blu.NumberAppBlu ), 0) AS count_blu_sum_app_blu
FROM Telepass.Looker.Count_Clients.app_blu AS count_blu
WHERE
((CASE
WHEN count_blu.os_blu = ‘and’ THEN RTRIM(‘Android’)
WHEN count_blu.os_blu = ‘ios’ THEN RTRIM(‘Ios’)
END) = ‘Android’)
LIMIT 5000
When i run the query setting the filter to Ios it fail with this error Invalid Query Exception (Query was cancelled because planning time exceeded 60 seconds)