Skip to content
Open
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
3 changes: 3 additions & 0 deletions changelog.d/gcs_parquet_encoding.feature.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
The `gcp_cloud_storage` sink now supports encoding events in the [Apache Parquet](https://parquet.apache.org/) columnar format, matching the existing `aws_s3` sink capability. Enable it by setting `batch_encoding.codec = "parquet"` along with either `batch_encoding.schema_mode = "auto_infer"` or a `batch_encoding.schema_file` (one of the two is required). The Parquet format handles its own compression internally (configurable via `batch_encoding.compression`), so the top-level `compression` setting is bypassed, the object `Content-Type` is automatically set to `application/vnd.apache.parquet`, and the filename extension defaults to `parquet`.

authors: shmatovd
8 changes: 4 additions & 4 deletions lib/codecs/src/encoding/format/parquet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ type EventsDroppedError = ComponentEventsDropped<'static, UNINTENTIONAL>;
pub enum ParquetCompression {
/// Zstd compression. Level must be between 1 and 21.
Zstd {
/// Compression level (1–21). This is the range Vector supports; higher values compress more but are slower.
/// Compression level (1–21). This is the range Vector supports; higher values provide more compression but are slower.
#[configurable(validation(range(min = 1, max = 21)))]
level: u8,
},
/// Gzip compression. Level must be between 1 and 9.
Gzip {
/// Compression level (1–9). This is the range Vector supports; higher values compress more but are slower.
/// Compression level (1–9). This is the range Vector supports; higher values provide more compression but are slower.
#[configurable(validation(range(min = 1, max = 9)))]
level: u8,
},
Expand Down Expand Up @@ -93,7 +93,7 @@ pub enum ParquetSchemaMode {
Relaxed,
/// Missing fields become null. Extra fields cause an error.
Strict,
/// Auto infer schema based on the batch. No schema file needed.
/// Automatically infer schema based on the batch. No schema file is needed.
AutoInfer,
}

Expand All @@ -118,7 +118,7 @@ pub struct ParquetSerializerConfig {
#[configurable(derived)]
pub compression: ParquetCompression,

/// Controls how events with fields not present in the schema are handled.
/// Controls how events that contain fields not present in the schema are handled.
#[serde(default)]
#[configurable(derived)]
pub schema_mode: ParquetSchemaMode,
Expand Down
Loading
Loading