Polars support
Polars is not currently on the roadmap, but we do look at the community interest in new features on a regular basis and adjust our priorities accordingly. Of course we'd welcome a pull request from someone who is familiar with Polars.
Yes, I do hope this client will support polars.
You can query to get pyarrow tables, which can then zero-copy into Polars with something like this:
df = pl.from_arrow(client.query_arrow(query))
Feedback based on @NotSimone's comment would be appreciated -- is using PyArrow enough of a solution or does Polars use some other internal data format?
Polars does use Pyarrow under the hood so I think this would work.
Since my question, we ended up sticking with Pandas. Would it be possible to optionally make query_df return a Pyarrow backed Pandas DataFrame instead of Numpy backed ? I see use_numpy param is hardcoded to true here.
Agreed that PyArrow DataFrames would be useful - https://github.com/ClickHouse/clickhouse-connect/issues/326. However I'm not sure when it will it will be prioritized.