URI form
Query a public object
This example reads a CSV file from Google’s publiccloud-samples-data bucket:
Query an existing object
Replace the uppercase placeholders with a Parquet file you can read. The optional demo setup below creates a matching file.Authentication
Chowder uses the process’s Google Cloud credentials: Application Default Credentials fromgcloud auth application-default login, a service account key in GOOGLE_APPLICATION_CREDENTIALS, or the metadata server on Google Cloud. Keep credentials outside SQL.
- No credentials found: Chowder reads the bucket anonymously. Public objects load. A private bucket fails with an error that says how to configure credentials.
- Credentials added later: when an anonymous read is denied, Chowder checks for credentials again, so you don’t need to restart Python after
gcloud auth application-default login. - A credential source fails: for example, with expired Application Default Credentials, the query fails with that error instead of reading anonymously.
- Forced anonymous access: set
GOOGLE_SKIP_SIGNATURE=trueto read anonymously even when credentials exist.
Optional: reproduce the demo
To reproduce the query with the Chowder review fixture, downloaddemo/amazon-reviews.parquet using Local files. Replace every uppercase placeholder with your own storage name, then copy the fixture: