I need to read the tables from click house via Python Azure function, I am able to read the tables from my local system but not able to read from Python Azure Function.
What I tried:
import clickhouse_connect
client = clickhouse_connect.get_client(host=host, port=port, username='XXXX', password='XXXX', database = 'MYDB')
df = client.query_df('SELECT TOP (10) * FROM MYTABLE')
print(df)
The above is working from my local system, but when I am running the same code from azure function then I am getting the following error
import clickhouse_connect
client = clickhouse_connect.get_client(host=host, port=port, username='XXXX', password='XXXX', database = 'MYDB')
df = client.query_df('SELECT TOP (10) * FROM MYTABLE') <-- Error 'NoneType' object has no attribute 'array'