DuckDB Connector
There are two ways to use DuckDB data: sample it in place with DuckDBSource, or read a table into memory with read().
Installation
Sample in place with DuckDBSource
tables maps the names your query uses to the names in DuckDB; leave it out to describe every table in the database. The connection is yours — close it when you are done sampling.
Read into memory instead
database and uri are aliases for the same argument; pass exactly one. Omitting it opens an in-memory database. Pass query= instead of table= to read the result of an arbitrary SQL statement.
Review the inferred schema and relationships before predicting — see Build a Schema.