Add Parquet codec to v0.51-exaforce#35
Merged
sundaresanr merged 1 commit intov0.51-exaforcefrom Apr 18, 2026
Merged
Conversation
cf47090 to
86fa5b0
Compare
Ports the parquet codec from v0.45-exaforce onto upstream v0.51 so the aws_s3 sink can emit parquet files. The azure_blob queue source and GCP impersonation pieces that also lived on v0.45-exaforce were dropped — neither is used in any production Vector config.
86fa5b0 to
3e5fc44
Compare
sundaresanr
added a commit
that referenced
this pull request
Apr 20, 2026
Brings the parquet codec from v0.51-exaforce-parquet (PR #35) onto upstream v0.54.0. Enables the aws_s3 sink to emit parquet files via `encoding.codec: parquet`, preserving the existing user-facing config that production vector configs already use. Design differences vs PR #35, to fit v0.54's already-reshaped batched encoding infrastructure: - Upstream v0.54 gained a `BatchSerializer` enum (in lib/codecs/src/encoding/encoder.rs) with an `Arrow` variant behind the `arrow` feature, plus `BatchEncoder` and `EncoderKind::Batch`. We add `BatchSerializer::Parquet(ParquetSerializer)` alongside the `Arrow` variant rather than defining a new `BatchSerializer` enum in serializer.rs. `EncoderKind::Batch` is now ungated. - aws_s3 sink's `S3RequestOptions::encoder` switches from `(Transformer, Encoder<Framer>)` to `(Transformer, EncoderKind)`. The existing `Encoder<Vec<Event>> for (Transformer, EncoderKind)` impl in src/sinks/util/encoding.rs dispatches between framed and batched paths, so there is no need for the `Arc<dyn Encoder>` polymorphism PR #35 used on v0.51. - `(Transformer, BatchEncoder)` impl is no longer gated behind `codecs-arrow`, since parquet is now always-on. Parquet support itself is unchanged: `lib/codecs/src/encoding/format/parquet.rs` is copied verbatim from PR #35 (parquet 39.0.0, 1317 lines), and `SerializerConfig::Parquet { parquet: ParquetSerializerOptions }` plus `SerializerConfig::build_batched()` and `EncodingConfigWithFraming::build_batched()` are preserved. Verified with `cargo check -p vector` (default features).
sundaresanr
added a commit
that referenced
this pull request
Apr 20, 2026
Brings the parquet codec from v0.51-exaforce-parquet (PR #35) onto upstream v0.54.0. Enables the aws_s3 sink to emit parquet files via `encoding.codec: parquet`, preserving the existing user-facing config that production vector configs already use. Design differences vs PR #35, to fit v0.54's already-reshaped batched encoding infrastructure: - Upstream v0.54 gained a `BatchSerializer` enum (in lib/codecs/src/encoding/encoder.rs) with an `Arrow` variant behind the `arrow` feature, plus `BatchEncoder` and `EncoderKind::Batch`. We add `BatchSerializer::Parquet(ParquetSerializer)` alongside the `Arrow` variant rather than defining a new `BatchSerializer` enum in serializer.rs. `EncoderKind::Batch` is now ungated. - aws_s3 sink's `S3RequestOptions::encoder` switches from `(Transformer, Encoder<Framer>)` to `(Transformer, EncoderKind)`. The existing `Encoder<Vec<Event>> for (Transformer, EncoderKind)` impl in src/sinks/util/encoding.rs dispatches between framed and batched paths, so there is no need for the `Arc<dyn Encoder>` polymorphism PR #35 used on v0.51. - `(Transformer, BatchEncoder)` impl is no longer gated behind `codecs-arrow`, since parquet is now always-on. Parquet support itself is unchanged: `lib/codecs/src/encoding/format/parquet.rs` is copied verbatim from PR #35 (parquet 39.0.0, 1317 lines), and `SerializerConfig::Parquet { parquet: ParquetSerializerOptions }` plus `SerializerConfig::build_batched()` and `EncodingConfigWithFraming::build_batched()` are preserved. Verified with `cargo check -p vector` (default features).
sundaresanr
added a commit
that referenced
this pull request
Apr 20, 2026
Brings the parquet codec from v0.51-exaforce-parquet (PR #35) onto upstream v0.54.0. Enables the aws_s3 sink to emit parquet files via `encoding.codec: parquet`, preserving the existing user-facing config that production vector configs already use. Design differences vs PR #35, to fit v0.54's already-reshaped batched encoding infrastructure: - Upstream v0.54 gained a `BatchSerializer` enum (in lib/codecs/src/encoding/encoder.rs) with an `Arrow` variant behind the `arrow` feature, plus `BatchEncoder` and `EncoderKind::Batch`. We add `BatchSerializer::Parquet(ParquetSerializer)` alongside the `Arrow` variant rather than defining a new `BatchSerializer` enum in serializer.rs. `EncoderKind::Batch` is now ungated. - aws_s3 sink's `S3RequestOptions::encoder` switches from `(Transformer, Encoder<Framer>)` to `(Transformer, EncoderKind)`. The existing `Encoder<Vec<Event>> for (Transformer, EncoderKind)` impl in src/sinks/util/encoding.rs dispatches between framed and batched paths, so there is no need for the `Arc<dyn Encoder>` polymorphism PR #35 used on v0.51. - `(Transformer, BatchEncoder)` impl is no longer gated behind `codecs-arrow`, since parquet is now always-on. Parquet support itself is unchanged: `lib/codecs/src/encoding/format/parquet.rs` is copied verbatim from PR #35 (parquet 39.0.0, 1317 lines), and `SerializerConfig::Parquet { parquet: ParquetSerializerOptions }` plus `SerializerConfig::build_batched()` and `EncodingConfigWithFraming::build_batched()` are preserved. Verified with `cargo check -p vector` (default features).
sundaresanr
added a commit
that referenced
this pull request
Apr 20, 2026
Brings the parquet codec from v0.51-exaforce-parquet (PR #35) onto upstream v0.54.0. Enables the aws_s3 sink to emit parquet files via `encoding.codec: parquet`, preserving the existing user-facing config that production vector configs already use. Design differences vs PR #35, to fit v0.54's already-reshaped batched encoding infrastructure: - Upstream v0.54 gained a `BatchSerializer` enum (in lib/codecs/src/encoding/encoder.rs) with an `Arrow` variant behind the `arrow` feature, plus `BatchEncoder` and `EncoderKind::Batch`. We add `BatchSerializer::Parquet(ParquetSerializer)` alongside the `Arrow` variant rather than defining a new `BatchSerializer` enum in serializer.rs. `EncoderKind::Batch` is now ungated. - aws_s3 sink's `S3RequestOptions::encoder` switches from `(Transformer, Encoder<Framer>)` to `(Transformer, EncoderKind)`. The existing `Encoder<Vec<Event>> for (Transformer, EncoderKind)` impl in src/sinks/util/encoding.rs dispatches between framed and batched paths, so there is no need for the `Arc<dyn Encoder>` polymorphism PR #35 used on v0.51. - `(Transformer, BatchEncoder)` impl is no longer gated behind `codecs-arrow`, since parquet is now always-on. Parquet support itself is unchanged: `lib/codecs/src/encoding/format/parquet.rs` is copied verbatim from PR #35 (parquet 39.0.0, 1317 lines), and `SerializerConfig::Parquet { parquet: ParquetSerializerOptions }` plus `SerializerConfig::build_batched()` and `EncodingConfigWithFraming::build_batched()` are preserved. Verified with `cargo check -p vector` (default features).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Ports the parquet codec from v0.45-exaforce onto upstream v0.51, cleanly (no azure_blob queue source, no GCP impersonation — both confirmed unused in production Vector configs, and the azure_blob patches don't compile against v0.51's azure-core 0.25 anyway). Replaces the now-reverted PR #31.
Single commit, 12 files, +3844/-2159 (Cargo.lock is the bulk).
What's in the patch
Local verification
Downstream
Once merged, `exaforce-publish.yaml` push-trigger will publish `vector-base:v0.51-exaforce-` to ECR. The `operations` repo then bumps `goservices/vector_exec_sources/Dockerfile:3` in a separate follow-up PR.