js8544 commented on code in PR #14242:
URL: https://github.com/apache/arrow/pull/14242#discussion_r981444606
##########
cpp/src/arrow/json/options.h:
##########
@@ -53,6 +53,9 @@ struct ARROW_EXPORT ParseOptions {
/// How JSON fields outside of explicit_schema (if given) are treated
UnexpectedFieldBehavior unexpected_field_behavior =
UnexpectedFieldBehavior::InferType;
+ /// Whether decimals are represented as strings(quoted) or numbers(unquoted)
+ bool parse_decimal_as_number = false;
Review Comment:
> Why not an additional kind `kNumberOrString`?
Ha, I think it may work. Let me experiment with it a bit
##########
cpp/src/arrow/json/options.h:
##########
@@ -53,6 +53,9 @@ struct ARROW_EXPORT ParseOptions {
/// How JSON fields outside of explicit_schema (if given) are treated
UnexpectedFieldBehavior unexpected_field_behavior =
UnexpectedFieldBehavior::InferType;
+ /// Whether decimals are represented as strings(quoted) or numbers(unquoted)
+ bool parse_decimal_as_number = false;
Review Comment:
> Why not an additional kind `kNumberOrString`?
Ha, I think it may work. Let me experiment with it a bit
--
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]