()
| 85 | sql_output_format = self.sql_output_format() |
| 86 | |
| 87 | def to_polars() -> pl.DataFrame: |
| 88 | import polars as pl |
| 89 | |
| 90 | # Use the Arrow PyCapsule interface (pl.DataFrame(relation)) |
| 91 | # instead of relation.pl() so that pyarrow is not required. |
| 92 | return pl.DataFrame(relation) |
| 93 | |
| 94 | def to_lazy_polars() -> pl.LazyFrame: |
| 95 | # `lazy=True` requires DuckDB >= 1.4 and pyarrow. Fall back to the |
no outgoing calls