Kibana canvas filter

What is alternative for "level, rownum" in Kibana sql??

I need to build my filter like:

select
 (case LEVEL
  when 1 then 'xyz'
  when 2 then 'xzt'
...
end) as D,
select
 (case LEVEL
  when 1 then '1'
  when 2 then '2'
...
end) as R

Thanks,
Pat

Unfortunately, I think there's no alternative for row id in essql.