-
Notifications
You must be signed in to change notification settings - Fork 4k
ARROW-12859: [C++] Add ScalarFromJSON for testing #10386
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
cpp/src/arrow/testing/gtest_util.cc
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This approach might be worthwhile for consistency's sake, but we could also use Scalar::CastTo
|
Is there anything left to do here? |
I don't think so unless we really want to use Scalar::CastTo here. |
|
Can you explain the Also, I notice this isn't actually tested? Perhaps add a test alongside those for |
|
For CastTo: I think it was actually the Cast kernel (string->type cast). I added some basic tests. I don't think there's a good way to hit the DCHECK because that would imply a JSON value converter appended two array values for a single JSON value. |
pitrou
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
Uh oh!
There was an error while loading. Please reload this page.