load_gcs
Loads bytes from a Google Cloud Storage object.
load_gcs uri:string, [anonymous=bool]
Description
Section titled “Description”The load_gcs
operator connects to a GCS bucket to acquire raw bytes from a GCS object.
The connector tries to retrieve the appropriate credentials using Google’s Application Default Credentials.
uri: string
Section titled “uri: string”The path to the GCS object.
The syntax is gs://<bucket-name>/<full-path-to-object>(?<options>)
. The
<options>
are query parameters. Per the Arrow
documentation,
the following options exist:
For GCS, the supported parameters are
scheme
,endpoint_override
, andretry_limit_seconds
.
anonymous = bool (optional)
Section titled “anonymous = bool (optional)”Ignore any predefined credentials and try to use anonymous credentials.
Examples
Section titled “Examples”Read JSON from an object log.json
in the folder logs
in bucket
.
load_gcs "gs://bucket/logs/log.json"read_json