You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.
@dheerajravindranath Thanks for reporting the issue! I think we only support simple DISTINCT(* ) and DISTINCT(field). Will let you know if we can fix this or workaround found for your case.
SELECT DISTINCT CASE WHEN Carrier = 'ES-Air' Then FlightDelayMin END AS delay FROM kibana_sample_data_flights
SELECT DISTINCT CASE WHEN FlightDelay = true Then Carrier END AS name FROM kibana_sample_data_flights
SELECT DISTINCT CASE WHEN FlightDelay = true Then Carrier WHEN FlightDelay = false THEN NULL END AS name FROM kibana_sample_data_flights
Elasticsearch Verison: 7.4
{
"query": "select distinct(case when event='test' then user_id end) as testing from events_testing where event='test' and team_id=xxxxx"
}
{
"error": {
"reason": "Invalid SQL query",
"details": "",
"type": "NullPointerException"
},
"status": 400
}
The same query is working fine in other DB. Could someone help me to resolve this?
The text was updated successfully, but these errors were encountered: