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
