GCSLocation
class GCSLocation(
bucket: GCSBucketSpec,
credentials: GCPJson,
hmac_credentials: GCPHmac,
base_path: CloudRelativePathSpec = '/',
cfg: CfgSpec | None = None,
)
Bases: CloudLocation
Categories: destination
GCS staging area for StarRocksDest.
Carries two credentials, one per code path (mirroring ClickHouse):
credentials (GCP service-account JSON) uploads parquet via the
native GCS API, while hmac_credentials (GCS HMAC keys) let
StarRocks' FILES() table function read the staged file back
through the S3-compatible endpoint (https://storage.googleapis.com,
the only protocol StarRocks speaks to GCS). Both are required.
Parameters
parameter
hmac_credentialsGCPHmacGCS HMAC access-key / secret-key credentials (StarRocks' S3-compatible read-back).
parameter
base_pathCloudRelativePathSpec (str | Secret)Object-key prefix from the bucket root; starts with
/, has no trailing / and no empty segments (//)
(the leading / is trimmed when forming the key).
Defaults to /.