Skip to content

Commit

Permalink
docs: add note regarding fetchmany support in duckdb=>0.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Mause authored Sep 13, 2022
1 parent 447cba6 commit 7ccbaa9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,9 @@ The following example demonstrates how to create an auto-incrementing ID column
```

### Pandas `read_sql()` chunksize

**NOTE**: this is no longer an issue in versions `>=0.5.0` of `duckdb`

The `pandas.read_sql()` method can read tables from `duckdb_engine` into DataFrames, but the `sqlalchemy.engine.result.ResultProxy` trips up when `fetchmany()` is called. Therefore, for now `chunksize=None` (default) is necessary when reading duckdb tables into DataFrames. For example:

```python
Expand Down

0 comments on commit 7ccbaa9

Please sign in to comment.