Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(azure_blob sink, gcp_cloud_storage sink): Note transparent decompression #21814

Merged
merged 1 commit into from
Nov 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/sinks/azure_blob/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,12 @@ pub struct AzureBlobSinkConfig {
#[serde(flatten)]
pub encoding: EncodingConfigWithFraming,

/// Compression configuration.
///
/// All compression algorithms use the default compression level unless otherwise specified.
///
/// Some cloud storage API clients and browsers handle decompression transparently, so
/// depending on how they are accessed, files may not always appear to be compressed.
#[configurable(derived)]
#[serde(default = "Compression::gzip_default")]
pub compression: Compression,
Expand Down
6 changes: 6 additions & 0 deletions src/sinks/gcp/cloud_storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,12 @@ pub struct GcsSinkConfig {
#[serde(flatten)]
encoding: EncodingConfigWithFraming,

/// Compression configuration.
///
/// All compression algorithms use the default compression level unless otherwise specified.
///
/// Some cloud storage API clients and browsers handle decompression transparently, so
/// depending on how they are accessed, files may not always appear to be compressed.
#[configurable(derived)]
#[serde(default)]
compression: Compression,
Expand Down
3 changes: 3 additions & 0 deletions website/cue/reference/components/sinks/base/azure_blob.cue
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ base: components: sinks: azure_blob: configuration: {
Compression configuration.

All compression algorithms use the default compression level unless otherwise specified.

Some cloud storage API clients and browsers handle decompression transparently, so
depending on how they are accessed, files may not always appear to be compressed.
"""
required: false
type: string: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,9 @@ base: components: sinks: gcp_cloud_storage: configuration: {
Compression configuration.

All compression algorithms use the default compression level unless otherwise specified.

Some cloud storage API clients and browsers handle decompression transparently, so
depending on how they are accessed, files may not always appear to be compressed.
"""
required: false
type: string: {
Expand Down
Loading