pitrou commented on code in PR #14242:
URL: https://github.com/apache/arrow/pull/14242#discussion_r982590889
##########
cpp/src/arrow/json/parser.cc:
##########
@@ -610,12 +627,22 @@ class HandlerBase : public BlockParser,
}
bool RawNumber(const char* data, rj::SizeType size, ...) {
- status_ = AppendScalar<Kind::kNumber>(builder_, std::string_view(data,
size));
+ if (builder_.kind == Kind::kNumberOrString) {
+ status_ =
+ AppendScalar<Kind::kNumberOrString>(builder_, std::string_view(data,
size));
+ } else {
Review Comment:
Ah, you're right. Let's forget this :-)
--
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]