Hi Zoi,Juri, This sounds really interesting.While looking at the code I noticed that RecordType only keeps the field names and not their types,so for Arrow we would also need the types,either declared by the user or inferred from the data.
Also,the DuckDB platform currently sends results to Java row by row through JDBC in SqlToStreamOperator,and the DuckDB JDBC driver can already export results as Arrow.So a DuckDB to Java Arrow channel could be a small first step to try the idea. I would be happy to help with this,and later on the Python side with pandas/Polars too. Best, Soujas
