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.
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_typewhich would be a string of the supported types. Do some checks on whether CH supports it or not. InChClient._execute()append theFORMAT {format_type}to the input query.Where there might be complexity is how to handle type conversion.