jecsand838 commented on code in PR #712:
URL: https://github.com/apache/arrow-site/pull/712#discussion_r2434696794


##########
_posts/2025-10-17-introducing-arrow-avro.md:
##########
@@ -0,0 +1,246 @@
+---
+layout: post
+title: "Announcing arrow-avro in Arrow Rust"
+description: "A new vectorized reader/writer for Avro native to Arrow, with 
OCF, Single‑Object, and Confluent wire format support."
+date: "2025-10-17 00:00:00"
+author: jecsand838
+categories: [application]
+---
+<!--
+{% comment %}
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to you under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+{% endcomment %}
+-->
+
+`arrow-avro` is a Rust crate that reads and writes Avro data directly as Arrow 
`RecordBatch`es. It supports Avro Object Container Files (OCF), Single‑Object 
Encoding, and the Confluent Schema Registry wire format, with 
projection/evolution, tunable batch sizing, and an optional `StringViewArray` 
for faster strings. Its vectorized design reduces copies and cache misses, 
making both batch (files) and streaming (Kafka) pipelines simpler and faster.
+
+## Motivation
+
+As a row‑oriented format, Avro is optimized for encoding one record at a time, 
while Apache Arrow is columnar, optimized for vectorized analytics. When Avro 
data is decoded record‑by‑record and then materialized into Arrow arrays, 
systems pay for extra allocations, branches, and cache‑unfriendly memory access 
(exactly the overhead Arrow's design tries to avoid). One example of a 
challenge resulting from this can be found in [DataFusion's Avro 
Datasource](https://github.com/apache/datafusion/tree/main/datafusion/datasource-avro).
 This row to column impedance mismatch caused by decoding Avro into Arrow shows 
up as unnecessary work in hot paths.

Review Comment:
   @alamb I agree, that's a good idea. 
   
   What do you think of this section?
   
   ```markdown
   ### Why this matters
   
   Apache Avro is a first‑class format across stream processors and cloud 
services:
   - Confluent Schema Registry supports Avro across multiple languages and 
tooling.
   - Apache Flink exposes an `avro-confluent` format for Kafka.
   - AWS Lambda (June 2025) added native handling for Avro‑formatted Kafka 
events with Glue and Confluent Schema Registry integrations.
   - Azure Event Hubs provides a Schema Registry with Avro support for 
Kafka‑compatible clients.
   
   In short: Arrow users encounter Avro both on disk (OCF) and on the wire 
(Kafka). An Arrow‑first, vectorized reader/writer for OCF, Single‑Object, and 
Confluent framing removes a pervasive bottleneck and keeps pipelines columnar 
end‑to‑end.
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to