I want to read from AWS Athena with polars. Is this possible? Before I used pandas:
import pandas as pd
pd.read_sql(SQL_STATMENT, conn)
I found this User Guide: https://pola-rs.github.io/polars-book/user-guide/howcani/io/read_db.html where Athena is not yet supported.
The good news is that the doc that you linked isn't the full list of databases that are supported.
polars uses two database connection libraries (or engines):
connectorx
Apache Arrow adbc
The bad news is that neither of those seems to support Athena. For the time being your best bet is probably to continue to use pandas for athena queries and then use
pl.from_pandas(...)