paleolimbot commented on code in PR #361:
URL: https://github.com/apache/arrow-nanoarrow/pull/361#discussion_r1454229386


##########
src/nanoarrow/nanoarrow.h:
##########
@@ -280,6 +284,14 @@ void ArrowLayoutInit(struct ArrowLayout* layout, enum 
ArrowType storage_type);
 /// \brief Create a string view from a null-terminated string
 static inline struct ArrowStringView ArrowCharView(const char* value);
 
+/// \brief Sets the integer value of an ArrowDecimal from a string
+ArrowErrorCode ArrowDecimalSetIntString(struct ArrowDecimal* decimal,
+                                        struct ArrowStringView value);
+
+/// \brief Get the integer value of an ArrowDecimal as string
+ArrowErrorCode ArrowDecimalAppendIntStringToBuffer(const struct ArrowDecimal* 
decimal,
+                                                   struct ArrowBuffer* buffer);
+

Review Comment:
   I agree that it's not great! I think the reason I didn't pick 
`ArrowDecimalSetFromString()` is because to me that would parse the decimal 
point and this function won't do that. It will also error very quickly if 
anybody tries to put a decimal point there and I'm game to change it.



-- 
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]

Reply via email to