Spark Python Data Source Builder

•
1.6k
•

Builds custom Apache Spark data sources using the PySpark DataSource API for seamless batch and streaming data integration.

This skill empowers developers to create robust, custom Python-based data sources for Apache Spark 4.0+, enabling seamless integration with external systems like databases, REST APIs, and message queues. It provides specialized guidance on the PySpark DataSource API, including best practices for flat inheritance structures, cross-process serialization, and executor-side dependency management. Whether building high-performance batch readers or real-time streaming connectors with exactly-once semantics, this skill ensures implementations are optimized for Spark's distributed architecture while maintaining clean, testable code.

主な機能

01Automates bidirectional type conversion between Spark and external systems
021,643 GitHub stars
03Supports both Batch and Streaming reader/writer implementations for Apache Spark 4.0+
04Implements optimized partitioning strategies including time-based and token-range
05Provides patterns for robust authentication using Unity Catalog, OAuth2, or Service Principals
06Enforces Spark-specific design constraints for reliable distributed executor execution

ユースケース

01Creating a custom Spark connector for a proprietary internal REST API with pagination
02Building a streaming data source for real-time ingestion from message brokers like RabbitMQ or MQTT
03Implementing a high-performance batch writer for cloud data warehouses with staged upload logic