Skip to content

Feature Request: Generalize Format Output of Query #46

Description

@yaseenlotfi

Hey - would be great if the output format could be generalized to other output types like Parquet or Arrow. See: https://clickhouse.tech/docs/en/interfaces/formats/

Use Case
I have use cases where New-line delimited JSON works just fine. I have other uses where Parquet, for example, is desirable. This is mainly driven by the applications consuming data. Right now, when I need a format other than JSON, I use the CH HTTP Interface directly.

Potential Implementation
I think this could be achieved by adding argument format_type which would be a string of the supported types. Do some checks on whether CH supports it or not. In ChClient._execute() append the FORMAT {format_type} to the input query.

Where there might be complexity is how to handle type conversion.

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