Yes, Datafusion could definitely be something to investigate further once we have Arrow support. @Kaileshwar: maybe you can start looking into it but I think it will have to wait for the arrow support.
@Soujas: would you like to investigate further into this? We could start small, by using the Record with schema as the only possible data type. Then for testing I think we would need at least two engines, DuckDB could be one and maybe Trino or Spark or any other that can ingest/write data in Arrow. Like this we can test the communication and if it pays off (which it should intuitively). Best -- Zoi On Wed, Nov 25, 2026 at 2:46 PM Kaileshwar R.K <[email protected]> wrote: > I noticed datafusion being mentioned in > https://issues.apache.org/jira/browse/WAYANG-54. since it already uses > arrow, would it make sense to revisit it as an execution platform once we > have arrow support? > > On Wed, Nov 25, 2026 at 5:34 PM Zoi Kaoudi <[email protected]> wrote: > > > Hi all, > > > > I'd like to start a discussion on whether Wayang should support Apache > > Arrow as a data exchange format between platforms. > > > > A lot of the cost in cross-platform execution goes into moving and > > converting data. Arrow is a standard in-memory format that many systems > > already support natively, such as DuckDB, pandas/Polars, PyTorch, and > > databases via ADBC/Flight SQL. Using Arrow could make many platform > > switches much cheaper. That would change which cross-platform plans the > > optimizer finds worthwhile. More broadly, it would open the door to > > incorporating non-Java execution engines into Wayang, such as Polars or > > PyTorch, which could exchange data with the rest of the job through > Arrow. > > > > Given the modular design of Wayang, adding Arrow mainly revolves around > > adding a new Arrow channel with conversion operators to and from our > > existing platforms plus cost estimates. > > > > A caveat is that Arrow needs a schema. I think our Record data type > already > > comes with a schema so it may be a first step to look into. > > > > What do you think? Any ideas, questions, or concerns? > > > > Best, > > Zoi > > >
