Closed cocoa-xu closed 4 months ago
@paleolimbot @benibus Many thanks for the code review!
Hi, I've formatted the code and fixed the tests. Just let me know if we should add any generated test cases for these one-way conversions, and I'll happy to add a few cases!
Sorry for the delay, I wanted to make sure I had time to check this out and run some tests locally.
Thank you very much for the kind help and code review!
Hi, thanks for this great library! I found that
ArrowArrayAppendXX
functions won't append a value to a half floatArrowArray
while I was playing with this library. So I decided to add this support, which I believe it should make this library easier to use.The conversion function is adapted from Arrow Go, https://github.com/apache/arrow/blob/main/go/arrow/float16/float16.go, and the tests cases are taken from https://github.com/apache/arrow/blob/main/go/arrow/float16/float16_test.go.
Although I'm not sure if I should also update the files in
dist
though (I guess it might be automated when doing a release but I didn't check). I'll be happy to update them if these files are not updated automatically, and I'm happy to do any other changes. :)