I am trying to execute below query in vertica:
select case when count(*) = 0 then #{aaa} || #{bbb} else trim(cast(max(ccc)+1 as intger)) end as ccc from apple