CatalogService.DownloadTableSnapshotFile
Stream verified bytes from one TableSnapshot output file. Use the index and manifest digest from ListTableSnapshotFiles. Append each chunk at its offset. The example shows the final four bytes of a Parquet file after the first 64 KiB chunk.
CatalogService · Installed Web API. Use the HTTPS origin of your Prokrust installation and credentials authorized for this operation.
POST /prokrust.api.v1alpha1.CatalogService/DownloadTableSnapshotFile
This RPC uses a response stream. The example shows one message. Use a streaming Connect client for the sequence.
Request fields
| JSON field | Type | Meaning |
|---|---|---|
namespace | string | Kubernetes workspace namespace for the operation. Use the namespace in which the selected resource lives. |
name | string | Kubernetes metadata.name of the selected resource in this namespace. |
uid | string | Kubernetes metadata.uid identifying this particular object. Read it from the resource before targeting an existing instance. |
manifestDigest | string | SHA-256 identity of the verified manifest. Keep it with file indices so they refer to the same publication. |
fileIndex | uint32 | Zero-based file index returned by the matching List*Files method in this manifest. |
Example request
{
"namespace": "analytics",
"name": "events-snapshot",
"uid": "db607470-6181-53ce-91b8-615446c4e0fa",
"manifestDigest": "sha256:c687d66a4fa16752ac849be49935d560250318839e5e350e3aa129c2d732a103",
"fileIndex": 0
}
Response fields
| JSON field | Type | Meaning |
|---|---|---|
manifestDigest | string | SHA-256 identity of the verified manifest. Keep it with file indices so they refer to the same publication. |
file | ArtifactFile | Metadata of the manifest entry selected by the request. |
offset | uint64 | Zero-based byte offset of this chunk within the selected file. |
data | bytes | Maximum 64 KiB. Full file size and SHA-256 are verified before streaming. |
Example response message
{
"manifestDigest": "sha256:c687d66a4fa16752ac849be49935d560250318839e5e350e3aa129c2d732a103",
"file": {
"index": 0,
"filename": "part-00000.parquet",
"mediaType": "application/vnd.apache.parquet",
"sizeBytes": "65540",
"digest": "sha256:dd09164db4dac30d29bce5833b8942470afe8064e3b8bdffc60d900d249f1db2"
},
"offset": "65536",
"data": "UEFSMQ=="
}