You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've started to play with your lib and I've noticed one major bug when using the HTTP driver:
When calling the execute() method of a Cursor the SQL will not be appended with ' FORMAT TabSeparatedWithNamesAndTypes' as you could initially expect from the drivers/http/base.py file. This causes the result not to include the columns name and therefore the TSV post processing
(drivers/http/connector.py#195) will go wrong because the first 2 rows are actually data samples.
It seems to me that the following method of ClickHouseDialect_http
def_execute(self, connection, sql):
sql+=' FORMAT TabSeparatedWithNamesAndTypes'returnconnection.execute(sql)
is actually never called (Cursor or not), but I could be wrong.
One quick and easy fix could be to move this to the execute() method of Cursor.
Thanks,
Timothé
The text was updated successfully, but these errors were encountered:
Hi,
I've started to play with your lib and I've noticed one major bug when using the HTTP driver:
When calling the
execute()
method of a Cursor the SQL will not be appended with ' FORMAT TabSeparatedWithNamesAndTypes' as you could initially expect from thedrivers/http/base.py
file. This causes the result not to include the columns name and therefore the TSV post processing(
drivers/http/connector.py#195
) will go wrong because the first 2 rows are actually data samples.It seems to me that the following method of ClickHouseDialect_http
is actually never called (Cursor or not), but I could be wrong.
One quick and easy fix could be to move this to the
execute()
method of Cursor.Thanks,
Timothé
The text was updated successfully, but these errors were encountered: