Open AntonNikishin opened 3 weeks ago
Would the ibis dataset already support polar as a backend?
Would the ibis dataset already support polar as a backend?
It does, but:
read_database
would need to be implemented in Ibis.It's a separate question whether Polars is the best way to manipulate data in a database (definite downside is pulling it into memit. For manipulation, rather than pushing down compute), but a user may still want to do it.
I would recommend to create polars.DatabaseDataset
instead of mirroring the pandas datasets, because:
Description
It would be great to have Polars implementations of SQLQueryDataset and SQLTableDataset, similar to the Pandas versions: pandas.SQLTableDataset and pandas.SQLQueryDataset.
Context
Sometimes users would like to read / write polars DataFrames directly from SQL databases.
Possible Implementation
The datasets will have similar implementation to Pandas versions, but will use polars built-in functions read_database and write_database.
P.S. I'm happy to work on that ☺️