paleolimbot commented on issue #170:
URL:
https://github.com/apache/arrow-nanoarrow/issues/170#issuecomment-1486924351
Thanks for bringing this up - I think it's definitely in scope to add a
decimal extractor and appender. We'd probably need a struct to define a
decimal...maybe:
```c
struct ArrowDecimal {
// Words defined from most-significant to least-significant or the other
way around?
// nanoarrow could take care of ensuring that these are copied in the
right order on big endian
int32_t words[8]; // or int64_t words[4]?
int32_t precision;
int32_t scale;
};
ArrowErrorCode ArrowArrayAppendDecimal(struct ArrowArray* array, struct
ArrowDecimal* value);
void ArrowArrayViewGetDecimal(struct ArrowArrayView* array_view, struct
ArrowDecimal* out);
```
Do we need creation to/from `double`?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]