Skip to content

Cannot use an INSERT query with a special format #18

Description

@YiuRULE

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions