Sometimes user want to return a complex struct in their functions. Currently user has to encode the struct type in the function signature, and return struct fields as a tuple. For instance:
This inline approach only works well for simple struct types. It will soon run into trouble when the struct type becomes very complex.
Therefore, we should allow users define their types separately using struct. We will introduce a derive macro to reflect the code and generate code for retrieving from and storing into arrow arrays.
Sometimes user want to return a complex struct in their functions. Currently user has to encode the struct type in the function signature, and return struct fields as a tuple. For instance:
This inline approach only works well for simple struct types. It will soon run into trouble when the struct type becomes very complex.
Therefore, we should allow users define their types separately using struct. We will introduce a derive macro to reflect the code and generate code for retrieving from and storing into arrow arrays.
The designed user interface would be like:
cc @TennyZhuang