Skip to content

feat: add DuckDB workspace storage s3:// notation documentation #1029

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,23 @@ You can then query this file using the standard read_csv/read_parquet/read_json
SELECT * FROM read_parquet($file)
```

Alternatively, you can reference files on the workspace directly using s3:// notation. This is equivalent to passing an s3 object as a parameter:

For primary workspace storage:
```sql
SELECT * FROM read_parquet('s3:///path/to/file.parquet')
```

For secondary storage:
```sql
SELECT * FROM read_parquet('s3://<secondary_storage>/path/to/file.parquet')
```

This notation also works with glob patterns:
```sql
SELECT * FROM read_parquet('s3:///myfiles/*.parquet')
```

You can also attach to other database resources (BigQuery, PostgreSQL and MySQL). We use the official and community DuckDB extensions under the hood :
```sql
ATTACH '$res:u/demo/amazed_postgresql' AS db (TYPE postgres);
Expand Down