File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed
docs/getting_started/0_scripts_quickstart/5_sql_quickstart Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -538,6 +538,23 @@ You can then query this file using the standard read_csv/read_parquet/read_json
538
538
SELECT * FROM read_parquet($file)
539
539
```
540
540
541
+ Alternatively, you can reference files on the workspace directly using s3:// notation. This is equivalent to passing an s3 object as a parameter:
542
+
543
+ For primary workspace storage:
544
+ ``` sql
545
+ SELECT * FROM read_parquet(' s3:///path/to/file.parquet' )
546
+ ```
547
+
548
+ For secondary storage:
549
+ ``` sql
550
+ SELECT * FROM read_parquet(' s3://<secondary_storage>/path/to/file.parquet' )
551
+ ```
552
+
553
+ This notation also works with glob patterns:
554
+ ``` sql
555
+ SELECT * FROM read_parquet(' s3:///myfiles/*.parquet' )
556
+ ```
557
+
541
558
You can also attach to other database resources (BigQuery, PostgreSQL and MySQL). We use the official and community DuckDB extensions under the hood :
542
559
``` sql
543
560
ATTACH ' $res:u/demo/amazed_postgresql' AS db (TYPE postgres);
You can’t perform that action at this time.
0 commit comments