When looking at the document, I don't see any data...
# general
s
When looking at the document, I don't see any data connector for GCP. How does Daft query data in Google cloud storage?
c
So it's a bit buried in the docs, and I totally understand how it'd be pretty easy to miss, but you can use it similarly to the S3Config object https://docs.daft.ai/en/stable/api/config/#daft.io.GCSConfig
Copy code
import daft
from <http://daft.io|daft.io> import IOConfig, GCSConfig


gcs = GCSConfig(project_id="your-project-id", credentials="your_credentials", token="your-token")

df = daft.read_parquet("<gs://your-bucket-name/your-file.parquet>", io_config=IOConfig(gcs=gcs))
👍 1
k
@Desmond Cheong we should add some docs for GCS, looks like it slipped
plus one 2
s
Thank you!
j
cc @YK — shall we add to our todo list for docs?
💯 1
1