HI there,
Sql query is a very fantastic tool offered by EL 7.3. However i cant explain that bug :
When i use SUM with Match , 1 condition, query below works well
POST _xpack/sql?format=txt
{
"query":"SELECT SUM(FlightTimeHour) Avg_Flight_Time FROM flights where MATCH(OriginCountry,'AE') "
}
But if i use 2 or more conditions, SUM and MATCH query below fails :
POST _xpack/sql?format=txt
{
"query":"SELECT SUM(FlightTimeHour) Avg_Flight_Time FROM flights where MATCH(OriginCountry,'AE') OR MATCH(OriginCountry,'FR') "
}
Can someone tell me what is wrong ?