You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adds Support for COPY TO/FROM Google Cloud Storage (#61)
Supports following Google Cloud Storage uri forms:
- gs:// \<bucket\> / \<path\>
**Configuration**
The simplest way to configure object storage is by creating a json config file like `~/.config/gcloud/application_default_credentials.json` (can be generated by `gcloud auth application-default login`):
```bash
$ ~/.config/gcloud/application_default_credentials.json
{
"gcs_base_url": "gs://testbucket/test.parquet",
"disable_oauth": false,
"client_email": "...",
"private_key_id": "...",
"private_key": "..."
}
```
Alternatively, you can use the following environment variables when starting postgres to configure the Google Cloud Storage client:
- `GOOGLE_SERVICE_ACCOUNT_KEY`: json serialized service account key
- `GOOGLE_SERVICE_ACCOUNT_PATH`: an alternative location for the config file
Closes#62
Copy file name to clipboardExpand all lines: README.md
+23-1Lines changed: 23 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -183,7 +183,7 @@ SELECT * FROM parquet.column_stats('/tmp/product_example.parquet')
183
183
```
184
184
185
185
## Object Store Support
186
-
`pg_parquet` supports reading and writing Parquet files from/to `S3`, `Azure Blob Storage` and `http(s)` object stores.
186
+
`pg_parquet` supports reading and writing Parquet files from/to `S3`, `Azure Blob Storage`, `http(s)` and `Google Cloud Storage` object stores.
187
187
188
188
> [!NOTE]
189
189
> To be able to write into a object store location, you need to grant `parquet_object_store_write` role to your current postgres user.
@@ -270,6 +270,28 @@ Supported authorization methods' priority order is shown below:
270
270
271
271
`Https` uris are supported by default. You can set `ALLOW_HTTP` environment variable to allow `http` uris.
272
272
273
+
#### Google Cloud Storage
274
+
275
+
The simplest way to configure object storage is by creating a json config file like [`~/.config/gcloud/application_default_credentials.json`] (can be generated by `gcloud auth application-default login`):
0 commit comments