DatabricksJack YallopProblem & solution
Eclipse Aerospace simplifies flight-data ingestion with Databricks
Summary
Eclipse Aerospace faced the challenge of ingesting nearly two decades of proprietary flight telemetry into Databricks without costly always-on infrastructure. The previous approach decoded files into Avro via a Rust-based Lambda, which introduced latency, duplicated schema logic, and split observability between Lambda logs and Spark UI. By using the PySpark custom data source API available in Databricks Runtime 15.4 LTS, the team wrapped its existing Rust decoder in a thin Python layer built with PyO3 and Maturin. Data crosses the foreign-function interface as Apache Arrow RecordBatches without copying, and decoding runs inside Spark on Databricks Serverless compute. The result eliminated the intermediary Avro hop, reduced storage costs, unified observability in the Spark UI, and delivered up to 20x performance over a pure-Python implementation.
Context
Eclipse Aerospace stores nearly 20 years of flight data (over 3 TB) in proprietary file formats that require custom decoders. Before the PySpark custom data source was available, the team had to decode files into an intermediary Avro format via a Rust-based decoder on AWS Lambda, which introduced latency, duplicated schema logic, split observability between Lambda logs and Spark UI, and required storing both the original binary and the Avro copy.
Approach / What changed
Eclipse Aerospace built a single PySpark custom data source that wraps an existing Rust decoder via PyO3/Maturin, passes data across the FFI boundary as Apache Arrow RecordBatches without copying, and registers the connector with Spark’s Python Data Source API so that proprietary flight-telemetry files are read directly inside Spark on Databricks Serverless compute.
Takeaways
The PySpark custom data source API (available in Databricks Runtime 15.4 LTS and Serverless environment 2) lets teams register a custom file format in pure Python without building a JVM connector.
Passing data across the FFI boundary as Apache Arrow RecordBatches avoids copying and enables near-native performance; the Rust-backed implementation delivered twice the performance of a PyArrow-based pure-Python data source and nearly 20x that of a pure-Python implementation without Arrow.
Keeping the core decoder in a language like Rust with no Spark or Arrow dependencies allows existing decode logic to be ported unchanged and wrapped by a thin Python layer, making the pattern reusable for other proprietary formats.
FAQ
What is a PySpark Custom Data Source?
A PySpark custom data source is a user-defined Spark data source implemented in Python. It lets teams read specialized file formats as part of a standard Spark workflow without building a separate JVM connector.
What data ingestion problem does the connector solve?
The Arrow-native PySpark custom data source connector ingests proprietary flight telemetry into Databricks without relying on a multi-stage pipeline, dedicated always-on compute, or duplicate Avro copies of the original files.
How does Databricks Serverless connect to the connector?
The connector uses the PySpark custom data source API to run file-reading logic inside Spark on serverless compute. Python handles the control flow, while Rust and Apache Arrow handle high-performance decoding and data transfer. This allows proprietary files to be read directly without dedicated always-on compute or an intermediary Avro pipeline.
Source and freshness
- Source
- databricks.com
- Published
- Added to Yomu
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.