Hi KB, There might be some other approaches I'm not aware of; however, I had some fun with Python's cffi package to generate some (untested) nanoarrow code based on the struct definitions [1]. If all you need are the types in Python or some other higher-level language (e.g., to read one of the CSV or JSON files generated by the tool you linked), you could generate Python code instead.
I hope that's helpful! -dewey [1] https://gist.github.com/paleolimbot/e1667a57f837e4db7e973b9677e33ddb On Sun, Mar 3, 2024 at 10:08 PM kekronbekron <kekronbek...@protonmail.com> wrote: > > Hello, > > Say I have a whole bunch of fully typed (with unions and all) data structures > like the one here - > https://github.com/IBM/IBM-Z-zOS/blob/main/SMF-Tools/SMF84Formatter/smf84fmt.h. > Say I'm parsing bytes with such a header...is it possible to then use Arrow's > C data interface (or maybe nanoarrow) to painlessly convert such a struct to > Arrow type(s)? > > - KB