ClickHouse handle different input as a format, for some case, it can be really useful to insert a file like a CSV/TSV for optimization purpose.
https://clickhouse.tech/docs/en/interfaces/formats/
According to the documentation, the requirement for the *args is only to be an iterable, but when we try to send an iterable who aren't a tuple, but who are just a list of string who represent a CSV, aiochclient crash as it's expect than we send a list of tuple when we do a INSERT query.
https://github.com/maximdanilchenko/aiochclient/blob/master/aiochclient/types.py#L365-L366
It would be really good for the library to have a feature to let more liberty for the developers to use formats who aren't only a simple list of tuple when we do an INSERT query
ClickHouse handle different input as a format, for some case, it can be really useful to insert a file like a CSV/TSV for optimization purpose.
https://clickhouse.tech/docs/en/interfaces/formats/
According to the documentation, the requirement for the
*argsis only to be an iterable, but when we try to send an iterable who aren't a tuple, but who are just a list of string who represent a CSV,aiochclientcrash as it's expect than we send a list of tuple when we do aINSERTquery.https://github.com/maximdanilchenko/aiochclient/blob/master/aiochclient/types.py#L365-L366
It would be really good for the library to have a feature to let more liberty for the developers to use formats who aren't only a simple list of tuple when we do an
INSERTquery