[
https://issues.apache.org/jira/browse/ARROW-12859?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17350463#comment-17350463
]
Antoine Pitrou commented on ARROW-12859:
----------------------------------------
How do you decide whether it's an array or a list scalar, for example?
(or a list array or a chunked array, or a struct array or record batch...)
> [C++] Add DatumFromJSON for easier testing
> ------------------------------------------
>
> Key: ARROW-12859
> URL: https://issues.apache.org/jira/browse/ARROW-12859
> Project: Apache Arrow
> Issue Type: Improvement
> Components: C++
> Reporter: David Li
> Assignee: David Li
> Priority: Major
> Labels: pull-request-available
> Time Spent: 20m
> Remaining Estimate: 0h
>
> For kernels that accept/return permutations of array/scalar arguments, having
> a single DatumFromJSON would make things much easier to test (as then we can
> have helper test methods that just take {{const std::string&}} instead of
> having to make many overloads for the various input/output permutations).
--
This message was sent by Atlassian Jira
(v8.3.4#803005)