Recently, I ran into the same problem, I used || (double pipes) to run columns.
I also had to write a wrapper in my request to overcome this problem.
Below is a snippet of what my queries looked like at the end.
select a1 || a2 as a2, a3 || a4 as a4 --wrapper 2 from ( select '"service":"' as a1,a2, '","total":' as a3, a4 --wrapper 1 from ( select distinct(a2),count(*) as a4 from abc.table group by a2 order by a2) );
The following is the information from the request:
"service":"ABC" , "total":123
source share