From c2b06f69d548c70d95717cfb8e2c5e8e4dc79bb4 Mon Sep 17 00:00:00 2001 From: pieter-factful <134045982+pieter-factful@users.noreply.github.com> Date: Sun, 17 Mar 2024 13:11:17 +0100 Subject: [PATCH] docs: added section on duckdb reading gcs files (#8651) Co-authored-by: Phillip Cloud <417981+cpcloud@users.noreply.github.com> --- docs/how-to/input-output/gcs_duckdb.qmd | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 docs/how-to/input-output/gcs_duckdb.qmd diff --git a/docs/how-to/input-output/gcs_duckdb.qmd b/docs/how-to/input-output/gcs_duckdb.qmd new file mode 100644 index 000000000000..21a0b6cc5d71 --- /dev/null +++ b/docs/how-to/input-output/gcs_duckdb.qmd @@ -0,0 +1,20 @@ +--- +title: Loading Google Cloud Storage files with DuckDB +--- + +Loading data stored on Google Cloud Storage to DuckDB requires specifying `gcs` as filesystem. + +```python +from ibis.interactive import * + +con = ibis.duckdb.connect() + +import fsspec +import gcsfs + +gcs = fsspec.filesystem("gcs") + +con.register_filesystem(gcs) + +t = con.read_json("gs://...") +```