I'm trying to get my Clickhouse data in my Django project. I'm using clickhouse_driver and :
client.execute('SELECT * FROM myTable LIMIT 5 FORMAT JSON')
When I execute this command in my Clickhouse server SELECT * FROM myTable LIMIT 5 FORMAT JSON it outputs in JSON format. But in python, when I try it with clickhouse_driver it outputs only fields like:
[('2020213','qwerty','asdfg'),('2030103','qweasd','asdxv')]
But I want key-value json format..like
{"logdate":"2020213","host":"qwerty","cef":"asdfg"}
Any suggestions to resolve this problem? Or maybe I have to search for an alternate clickhouse_driver..
Thx.