How to transform the sql to es request body

Hello. I have sql like this:

select  (case when avg(column0) > 1 then column1 else 333 end) from demo 

How transform it to the es request searching body.
Thanks.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.