Hi community, I would like to start a discussion about introducing Apache Arrow as an optional internal data model in SeaTunnel.
The goal is not to replace the current SeaTunnelRow model. Instead, I would like to explore whether Arrow can be introduced as an optional fast path for specific scenarios where a columnar representation is a better fit. Why I think this is worth discussing: 1. Performance benefits in columnar scenarios For columnar systems and formats such as ClickHouse, Doris, Parquet, and ORC, Arrow may help reduce repeated row/column conversions and unnecessary row materialization. 2. Better efficiency for some transforms For batch-oriented and relatively simple transforms, such as projection, filter, cast, arithmetic expressions, and null handling, Arrow may provide a better foundation for columnar and vectorized processing. 3. Lower JVM object overhead Compared with row-based processing, Arrow may reduce temporary object creation, GC pressure, and per-row access overhead, especially for wide tables and large batches. 4. Better long-term extensibility If this direction is reasonable, it may provide a cleaner technical foundation for future vectorized transforms and high-performance connector implementations. At the same time, I want to keep the scope converged and the impact controlled: - keep SeaTunnelRow as the default model - introduce Arrow only as an optional internal path - adopt it incrementally in scenarios where the benefit is clearer first - do not require all connectors to support Arrow immediately - do not change CDC or event semantics in the first phase >From my perspective, this means the proposal should be backward compatible and should not affect existing jobs by default. The main question I want to ask the community is: Would the community be open to moving this topic forward to the next step, meaning a more concrete design discussion for an incremental Arrow-based optimization path? If the general direction sounds reasonable, I can continue with a follow-up design proposal covering topics such as: - where Arrow should be introduced first - whether it should start from connectors only or also include transform APIs - how to keep the integration incremental and maintainable - how to balance performance gain and implementation complexity Related discussion issue: https://github.com/apache/seatunnel/issues/10806 Any feedback is welcome. Thanks. Xuepeng Wang (gitid:chl-wxp)
